-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path6140.d72783b32c023cd6d1ba.js
1 lines (1 loc) · 100 KB
/
6140.d72783b32c023cd6d1ba.js
1
"use strict";(self.webpackChunkchekt_web_wcs=self.webpackChunkchekt_web_wcs||[]).push([[6140],{32942:(E,A,c)=>{c.d(A,{f:()=>U});var u=c(61855),l=c(42741),M=c(59053),O=c(43734),v=c(16274);const D=["googleMap"];function C(h,t){if(1&h&&(l.TgZ(0,"div"),l._UZ(1,"img",2),l.qZA()),2&h){const s=l.oxw();l.xp6(1),l.Q6J("src",s.staticMapUrl,l.LSH)}}function q(h,t){1&h&&l._UZ(0,"div",3,4)}let U=(()=>{class h{constructor(s){this.apiService=s,this.width=600,this.height=300,this.isDynamicView=!1,this.changePosition=new l.vpe}ngAfterViewInit(){return(0,u.mG)(this,void 0,void 0,function*(){yield M.Z.tool.sleep(100),this.isDynamicView?this.updateMap():this.loadStaticMap()})}ngOnChanges(s){this.isDynamicView?this.updateMap():this.loadStaticMap()}loadStaticMap(){const s=Math.floor(this.width),_=Math.floor(this.height);this.staticMapUrl=`https://maps.googleapis.com/maps/api/staticmap?center=${this.lat},${this.lng}&zoom=16&size=${s}x${_}&scale=2&markers=color:red|${this.lat},${this.lng}&key=${this.apiService.googleApiKey}`}initializeDynamicMap(){var s;return(0,u.mG)(this,void 0,void 0,function*(){const _=new google.maps.LatLng(this.lat,this.lng),b={center:_,zoom:16,mapTypeId:google.maps.MapTypeId.ROADMAP,disableDefaultUI:!0};yield M.Z.tool.sleep(100),(null===(s=this.googleMapElement)||void 0===s?void 0:s.nativeElement)&&(this.map=new google.maps.Map(this.googleMapElement.nativeElement,b),this.map.setTilt(45),this.marker=new google.maps.Marker({position:_,draggable:!0,map:this.map}),this.marker.addListener("dragend",S=>{this.handleEvent(S)}))})}updateMap(){return(0,u.mG)(this,void 0,void 0,function*(){this.map||(yield this.initializeDynamicMap());const s=new google.maps.LatLng(this.lat,this.lng);this.map.setCenter(s),this.marker.setPosition(s)})}handleEvent(s){let _=s.latLng.lat(),b=s.latLng.lng();this.changePosition.emit({lat:_,lng:b})}}return h.\u0275fac=function(s){return new(s||h)(l.Y36(O.s))},h.\u0275cmp=l.Xpm({type:h,selectors:[["c_map"]],viewQuery:function(s,_){if(1&s&&l.Gf(D,5),2&s){let b;l.iGM(b=l.CRH())&&(_.googleMapElement=b.first)}},inputs:{lat:"lat",lng:"lng",width:"width",height:"height",isDynamicView:"isDynamicView"},outputs:{changePosition:"changePosition"},features:[l.TTD],decls:2,vars:2,consts:[[4,"ngIf"],["style","width: 100%;height: 100%; min-height: 300px",4,"ngIf"],["alt","Static Google Map",2,"width","100%","height","100%",3,"src"],[2,"width","100%","height","100%","min-height","300px"],["googleMap",""]],template:function(s,_){1&s&&(l.YNc(0,C,2,1,"div",0),l.YNc(1,q,2,0,"div",1)),2&s&&(l.Q6J("ngIf",!_.isDynamicView),l.xp6(1),l.Q6J("ngIf",_.isDynamicView))},directives:[v.O5],encapsulation:2,changeDetection:0}),h})()},25229:(E,A,c)=>{c.d(A,{Z:()=>D});var u=c(46243),M=c(76052),O=c.n(M),v=c(49951);const D={_:u,moment:O(),tool:v.Z}},66140:(E,A,c)=>{c.r(A),c.d(A,{WcsInfoModule:()=>Yt});var u=c(93324),l=c(16274),M=c(29535),O=c(61855),v=c(32942),D=c(27813),C=c(72898),q=c(76052),U=c.n(q),h=c(25229),t=c(42741),s=c(7611),_=c(86842),b=c(56880),S=c(85481),J=c(91486),Q=c(47588),Y=c(31887),W=c(35460),F=c(43734),R=c(63866),L=c(21929),k=c(29026),H=c(46243);const B=["dealerPlanSelectDropdown"];function j(i,r){if(1&i){const n=t.EpF();t.TgZ(0,"div",4),t.NdJ("click",function(){return t.CHM(n),t.oxw().closeModal()}),t.qZA()}2&i&&t.Q6J("@background",void 0)}function $(i,r){1&i&&(t.TgZ(0,"span",31),t._uU(1,"Basic"),t.qZA())}function G(i,r){if(1&i&&(t.TgZ(0,"span",32),t._uU(1),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Oqu(n.currentPlan.name)}}function V(i,r){if(1&i){const n=t.EpF();t.TgZ(0,"div",35),t.NdJ("click",function(){const a=t.CHM(n).$implicit;return t.oxw(3).selectPlan(a)}),t.TgZ(1,"div",19),t.TgZ(2,"div"),t._uU(3),t.qZA(),t.TgZ(4,"div",20),t._uU(5),t.qZA(),t.qZA(),t.qZA()}if(2&i){const n=r.$implicit;t.xp6(3),t.Oqu(n.name),t.xp6(2),t.Oqu(n.price)}}function K(i,r){if(1&i&&(t.O4$(),t.kcU(),t.TgZ(0,"div",33),t.YNc(1,V,6,2,"div",34),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",n.filteredPlanList)}}function X(i,r){1&i&&(t.TgZ(0,"div",36),t.O4$(),t.TgZ(1,"svg",37),t._UZ(2,"circle",38),t.qZA(),t.qZA())}function tt(i,r){if(1&i){const n=t.EpF();t.TgZ(0,"div",5),t.TgZ(1,"div",6),t.TgZ(2,"div",7),t._uU(3),t.qZA(),t.TgZ(4,"div",8),t.TgZ(5,"div",9),t.TgZ(6,"i",10),t.NdJ("click",function(){return t.CHM(n),t.oxw().closeModal()}),t._uU(7,"close"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(8,"div",11),t.TgZ(9,"div",12),t.TgZ(10,"div",13),t._uU(11,"Current Plan"),t.qZA(),t.TgZ(12,"div"),t.YNc(13,$,2,0,"span",14),t.YNc(14,G,2,1,"span",15),t.qZA(),t.qZA(),t.TgZ(15,"div",12),t.TgZ(16,"div",13),t._uU(17,"Plan to change"),t.qZA(),t.TgZ(18,"div"),t.TgZ(19,"div",16,17),t.TgZ(21,"div",18),t.NdJ("click",function(){t.CHM(n);const o=t.oxw();return o.isSelectDealerPlan=!o.isSelectDealerPlan}),t.TgZ(22,"div",19),t.TgZ(23,"div"),t._uU(24),t.qZA(),t.TgZ(25,"div",20),t._uU(26),t.qZA(),t.qZA(),t.O4$(),t.TgZ(27,"svg",21),t._UZ(28,"path",22),t._UZ(29,"path",23),t.qZA(),t.qZA(),t.YNc(30,K,2,1,"div",24),t.qZA(),t.qZA(),t.qZA(),t.kcU(),t.TgZ(31,"div",12),t.TgZ(32,"div",25),t.NdJ("click",function(){return t.CHM(n),t.oxw().goToSubDealerDescription()}),t._uU(33,"Go to Detail \u2192"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(34,"div",26),t.TgZ(35,"div",27),t.NdJ("click",function(){return t.CHM(n),t.oxw().onClickUpdatePartnerPlan()}),t.TgZ(36,"div",28),t._uU(37),t.qZA(),t.qZA(),t.TgZ(38,"div",29),t.NdJ("click",function(){return t.CHM(n),t.oxw().closeModal()}),t.TgZ(39,"div",28),t._uU(40,"Cancel"),t.qZA(),t.qZA(),t.qZA(),t.YNc(41,X,3,0,"div",30),t.qZA()}if(2&i){const n=t.oxw();t.Q6J("@dialog",void 0),t.xp6(3),t.hij("",n.isUpgradeMode?"Upgrade":"Change"," Sub Dealer Plan"),t.xp6(10),t.Q6J("ngIf",n.isUpgradeMode||!n.modal.currentPlan),t.xp6(1),t.Q6J("ngIf",!n.isUpgradeMode),t.xp6(10),t.Oqu(n.selectedPlan.name),t.xp6(2),t.Oqu(n.selectedPlan.price),t.xp6(4),t.Q6J("ngIf",n.isSelectDealerPlan),t.xp6(5),t.ekj("disabled",n.isLoading),t.xp6(2),t.Oqu(n.isUpgradeMode?"Upgrade":"Change"),t.xp6(1),t.ekj("disabled",n.isLoading),t.xp6(3),t.Q6J("ngIf",n.isLoading)}}let nt=(()=>{class i{constructor(n,e,o){this.usersService=n,this.dealerPlanService=e,this.helper=o,this.onClose=new t.vpe,this.retailDealerId=null,this.isLoading=!1,this.isUpgradeMode=!1,this.m_warning=new C.u,this.isSelectDealerPlan=!1,this.planList=[{name:"Basic",type:1,price:""},{name:"Professional",type:2,price:"( $35/ mo )"},{name:"Premium",type:3,price:"( $300/ mo )"}],this.filteredPlanList=[],this.currentPlan={name:"",type:null,price:""},this.selectedPlan={name:"",type:null,price:""}}ngOnInit(){this.usersService.getMe().subscribe(n=>{this.me=n,this.init(),this.setData()})}onGlobalClick(n){!this.dealerPlanSelectDropdown||this.dealerPlanSelectDropdown.nativeElement.contains(n.target)||(this.isSelectDealerPlan=!1)}init(){this.retailDealerId=null,this.isUpgradeMode=!1,this.isSelectDealerPlan=!1,this.filteredPlanList=[],this.currentPlan={name:"",type:null,price:""},this.selectedPlan={name:"",type:null,price:""}}fetchSubDealerPlanList(){return(0,O.mG)(this,void 0,void 0,function*(){const n=this.me.dealer_id,e=this.me.type;try{yield this.dealerPlanService.getDealerServicePlanPricing(n,e).toPromise();const o=this.usersService.me.currency_symbol,a=this.dealerPlanService.subDealerPlanPriceProfessional;console.log(this.dealerPlanService.subDealerPlanPriceProfessional);const d=this.dealerPlanService.subDealerPlanPricePremium;this.planList[1].price=`( ${o}${a}/mo )`,this.planList[2].price=`( ${o}${d}/mo )`}catch(o){console.debug(o),this.planList=[{name:"Basic",type:1,price:""},{name:"Professional",type:2,price:"( $35/ mo )"},{name:"Premium",type:3,price:"( $300/ mo )"}]}})}setData(){var n;return(0,O.mG)(this,void 0,void 0,function*(){if(!this.modal.currentPlan.type)return void this.errorDialog("Not set Corrent Plan","Invalid Reqest");this.retailDealerId=this.modal.retailDealerId,this.isUpgradeMode=1===this.modal.currentPlan.type,yield this.fetchSubDealerPlanList();let e=H.cloneDeep(this.planList);this.filteredPlanList=e,this.currentPlan=this.planList.find(o=>o.type===this.modal.currentPlan.type),this.selectedPlan=null!==(n=this.planList.find(o=>o.type===this.modal.currentPlan.type))&&void 0!==n?n:this.filteredPlanList[0]})}selectPlan(n){this.selectedPlan=n,this.isSelectDealerPlan=!1}onClickUpdatePartnerPlan(){this.dealerPlanService.updateDealerPlan(this.retailDealerId,{service_plan_type:this.selectedPlan.type}).subscribe(o=>{console.log("successfully set as the plan."),this.isLoading=!1,this.closeModal(this.selectedPlan)},o=>{this.errorDialog(o,"Set Dealer Plan"),this.isLoading=!1})}goToSubDealerDescription(){this.helper.router.navigate_to("/settings/dealer-plan")}confirmDialog(n="",e="",o="done",a="green"){this.m_warning.data={header:n,contents:`\n <p>${e}</b></p>\n `,submit_btn:"OK",submit_class:["button-primary"],icon:o,isConfirm:!0,color:a},this.m_warning.data.submit_func=()=>{"green"===a&&this.closeModal(!0)},this.m_warning.open()}errorDialog(n,e){let o="failed.";n.error&&n.error.message&&(o=n.error.message),n._body&&(o=JSON.parse(n._body).message),setTimeout(()=>{this.confirmDialog(e,o,"warning","orange")},200),this.isLoading=!1}closeModal(n=null){this.onClose.next(n),this.modal.close()}}return i.\u0275fac=function(n){return new(n||i)(t.Y36(s.f),t.Y36(S._),t.Y36(W.W))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-wcs-plan-upgrade"]],viewQuery:function(n,e){if(1&n&&t.Gf(B,5),2&n){let o;t.iGM(o=t.CRH())&&(e.dealerPlanSelectDropdown=o.first)}},hostBindings:function(n,e){1&n&&t.NdJ("mousedown",function(a){return e.onGlobalClick(a)},!1,t.evT)},inputs:{active:"active",modal:"modal"},outputs:{onClose:"onClose"},decls:4,vars:3,consts:[[1,"align-center"],["class","overlay",3,"click",4,"ngIf"],["class","modal",4,"ngIf"],[3,"modal"],[1,"overlay",3,"click"],[1,"modal"],[1,"modal-header"],[1,"modal-header-txt"],[2,"position","relative"],[1,"title-close"],[1,"material-icons",3,"click"],[1,"items-area"],[1,"item"],[1,"mb-7"],["class","badge standard",4,"ngIf"],["class","badge upgrade",4,"ngIf"],[1,"unselectable","f-2"],["dealerPlanSelectDropdown",""],[1,"selectbox","label",3,"click"],[2,"display","flex","justify-content","space-between","width","100%"],[2,"color","#8792A2"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#000000"],["d","M12 4L16.58 8.59L15.17 10L12 6.83L8.83 10L7.41 8.59L12 4Z"],["d","M12 17.17L15.17 14 L16.59 15.41L12 20L7.42 15.41L8.83 14L12 17.17Z"],["class","search-list",4,"ngIf"],[1,"redirect",3,"click"],[1,"tail-btn-area"],[1,"button","button-primary",3,"click"],[1,"btn-inner"],[1,"button",3,"click"],["class","loader absolute",4,"ngIf"],[1,"badge","standard"],[1,"badge","upgrade"],[1,"search-list"],["class","search-result has-child",3,"click",4,"ngFor","ngForOf"],[1,"search-result","has-child",3,"click"],[1,"loader","absolute"],["viewBox","25 25 50 50",1,"circular"],["cx","50","cy","50","r","20","fill","none","stroke-width","4","stroke-miterlimit","10",1,"path"]],template:function(n,e){1&n&&(t.TgZ(0,"div",0),t.YNc(1,j,1,1,"div",1),t.YNc(2,tt,42,13,"div",2),t.qZA(),t._UZ(3,"dealer-warning",3)),2&n&&(t.xp6(1),t.Q6J("ngIf",e.modal.is_active),t.xp6(1),t.Q6J("ngIf",e.modal.is_active),t.xp6(1),t.Q6J("modal",e.m_warning))},directives:[l.O5,L.a,l.sg],styles:[".modal[_ngcontent-%COMP%]{width:450px!important;min-width:350px!important}.modal[_ngcontent-%COMP%] .items-area[_ngcontent-%COMP%]{overflow-y:visible!important}.align-center[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:center;z-index:101}.badge[_ngcontent-%COMP%]{border-radius:10px;padding:4px 8px;text-align:center;font-size:14px}.badge.standard[_ngcontent-%COMP%]{background:#E3E8EE;color:#55647b}.badge.upgrade[_ngcontent-%COMP%]{background:#55647B;color:#fff}.disabled[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.has-child[_ngcontent-%COMP%]{cursor:pointer}.has-child[_ngcontent-%COMP%]:hover{background:#f0f0f0}.small-placeholder[_ngcontent-%COMP%]::placeholder{font-size:12px}.selectbox.label[_ngcontent-%COMP%]{max-width:100%!important}.search-list[_ngcontent-%COMP%]{max-width:100%}.unselectable[_ngcontent-%COMP%]{position:relative}.redirect[_ngcontent-%COMP%]{font-weight:400;font-size:14px;line-height:16px;color:#1e88e5;margin-bottom:6px;cursor:pointer}",'.disable-full-screen[_ngcontent-%COMP%]{top:0;left:0;width:100%;height:100%;position:fixed;visibility:hidden;opacity:0;transition:.2s;z-index:101}.disable-full-screen[_ngcontent-%COMP%] > .background[_ngcontent-%COMP%]{position:absolute;background-color:#00000080;top:0;left:0;width:100%;height:100%;z-index:1}.overlay[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;left:0;right:0;background-color:#0000004d;z-index:1}.container-center[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%}.body[_ngcontent-%COMP%] > .header[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;height:48px;padding:0 16px}.body[_ngcontent-%COMP%] > .header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:inline-block;font-size:20px;color:#fff;text-transform:uppercase}.body[_ngcontent-%COMP%] > .header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{vertical-align:middle;margin-right:4px}.body[_ngcontent-%COMP%] > .header[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%]{font-size:12px;color:#fffc;padding:8px 0 32px;line-height:.8}.body[_ngcontent-%COMP%] > .header[_ngcontent-%COMP%] .space[_ngcontent-%COMP%]{flex:1}.body[_ngcontent-%COMP%] > .header[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{float:right;margin-left:8px;color:#fffc;transition:.1s}.body[_ngcontent-%COMP%] > .header[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]:hover{color:#fff;cursor:pointer}.body[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:14px;color:#777;margin-top:28px}.body[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:14px;flex:1 1 auto;box-sizing:border-box;padding:6px 0 4px;border:0;border-bottom:2px solid #ddd;background:rgba(0,0,0,0);transition:.2s}.body[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 3px #1f8fff61;outline:none}.body[_ngcontent-%COMP%] input[_ngcontent-%COMP%] .err[_ngcontent-%COMP%]{outline:none;border-bottom:2px solid #D25074}.body[_ngcontent-%COMP%] input[_ngcontent-%COMP%] .err[_ngcontent-%COMP%]:focus{outline:none;border-bottom:2px solid #D25074}.body[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{font:400 14px Arial;resize:none;flex:1 1 auto;box-sizing:border-box;padding:6px 0 4px;border:0;border-bottom:2px solid #ddd;background:rgba(0,0,0,0);transition:.2s}.body[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 3px #1f8fff61;outline:none}.body[_ngcontent-%COMP%] .hidden-input[_ngcontent-%COMP%]{border-bottom:2px solid #fff;background:rgba(0,0,0,0) #b87272}.body[_ngcontent-%COMP%] .hidden-input[_ngcontent-%COMP%]:hover{border-bottom:2px solid #777}.body[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{width:100%;min-height:24px;background:white;box-sizing:border-box;margin-top:8px;padding:4px 0;border:0;border-bottom:1px solid #ccc;transition:.2s}.body[_ngcontent-%COMP%] select[_ngcontent-%COMP%]:focus{outline:none;border-bottom:1px solid #777}.body[_ngcontent-%COMP%] .contents[_ngcontent-%COMP%]{width:100%;min-height:24px;font-size:14px;color:#333;margin-top:12px;padding:4px 0;display:flex;align-items:center}.body[_ngcontent-%COMP%] .contents[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{margin-right:8px}.body[_ngcontent-%COMP%] .contents[_ngcontent-%COMP%] > .button[_ngcontent-%COMP%]{color:#777;transition:.2s;cursor:pointer}.body[_ngcontent-%COMP%] .contents[_ngcontent-%COMP%] > .button[_ngcontent-%COMP%]:hover{color:#333}.body[_ngcontent-%COMP%] .contents-selectable[_ngcontent-%COMP%]{cursor:pointer}.body[_ngcontent-%COMP%] .contents-selectable[_ngcontent-%COMP%]:hover{background:#f0f0f0}.body[_ngcontent-%COMP%] > .editable[_ngcontent-%COMP%]{border-bottom:1px solid #fff;transition:.5s}.body[_ngcontent-%COMP%] > .editable[_ngcontent-%COMP%]:hover{cursor:text;border-bottom:1px solid #ccc}.body[_ngcontent-%COMP%] > .warning[_ngcontent-%COMP%]{color:#f55}.modal[_ngcontent-%COMP%]{width:100%;max-width:600px;background:white;box-shadow:0 4px 8px #777;z-index:2;border-radius:5px}.modal[_ngcontent-%COMP%] .modal-header[_ngcontent-%COMP%]{display:flex;height:50px;justify-content:space-between;border-bottom:.5px solid rgba(0,0,0,.1)}.modal[_ngcontent-%COMP%] .modal-header[_ngcontent-%COMP%] .modal-header-txt[_ngcontent-%COMP%]{display:flex;align-items:center;padding-left:16px}.modal[_ngcontent-%COMP%] > .header[_ngcontent-%COMP%]{display:flex;height:50px;justify-content:space-between;background-color:#f7fafc;border-radius:5px 5px 0 0}.modal[_ngcontent-%COMP%] > .header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:inline-block;font-size:20px;color:#fff;text-transform:uppercase}.modal[_ngcontent-%COMP%] > .header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{vertical-align:middle;margin-right:4px}.modal[_ngcontent-%COMP%] > .header[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%]{font-size:12px;color:#fffc;padding:8px 0 32px;line-height:.8}.modal[_ngcontent-%COMP%] > .header[_ngcontent-%COMP%] .space[_ngcontent-%COMP%]{flex:1}.modal[_ngcontent-%COMP%] > .header[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{float:right;margin-left:8px;color:#fffc;transition:.1s}.modal[_ngcontent-%COMP%] > .header[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]:hover{color:#fff;cursor:pointer}.modal[_ngcontent-%COMP%] .items-area[_ngcontent-%COMP%]{flex:1;display:block;overflow-y:overlay;padding:30px 20px 20px;border-bottom:.5px solid rgba(0,0,0,.1);background-color:#f8fafc;display:flex;flex-direction:column;font-size:14px}.modal[_ngcontent-%COMP%] .items-area[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{color:#0009;font-size:12px}.modal[_ngcontent-%COMP%] .items-area[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;padding:8px;background-color:#fff;border:1px solid #eeeeee;font-size:14px;transition:.2s;text-indent:0px;font-weight:400;resize:none}.modal[_ngcontent-%COMP%] .items-area[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]::placeholder{font-size:14px}.modal[_ngcontent-%COMP%] .items-area[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus{outline:none;border:1px solid #2383e2}.modal[_ngcontent-%COMP%] .items-area[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding-bottom:20px}.modal[_ngcontent-%COMP%] .items-area[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;padding:7px 10px;background-color:#fff;border:1px solid rgba(0,0,0,.2);border-radius:5px;font-size:14px;transition:.2s;text-indent:0px;font-weight:400}.modal[_ngcontent-%COMP%] .items-area[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 3px #1f8fff61;outline:none}.modal[_ngcontent-%COMP%] .items-area[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] input.err[_ngcontent-%COMP%]{outline:none;background-color:#fbd0d6;box-shadow:0 0 0 2px #d25074}.modal[_ngcontent-%COMP%] .items-area[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] input.err[_ngcontent-%COMP%]:focus{outline:none;box-shadow:0 0 0 2px #d25074}.modal[_ngcontent-%COMP%] .items-area[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] input.dark[_ngcontent-%COMP%]{background-color:#f5f5f5}.modal[_ngcontent-%COMP%] .items-area[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] input.dark[_ngcontent-%COMP%]:focus{background-color:#fff}.modal[_ngcontent-%COMP%] .items-area[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] input.disabled[_ngcontent-%COMP%]{background-color:#eee;opacity:1}.modal[_ngcontent-%COMP%] .items-area[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] input.err[_ngcontent-%COMP%]{outline:none;border:1px solid #D25074!important;background-color:#fff!important}.modal[_ngcontent-%COMP%] .items-area[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] input.correct[_ngcontent-%COMP%]{border:solid 1px #e0e0e0;background-color:#e5f2ff}.modal[_ngcontent-%COMP%] .items-area[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:#0000004d}.modal[_ngcontent-%COMP%] .items-area[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] input.input-err[_ngcontent-%COMP%]{outline:none;background-color:#fbd0d6;box-shadow:0 0 0 2px #f1556c}.modal[_ngcontent-%COMP%] .items-area[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] input.input-err[_ngcontent-%COMP%]:focus{outline:none;box-shadow:0 0 0 2px #f1556c}.modal[_ngcontent-%COMP%] .items-area[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .site-search[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin-bottom:0;border:none;outline:none;background-color:transparent}.modal[_ngcontent-%COMP%] .items-area[_ngcontent-%COMP%] .item.pb-0[_ngcontent-%COMP%]{padding-bottom:0}.modal[_ngcontent-%COMP%] > .body[_ngcontent-%COMP%]{padding:16px 32px;display:flex;flex-direction:column;max-height:800px;overflow-y:overlay}.modal[_ngcontent-%COMP%] > .body-center[_ngcontent-%COMP%]{padding:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;max-height:800px;overflow-y:overlay}.modal[_ngcontent-%COMP%] > .tail[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;justify-content:center;padding:0 32px 30px}.modal[_ngcontent-%COMP%] > .tail[_ngcontent-%COMP%] .space[_ngcontent-%COMP%]{flex:1}.modal[_ngcontent-%COMP%] > .tail[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{padding:7px 14px;color:#888;font-size:14px;font-weight:500;transition:.2s;text-transform:capitalize;border-radius:5px}.modal[_ngcontent-%COMP%] > .tail[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]:hover{color:#000;cursor:pointer}.modal[_ngcontent-%COMP%] > .tail[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]{background:#2383e2;color:#fff}.modal[_ngcontent-%COMP%] > .tail[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]:hover{background:#2ea0ff;color:#fff}.modal[_ngcontent-%COMP%] > .tail[_ngcontent-%COMP%] .button-warning[_ngcontent-%COMP%]{background:orange;color:#fff}.modal[_ngcontent-%COMP%] > .tail[_ngcontent-%COMP%] .button-warning[_ngcontent-%COMP%]:hover{background:#ffb938;color:#fff}.modal[_ngcontent-%COMP%] > .tail[_ngcontent-%COMP%] .button-disable[_ngcontent-%COMP%]{background:#ddd;color:#fff}.modal[_ngcontent-%COMP%] > .tail[_ngcontent-%COMP%] .button-disable[_ngcontent-%COMP%]:hover{background:#ddd;color:#fff}.modal[_ngcontent-%COMP%] > .tail[_ngcontent-%COMP%] .button-danger[_ngcontent-%COMP%]{background:#f1556d;color:#fff}.modal[_ngcontent-%COMP%] > .tail[_ngcontent-%COMP%] .button-danger[_ngcontent-%COMP%]:hover{background:#f47185;color:#fff}.modal[_ngcontent-%COMP%] > .tail[_ngcontent-%COMP%] .button-normal[_ngcontent-%COMP%]{background:#d1d2d2;color:#fff}.modal[_ngcontent-%COMP%] > .tail[_ngcontent-%COMP%] .button-normal[_ngcontent-%COMP%]:hover{background:#b2b3b3;color:#fff}.dropdown[_ngcontent-%COMP%]{font-size:14px;position:relative;flex:1}.dropdown[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;background:rgba(0,0,0,0)}.dropdown-contents[_ngcontent-%COMP%]{position:absolute;width:100%;margin-top:8px;left:0px;z-index:100;text-align:left;box-sizing:border-box;background-color:#fff;box-shadow:0 1px 13px 1px #0003;transition:.2s}.dropdown-contents[_ngcontent-%COMP%] > .list-item[_ngcontent-%COMP%]{cursor:pointer;padding:8px;color:#333;font-size:14px;display:flex;align-items:center}.dropdown-contents[_ngcontent-%COMP%] > .list-item[_ngcontent-%COMP%]:hover{background:#eee}.face[_ngcontent-%COMP%]{border-radius:50%;width:32px;height:32px;margin-right:8px}.no-face[_ngcontent-%COMP%]{border-radius:50%;width:32px;height:32px;background-color:#ccc;display:inline-block;margin-right:8px;vertical-align:middle;color:#fff;text-align:center;text-transform:uppercase}.calendar[_ngcontent-%COMP%]{width:100%}.dropdown-background[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1}.disabled[_ngcontent-%COMP%]{opacity:.6;cursor:default;pointer-events:none}.inactive[_ngcontent-%COMP%]{pointer-events:none;filter:grayscale(.3);opacity:.8}.loader[_ngcontent-%COMP%]{position:relative;margin:0 auto;width:50px}.loader.absolute[_ngcontent-%COMP%]{margin:auto;position:absolute;top:calc(50% - 25px);left:calc(50% - 25px)}.loader[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:100%}.circular[_ngcontent-%COMP%]{animation:rotate 2s linear infinite;height:100%;transform-origin:center center;width:100%;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto}.path[_ngcontent-%COMP%]{stroke-dasharray:1,200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke:#0057e7;stroke-linecap:round}.title-close[_ngcontent-%COMP%]{position:absolute;display:flex;top:3px;right:6px;width:45px;height:45px;align-items:center;justify-content:center;font-size:14px;color:#0009;cursor:pointer;transition:.2s}.title-close[_ngcontent-%COMP%]:hover{background-color:#f7f7f7;border-radius:22px}.tail-btn-area[_ngcontent-%COMP%]{border-radius:5px;padding:12px 20px}.row[_ngcontent-%COMP%]{display:flex}.row.between[_ngcontent-%COMP%]{justify-content:space-between}table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}table.table-header[_ngcontent-%COMP%]{min-height:31px;background-color:#f7fafc;border-bottom:solid 1px rgba(0,0,0,.1);border-top:solid 1px rgba(0,0,0,.1);box-sizing:border-box}table.table-header[_ngcontent-%COMP%]:after{border-collapse:separate}table[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%]{width:100%;flex:1;overflow-y:overlay;overflow-x:hidden}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{position:relative;padding:10px 7px;color:#000000de;text-transform:capitalize;text-align:left;font-size:12px;font-weight:normal;-webkit-user-select:none;user-select:none}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding:10px 7px 10px 20px}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{padding:10px 20px 10px 7px}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#0009;border-bottom:1px rgba(0,0,0,.1) solid;padding:14px}.selectable[_ngcontent-%COMP%]{cursor:pointer}.selectable[_ngcontent-%COMP%]:hover{background:#f0f0f0}'],data:{animation:[k.ge,k.ku,k.$r,k.OP]}}),i})();const et=["logoinput"],ot=["cloudAIActivatingOptionsSelect"],it=["actionMenus"];function at(i,r){if(1&i){const n=t.EpF();t.TgZ(0,"div",17),t.TgZ(1,"div",26),t.NdJ("click",function(){return t.CHM(n),t.oxw().isEditMode=!0}),t.TgZ(2,"div",27),t._uU(3,"Edit"),t.qZA(),t.qZA(),t.qZA()}}function rt(i,r){if(1&i){const n=t.EpF();t.TgZ(0,"div",28),t.TgZ(1,"div",26),t.NdJ("click",function(){return t.CHM(n),t.oxw().cancelChanges()}),t.TgZ(2,"div",27),t._uU(3,"Cancel"),t.qZA(),t.qZA(),t.TgZ(4,"div",26),t.NdJ("click",function(){return t.CHM(n),t.oxw().applyChanges()}),t.TgZ(5,"div",27),t._uU(6,"Save"),t.qZA(),t.qZA(),t.qZA()}if(2&i){const n=t.oxw();t.xp6(4),t.ekj("disabled",!n.checkChanges())}}function ct(i,r){if(1&i&&t._UZ(0,"img",47),2&i){const n=t.oxw(2);t.Q6J("src",n.selDealer.logo_url,t.LSH)}}function lt(i,r){1&i&&(t.TgZ(0,"div",48),t.TgZ(1,"i",49),t._uU(2,"domain"),t.qZA(),t.TgZ(3,"div",50),t._uU(4,"No Logo"),t.qZA(),t.qZA())}function st(i,r){if(1&i){const n=t.EpF();t.TgZ(0,"c_map",51),t.NdJ("changePosition",function(o){return t.CHM(n),t.oxw(2).handleEvent(o)}),t.qZA()}if(2&i){const n=t.oxw(2);t.Q6J("lat",n.info.lat)("lng",n.info.lng)("width",730)("height",360)("isDynamicView",!1)}}function dt(i,r){1&i&&(t.TgZ(0,"div",52),t.TgZ(1,"div",53),t.TgZ(2,"i",54),t._uU(3,"warning"),t.qZA(),t._UZ(4,"br"),t.TgZ(5,"span"),t._uU(6,"Sorry!"),t._UZ(7,"br"),t.qZA(),t.TgZ(8,"span",55),t._uU(9,"Google Map is not supported for manual address entry."),t.qZA(),t.qZA(),t.qZA())}function gt(i,r){if(1&i){const n=t.EpF();t.ynx(0),t.TgZ(1,"div",29),t.TgZ(2,"div",30),t.TgZ(3,"div",31),t.YNc(4,ct,1,1,"img",32),t.YNc(5,lt,5,0,"div",33),t.qZA(),t.TgZ(6,"div",34),t.TgZ(7,"div",35),t.TgZ(8,"input",36,37),t.NdJ("change",function(o){return t.CHM(n),t.oxw().onImageChange(o)}),t.qZA(),t.TgZ(10,"div",38),t._uU(11,"png, jpg supported"),t.qZA(),t.qZA(),t.TgZ(12,"div",39),t.NdJ("click",function(){return t.CHM(n),t.oxw().selectLogo()}),t._uU(13,"Upload Logo"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(14,"div",40),t.TgZ(15,"div",41),t.TgZ(16,"div",42),t._uU(17,"Common Dealer Name (DBA)"),t.qZA(),t.TgZ(18,"div",43),t._uU(19),t.qZA(),t.qZA(),t.TgZ(20,"div",41),t.TgZ(21,"div",42),t._uU(22,"Legal Dealer Name"),t.qZA(),t.TgZ(23,"div",43),t._uU(24),t.qZA(),t.qZA(),t.TgZ(25,"div",41),t.TgZ(26,"div",42),t._uU(27,"Sub Dealer ID Value"),t.qZA(),t.TgZ(28,"div",43),t._uU(29),t.qZA(),t.qZA(),t.TgZ(30,"div",41),t.TgZ(31,"div",42),t._uU(32,"Company E-mail"),t.qZA(),t.TgZ(33,"div",43),t._uU(34),t.qZA(),t.qZA(),t.TgZ(35,"div",41),t.TgZ(36,"div",42),t._uU(37,"Company Phone"),t.qZA(),t.TgZ(38,"div",43),t._uU(39),t.qZA(),t.qZA(),t.TgZ(40,"div",41),t.TgZ(41,"div",42),t._uU(42,"Company Address"),t.qZA(),t.TgZ(43,"div",43),t.TgZ(44,"div"),t._uU(45),t.qZA(),t.TgZ(46,"div"),t._uU(47),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(48,"div",44),t.YNc(49,st,1,5,"c_map",45),t.YNc(50,dt,10,0,"div",46),t.qZA(),t.BQk()}if(2&i){const n=t.oxw();let e,o;t.xp6(4),t.Q6J("ngIf",n.selDealer.logo_url),t.xp6(1),t.Q6J("ngIf",!n.selDealer.logo_url),t.xp6(14),t.Oqu(n.info.company_name),t.xp6(5),t.Oqu(null!==(e=n.info.legal_company_name)&&void 0!==e?e:"No Data"),t.xp6(5),t.Oqu(null!==(o=n.info.external_dealer_id)&&void 0!==o?o:"No Data"),t.xp6(5),t.Oqu(n.info.company_email),t.xp6(5),t.Oqu(n.info.company_phone),t.xp6(6),t.Oqu(n.info.company_address1),t.xp6(2),t.Oqu(n.info.company_address2),t.xp6(2),t.Q6J("ngIf",n.info.lat&&n.info.lng),t.xp6(1),t.Q6J("ngIf",!n.info.lat||!n.info.lng)}}function pt(i,r){if(1&i&&t._UZ(0,"img",47),2&i){const n=t.oxw(2);t.Q6J("src",n.selDealer.logo_url,t.LSH)}}function _t(i,r){1&i&&(t.TgZ(0,"div",48),t.TgZ(1,"i",49),t._uU(2,"domain"),t.qZA(),t.TgZ(3,"div",50),t._uU(4,"No Logo"),t.qZA(),t.qZA())}function ft(i,r){if(1&i){const n=t.EpF();t.TgZ(0,"c_map",63),t.NdJ("changePosition",function(o){return t.CHM(n),t.oxw(2).handleEvent(o)}),t.qZA()}if(2&i){const n=t.oxw(2);t.Q6J("lat",n.info.lat)("lng",n.info.lng)("isDynamicView",!0)}}function ut(i,r){1&i&&(t.TgZ(0,"div",52),t.TgZ(1,"div",64),t._uU(2,"No location information available.\\n Please re-enter the address and save."),t.qZA(),t.qZA())}function ht(i,r){if(1&i){const n=t.EpF();t.ynx(0),t.TgZ(1,"div",29),t.TgZ(2,"div",30),t.TgZ(3,"div",31),t.YNc(4,pt,1,1,"img",32),t.YNc(5,_t,5,0,"div",33),t.qZA(),t.TgZ(6,"div",34),t.TgZ(7,"div",35),t.TgZ(8,"input",36,37),t.NdJ("change",function(o){return t.CHM(n),t.oxw().onImageChange(o)}),t.qZA(),t.TgZ(10,"div",38),t._uU(11,"png, jpg supported"),t.qZA(),t.qZA(),t.TgZ(12,"div",39),t.NdJ("click",function(){return t.CHM(n),t.oxw().selectLogo()}),t._uU(13,"Upload Logo"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(14,"div",40),t.TgZ(15,"div",41),t.TgZ(16,"div",42),t._uU(17,"Common Dealer Name (DBA)"),t.qZA(),t.TgZ(18,"input",56),t.NdJ("ngModelChange",function(o){return t.CHM(n),t.oxw().info.company_name=o}),t.qZA(),t.qZA(),t.TgZ(19,"div",41),t.TgZ(20,"div",42),t._uU(21,"Legal Dealer Name"),t.qZA(),t.TgZ(22,"div",43),t._uU(23),t.qZA(),t.qZA(),t.TgZ(24,"div",41),t.TgZ(25,"div",42),t._uU(26,"Sub Dealer ID Value"),t.qZA(),t.TgZ(27,"input",57),t.NdJ("ngModelChange",function(o){return t.CHM(n),t.oxw().info.external_dealer_id=o}),t.qZA(),t.qZA(),t.TgZ(28,"div",41),t.TgZ(29,"div",4),t._uU(30,"Company E-mail"),t.qZA(),t.TgZ(31,"input",58),t.NdJ("ngModelChange",function(o){return t.CHM(n),t.oxw().info.company_email=o}),t.qZA(),t.qZA(),t.TgZ(32,"div",41),t.TgZ(33,"div",4),t._uU(34,"Company Phone"),t.qZA(),t.TgZ(35,"input",58),t.NdJ("ngModelChange",function(o){return t.CHM(n),t.oxw().info.company_phone=o}),t.qZA(),t.qZA(),t.TgZ(36,"div",41),t.TgZ(37,"div",4),t._uU(38,"Company Address"),t.qZA(),t.TgZ(39,"input",59),t.NdJ("ngModelChange",function(o){return t.CHM(n),t.oxw().info.company_address1=o})("focus",function(o){t.CHM(n);const a=t.oxw();return a.enableGoogleAddressSearch(o.target,a.info)})("input",function(){return t.CHM(n),t.oxw().checkAddress()}),t.qZA(),t.TgZ(40,"input",60),t.NdJ("ngModelChange",function(o){return t.CHM(n),t.oxw().info.company_address2=o}),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(41,"div",61),t.YNc(42,ft,1,3,"c_map",62),t.YNc(43,ut,3,0,"div",46),t.qZA(),t.BQk()}if(2&i){const n=t.oxw();let e;t.xp6(4),t.Q6J("ngIf",n.selDealer.logo_url),t.xp6(1),t.Q6J("ngIf",!n.selDealer.logo_url),t.xp6(13),t.ekj("input-err",!(null!=n.info.company_name&&n.info.company_name.trim())),t.Q6J("ngModel",n.info.company_name),t.xp6(5),t.Oqu(null!==(e=n.info.legal_company_name)&&void 0!==e?e:"No Data"),t.xp6(4),t.Q6J("ngModel",n.info.external_dealer_id),t.xp6(4),t.ekj("input-err",!(null!=n.info.company_email&&n.info.company_email.trim())),t.Q6J("ngModel",n.info.company_email),t.xp6(4),t.ekj("input-err",!(null!=n.info.company_phone&&n.info.company_phone.trim())),t.Q6J("ngModel",n.info.company_phone),t.xp6(4),t.ekj("input-err",n.info.addressErr),t.Q6J("ngModel",n.info.company_address1),t.xp6(1),t.Q6J("ngModel",n.info.company_address2),t.xp6(2),t.Q6J("ngIf",n.info.lat&&n.info.lng),t.xp6(1),t.Q6J("ngIf",!n.info.lat||!n.info.lng)}}function mt(i,r){if(1&i){const n=t.EpF();t.TgZ(0,"div",13),t.TgZ(1,"div",66),t._uU(2),t.qZA(),t.TgZ(3,"div"),t.TgZ(4,"div",17),t.TgZ(5,"div",67),t.NdJ("click",function(){return t.CHM(n),t.oxw(2).signinActivateUpdateDialog()}),t.TgZ(6,"div",27),t._uU(7),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&i){const n=t.oxw(2);t.xp6(1),t.ekj("inactivated",!n.selDealer.is_signin_activated)("activated",n.selDealer.is_signin_activated),t.xp6(1),t.Oqu(n.selDealer.is_signin_activated?"Sign-In Activated":"Sign In Inactivated"),t.xp6(3),t.ekj("disabled",n.isLoading)("button-danger",n.selDealer.is_signin_activated)("button-primary",!n.selDealer.is_signin_activated),t.xp6(2),t.Oqu(n.selDealer.is_signin_activated?"Disable Dealer Sign-In":"Enable Dealer Sign-In")}}function xt(i,r){if(1&i){const n=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"div",4),t._uU(2,"Active Status"),t.qZA(),t.YNc(3,mt,8,12,"div",65),t.TgZ(4,"div",13),t.TgZ(5,"div",66),t._uU(6),t.qZA(),t.TgZ(7,"div"),t.TgZ(8,"div",17),t.TgZ(9,"div",67),t.NdJ("click",function(){return t.CHM(n),t.oxw().activateUpdateDialog()}),t.TgZ(10,"div",27),t._uU(11),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(12,"div",4),t._uU(13,"Total Customer"),t.qZA(),t.TgZ(14,"div",21),t.TgZ(15,"div",66),t._uU(16),t.qZA(),t.qZA(),t.TgZ(17,"div",4),t._uU(18,"Total Device"),t.qZA(),t.TgZ(19,"div",21),t.TgZ(20,"div",66),t._uU(21),t.qZA(),t.qZA(),t.TgZ(22,"div",4),t._uU(23,"Today Device Event"),t.qZA(),t.TgZ(24,"div",21),t.TgZ(25,"div",66),t._uU(26),t.qZA(),t.qZA(),t.qZA()}if(2&i){const n=t.oxw();t.xp6(3),t.Q6J("ngIf",n.selDealer.is_activated),t.xp6(2),t.ekj("inactivated",!n.selDealer.is_activated)("activated",n.selDealer.is_activated),t.xp6(1),t.hij("Dealer ",n.selDealer.is_activated?"Devices Activated":"Devices Inactivated",""),t.xp6(3),t.ekj("button-disabled",n.isLoading)("button-danger",n.selDealer.is_activated)("button-primary",!n.selDealer.is_activated),t.xp6(2),t.Oqu(n.selDealer.is_activated?"Disable All Dealer Devices":"Enable All Dealer Devices"),t.xp6(5),t.Oqu(n.totalCustomer),t.xp6(5),t.Oqu(n.totalDevice),t.xp6(5),t.Oqu(n.todayDeviceEvent)}}function Ct(i,r){if(1&i){const n=t.EpF();t.TgZ(0,"div",68),t.TgZ(1,"div",4),t._uU(2,"Invitation"),t.qZA(),t.TgZ(3,"div",21),t.TgZ(4,"div",69),t._uU(5,"Not yet accept invitation"),t.qZA(),t.qZA(),t.TgZ(6,"div"),t.TgZ(7,"div",39),t.NdJ("click",function(){return t.CHM(n),t.oxw().resendDialog()}),t._uU(8,"Resend"),t.qZA(),t.qZA(),t.qZA()}if(2&i){const n=t.oxw();t.xp6(7),t.ekj("button-disabled",n.isLoading)}}function bt(i,r){1&i&&(t.TgZ(0,"span",70),t._uU(1,"Basic"),t.qZA())}function Pt(i,r){if(1&i&&(t.TgZ(0,"span",71),t._uU(1),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Oqu(n.partnerDealerPlanType.name)}}function Mt(i,r){if(1&i&&(t.TgZ(0,"div",72),t._uU(1),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.AsE("Downgraded to ",n.nextMonthPlanName," starting on ",n.downgradeDate," ")}}function Ot(i,r){if(1&i){const n=t.EpF();t.TgZ(0,"div",73),t.NdJ("click",function(){return t.CHM(n),t.oxw().onClickPlanUpgrade()}),t.TgZ(1,"div",27),t._uU(2),t.qZA(),t.qZA()}if(2&i){const n=t.oxw();t.xp6(2),t.Oqu(1===n.partnerDealerPlanType.type?"Upgrade account":"Change the Plan")}}function vt(i,r){if(1&i){const n=t.EpF();t.TgZ(0,"div",74),t.NdJ("click",function(){return t.CHM(n),t.oxw().goToResellerPlanDescription()}),t.TgZ(1,"div",27),t._uU(2,"Go to Upgrade to Reseller Plan"),t.qZA(),t.qZA()}}function yt(i,r){1&i&&(t.TgZ(0,"div",75),t.TgZ(1,"div",76),t._uU(2,"** "),t.TgZ(3,"u"),t._uU(4,"Upgrade to Reseller Plan"),t.qZA(),t._uU(5," before setting sub-dealer plan."),t.qZA(),t.qZA())}function wt(i,r){if(1&i&&(t.ynx(0),t.TgZ(1,"td"),t.TgZ(2,"div",92),t._uU(3),t.qZA(),t.qZA(),t.TgZ(4,"td",93),t._uU(5),t.qZA(),t.BQk()),2&i){const n=t.oxw(2);t.xp6(2),t.Q6J("ngClass",n.isActivatedSubDealerCloudAI.value?"enabled":"disabled"),t.xp6(1),t.Oqu(n.isActivatedSubDealerCloudAI.value?"Activated":"Deactivated"),t.xp6(1),t.Q6J("ngStyle",n.computedStyleAboutWhetherSubDealerCloudAIAgreement()),t.xp6(1),t.Oqu(n.isAgreedCloudAIAgreementForSubDealer?"Yes":"No")}}function Zt(i,r){if(1&i){const n=t.EpF();t.TgZ(0,"div",104),t.NdJ("click",function(){const a=t.CHM(n).$implicit;return t.oxw(4).selectCloudAIActivated(a)}),t.TgZ(1,"div",105),t._uU(2),t.qZA(),t.qZA()}if(2&i){const n=r.$implicit,e=t.oxw(4);t.ekj("selected",e.isActivatedSubDealerCloudAI===n),t.xp6(2),t.Oqu(n.name)}}function At(i,r){if(1&i&&(t.O4$(),t.kcU(),t.TgZ(0,"div",102),t.YNc(1,Zt,3,3,"div",103),t.qZA()),2&i){const n=t.oxw(3);t.xp6(1),t.Q6J("ngForOf",n.cloudAIActivatingOptions)}}function Tt(i,r){if(1&i){const n=t.EpF();t.ynx(0),t.TgZ(1,"td"),t.TgZ(2,"div",94,95),t.TgZ(4,"div",96),t.NdJ("click",function(){t.CHM(n);const o=t.oxw(2);return o.isShowCloudAIActivatingOptions=!o.isShowCloudAIActivatingOptions}),t.TgZ(5,"div"),t._uU(6),t.qZA(),t.O4$(),t.TgZ(7,"svg",97),t._UZ(8,"path",98),t._UZ(9,"path",99),t._UZ(10,"path",100),t.qZA(),t.qZA(),t.YNc(11,At,2,1,"div",101),t.qZA(),t.qZA(),t.kcU(),t.TgZ(12,"td",93),t._uU(13),t.qZA(),t.BQk()}if(2&i){const n=t.oxw(2);t.xp6(2),t.ekj("disabled",n.isLoading),t.xp6(4),t.Oqu(n.isActivatedSubDealerCloudAI.name),t.xp6(5),t.Q6J("ngIf",n.isShowCloudAIActivatingOptions),t.xp6(1),t.Q6J("ngStyle",n.computedStyleAboutWhetherSubDealerCloudAIAgreement()),t.xp6(1),t.Oqu(n.isAgreedCloudAIAgreementForSubDealer?"Yes":"No")}}function Dt(i,r){if(1&i){const n=t.EpF();t.ynx(0),t.TgZ(1,"div",106),t.NdJ("click",function(o){t.CHM(n);const a=t.oxw(2);return o.stopPropagation(),a.editPreallocatedUsage()}),t.TgZ(2,"div",107),t._uU(3,"Edit"),t.qZA(),t.qZA(),t.BQk()}}function It(i,r){if(1&i){const n=t.EpF();t.ynx(0),t.TgZ(1,"div",106),t.NdJ("click",function(o){t.CHM(n);const a=t.oxw(2);return o.stopPropagation(),a.savePreallocatedUsage()}),t.TgZ(2,"div",107),t._uU(3,"Save"),t.qZA(),t.qZA(),t.TgZ(4,"div",106),t.NdJ("click",function(o){t.CHM(n);const a=t.oxw(2);return o.stopPropagation(),a.cancelPreallocatedUsage()}),t.TgZ(5,"div",27),t._uU(6,"Cancel"),t.qZA(),t.qZA(),t.BQk()}}function St(i,r){if(1&i){const n=t.EpF();t.ynx(0),t.TgZ(1,"div",4),t._uU(2,"Preallocated Usage Service"),t.qZA(),t.TgZ(3,"div",21),t.TgZ(4,"div",77),t.TgZ(5,"table",78),t.TgZ(6,"colgroup"),t._UZ(7,"col",79),t._UZ(8,"col",80),t._UZ(9,"col",81),t._UZ(10,"col",82),t.qZA(),t.TgZ(11,"thead"),t.TgZ(12,"th"),t._uU(13,"SERVICE"),t.qZA(),t.TgZ(14,"th"),t._uU(15,"ACTIVATION STATUS"),t.qZA(),t.TgZ(16,"th"),t._uU(17,"AI DEALER AGREEMENT"),t.qZA(),t._UZ(18,"th"),t.qZA(),t.qZA(),t.TgZ(19,"div",83),t.TgZ(20,"table",84),t.TgZ(21,"colgroup"),t._UZ(22,"col",79),t._UZ(23,"col",80),t._UZ(24,"col",81),t._UZ(25,"col",82),t.qZA(),t.TgZ(26,"tbody"),t.TgZ(27,"tr",85),t.TgZ(28,"td"),t._uU(29,"Cloud AI Services"),t.qZA(),t.YNc(30,wt,6,4,"ng-container",8),t.YNc(31,Tt,14,6,"ng-container",8),t.TgZ(32,"td",86),t.TgZ(33,"div",87,88),t.NdJ("mouseenter",function(){return t.CHM(n),t.oxw().setUsaageMorePosition()}),t.TgZ(35,"i",89),t.NdJ("click",function(o){t.CHM(n);const a=t.oxw();return o.stopPropagation(),a.toggelActionMenu()}),t._uU(36,"more_horiz"),t.qZA(),t.TgZ(37,"div",90),t.TgZ(38,"div",91),t.YNc(39,Dt,4,0,"ng-container",8),t.YNc(40,It,7,0,"ng-container",8),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()}if(2&i){const n=t.oxw();t.xp6(30),t.Q6J("ngIf",!n.isEditModeForUsage),t.xp6(1),t.Q6J("ngIf",n.isEditModeForUsage),t.xp6(4),t.ekj("show",n.isShowMenu),t.xp6(2),t.ekj("visible",n.isShowMenu),t.xp6(2),t.Q6J("ngIf",!n.isEditModeForUsage),t.xp6(1),t.Q6J("ngIf",n.isEditModeForUsage)}}function kt(i,r){1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div",108),t.O4$(),t.TgZ(2,"svg",109),t._UZ(3,"circle",110),t.qZA(),t.qZA(),t.qZA())}function qt(i,r){if(1&i){const n=t.EpF();t.TgZ(0,"app-wcs-plan-upgrade",111),t.NdJ("onClose",function(o){return t.CHM(n),t.oxw().onClickSelectedPlan(o)}),t.qZA()}if(2&i){const n=t.oxw();t.Q6J("modal",n.m_plan_select)}}const zt=M.Bz.forChild([{path:"",component:(()=>{class i{constructor(n,e,o,a,d,g,p,x,y,P,w,T){this.usersService=n,this.partnerService=e,this.commonService=o,this.dealerPlanService=a,this.integrationService=d,this.videoAIService=g,this.zone=p,this.http=x,this.route=y,this.helper=P,this.map=w,this.apiService=T,this.routeToSite=new Object,this.parentPath="/wcs-sub-dealers",this.partners=[],this.filtered_results=[],this.MSList=[],this.selDealer={},this.isEditMode=!1,this.searchMsg="",this.searchTxt="",this.isReadyInfo=!1,this.isSearching=!1,this.isLoading=!1,this.isServerWarning=!1,this.isDestroy=!1,this.isChange=!0,this.is_mapCtrl=!1,this.myDealerPlanType={name:"",type:null},this.partnerDealerPlanType={name:"",type:null,updatedAt:""},this.isShowWarning=!1,this.m_warning=new C.u,this.m_create=new C.u,this.m_plan_select=new C.u,this.m_plan_precaution=new C.u,this.m_plan_payment=new C.u,this.totalDevice=0,this.totalCustomer=0,this.todayDeviceEvent=0,this.logoState=1,this.isShowCloudAIActivatingOptions=!1,this.mainDealerCloudAIEnabled=!1,this.isAgreedCloudAIAgreementForSubDealer=!1,this.mainDealerDefaultProviderId=null,this.isActivatedSubDealerCloudAI={name:"Deactivated",value:!1},this.originData={isActivatedSubDealerCloudAI:{name:"Deactivated",value:!1}},this.cloudAIActivatingOptions=[{name:"Activated",value:!0},{name:"Deactivated",value:!1}],this.isEditModeForUsage=!1,this.isShowMenu=!1}onGlobalClick(n){this.cloudAIActivatingOptionsSelect&&(this.cloudAIActivatingOptionsSelect.nativeElement.contains(n.target)||(this.isShowCloudAIActivatingOptions=!1)),this.actionMenus&&(this.actionMenus.nativeElement.contains(n.target)||(this.isShowMenu=!1))}ngOnInit(){this.route.queryParams.subscribe(n=>{this.initData();let e=null;n.dealer_id&&(e=n.dealer_id),n.retailDealerId?this.retailDealerId=n.retailDealerId:this.gotoParent(),this.partnerService.selRetailDealer&&(this.selDealer=this.partnerService.selRetailDealer),this.disableGoogleAddressSearch(),this.isLoading=!0,this.isReadyInfo=!1,this.usersService.getMe(e).subscribe(o=>{console.log("change?"),this.me=o,this.fetchMyDealerPlan(),this.fetchPartnerMS(),this.fetchPartnerStatus(),this.fetchPartnerDealerPlan(),this.fetchPartnerDealerCloudAIConfig(),this.fetchMainDealerCloudAIConfig(),this.setInfo(),this.isChange=!1,this.isLoading=!1})})}ngOnDestroy(){this.isDestroy=!0,this.disableGoogleAddressSearch()}ngAfterViewInit(){this.partnerService.selRetailDealer&&(this.selDealer=this.partnerService.selRetailDealer)}initData(){this.selDealer={},this.totalCustomer=0,this.totalDevice=0,this.isSearching=!1,this.isLoading=!1,this.isServerWarning=!1,this.isEditMode=!1}setInfo(){this.info={external_dealer_id:this.selDealer.external_dealer_id,legal_company_name:this.selDealer.legal_company_name,company_name:this.selDealer.company_name,company_email:this.selDealer.company_email,company_address1:this.selDealer.company_address1,company_address2:this.selDealer.company_address2,company_zipcode:this.selDealer.company_zipcode,company_phone:this.selDealer.company_phone,lat:this.selDealer.lat,lng:this.selDealer.lng}}fetchMyDealerPlan(){this.dealerPlanService.getDealerPlan(this.me.dealer_id).subscribe(n=>{let e;switch(null==n?void 0:n.current_month_service_plan_type){case 1:default:e="Basic";break;case 4:e="Reseller Plan"}this.myDealerPlanType={name:e,type:null==n?void 0:n.current_month_service_plan_type}})}fetchPartner(){this.partnerService.getPartner(this.me.dealer_id,this.retailDealerId).subscribe(n=>{this.zone.run(()=>{this.partnerService.selRetailDealer=n[0],this.selDealer=n[0],this.partnerService.changeParnter(n[0])})})}fetchPartnerStatus(){this.partnerService.getPartnerStatus(this.me.dealer_id,this.retailDealerId).subscribe(o=>{0!==o.length&&(this.totalCustomer=o[0].total_site,this.totalDevice=o[0].total_device),this.isReadyInfo=!0},o=>{this.isReadyInfo=!0})}fetchPartnerMS(){this.integrationService.getMonitoringStations(this.me.dealer_id,this.retailDealerId).subscribe(n=>{this.MSList=n})}fetchPartnerDealerPlan(){this.dealerPlanService.getDealerPlan(this.retailDealerId,"partner").subscribe(n=>{let e;const o=null==n?void 0:n.current_month_service_plan_type,a=null==n?void 0:n.next_month_service_plan_type;e=this.parseServicePlanTypeToPlanName(o);let d=this.parseServicePlanTypeToPlanName(a);this.partnerDealerPlanType={name:e,type:null==n?void 0:n.current_month_service_plan_type,updatedAt:null==n?void 0:n.updated_at},this.isShowWarning=o>a,this.isShowWarning&&(this.nextMonthPlanName=d,this.setDowngradeDate())},n=>{console.debug("Not set partner dealer plan",n),this.isLoading=!1,this.commonService.showErrorToast(n,"Failed Partner dealer plan")})}parseServicePlanTypeToPlanName(n){switch(n){case 1:default:return"Basic";case 2:return"Professional";case 3:return"Premium";case 4:return"Reseller"}}setDowngradeDate(){const n=U()().add(1,"month").startOf("month").format("D MMM YYYY");this.downgradeDate=n}fetchMainDealerCloudAIConfig(){this.videoAIService.getDealerCloudAIConfig(this.me.dealer_id).subscribe(e=>{const{enabled:o,videoai_provider_id:a}=e;this.mainDealerCloudAIEnabled=!!o,this.mainDealerDefaultProviderId=a},e=>{console.log("fetchMainDealerCloudAIConfig :>>",e),this.isLoading=!1})}fetchPartnerDealerCloudAIConfig(){this.videoAIService.getSubDealerCloudAIConfig(this.me.dealer_id,this.retailDealerId).subscribe(o=>{const{enabled:a,tos:d}=o,g=!!a;this.isAgreedCloudAIAgreementForSubDealer=null==d?void 0:d.is_accepted,this.isActivatedSubDealerCloudAI=this.cloudAIActivatingOptions.find(p=>p.value===g),this.originData.isActivatedSubDealerCloudAI=this.cloudAIActivatingOptions.find(p=>p.value===g)},o=>{console.log("fetchPartnerDealerCloudAIConfig :>>",o),this.isLoading=!1})}computedStyleAboutWhetherSubDealerCloudAIAgreement(){return this.isAgreedCloudAIAgreementForSubDealer?{color:"#1EA675"}:{color:"#D25074"}}checkAddress(){this.info.addressErr=!1,""===this.info.company_address1&&(this.info.addressErr=!0)}checkChanges(){if(!this.isLoading&&this.info)return this.selDealer.external_dealer_id!==this.info.external_dealer_id&&(this.isChange=!0),this.selDealer.legal_company_name!==this.info.legal_company_name&&(this.isChange=!0),this.selDealer.company_name!==this.info.company_name&&(this.isChange=!0),this.selDealer.company_email!==this.info.company_email&&(this.isChange=!0),this.selDealer.company_phone!==this.info.company_phone&&(this.isChange=!0),this.selDealer.company_address1!==this.info.company_address1&&(this.info.addressErr=!1,""===this.info.company_address1&&(this.info.addressErr=!0),this.isChange=!0),this.selDealer.company_address2!==this.info.company_address2&&(this.isChange=!0),this.selDealer.lat!==this.info.lat&&(this.isChange=!0),this.selDealer.lng!==this.info.lng&&(this.isChange=!0),this.isChange}cancelChanges(){this.isEditMode=!1,this.setInfo()}applyChanges(){var n,e,o,a,d,g,p,x,y;if(this.isEditMode=!1,""===(null===(n=this.info.company_address1)||void 0===n?void 0:n.trim()))return this.confirmDialog("Update error","Please input Company address","warning","orange"),void this.setInfo();if(""===(null===(e=this.info.company_email)||void 0===e?void 0:e.trim()))return this.confirmDialog("Update error","Please input Company email","warning","orange"),void this.setInfo();if(""===(null===(o=this.info.company_phone)||void 0===o?void 0:o.trim()))return this.confirmDialog("Update error","Please input Company phone","warning","orange"),void this.setInfo();if(""===(null===(a=this.info.company_name)||void 0===a?void 0:a.trim()))return this.confirmDialog("Update error","Please input Company name","warning","orange"),void this.setInfo();this.m_warning.data={header:"Apply Changes",contents:"Are you sure that you want to apply changes?",submit_btn:"Apply",submit_class:["button-primary"]};const P={external_dealer_id:null===(d=this.info.external_dealer_id)||void 0===d?void 0:d.trim(),company_name:null===(g=this.info.company_name)||void 0===g?void 0:g.trim(),company_email:null===(p=this.info.company_email)||void 0===p?void 0:p.trim(),company_phone:null===(x=this.info.company_phone)||void 0===x?void 0:x.trim(),company_address1:this.info.company_address1,company_address2:null===(y=this.info.company_address2)||void 0===y?void 0:y.trim(),company_zipcode:this.info.company_zipcode,lat:this.info.lat,lng:this.info.lng};this.m_warning.data.submit_func=()=>{this.partnerService.updatePartner(this.me.dealer_id,this.retailDealerId,P).pipe((0,D.x)(()=>{this.isChange=!1})).subscribe(w=>{var T,I,Z,f,m,z;this.selDealer.external_dealer_id=null===(T=this.info.external_dealer_id)||void 0===T?void 0:T.trim(),this.selDealer.legal_company_name=null===(I=this.info.legal_company_name)||void 0===I?void 0:I.trim(),this.selDealer.company_name=null===(Z=this.info.company_name)||void 0===Z?void 0:Z.trim(),this.selDealer.company_email=null===(f=this.info.company_email)||void 0===f?void 0:f.trim(),this.selDealer.company_phone=null===(m=this.info.company_phone)||void 0===m?void 0:m.trim(),this.selDealer.company_address1=this.info.company_address1,this.selDealer.company_address2=null===(z=this.info.company_address2)||void 0===z?void 0:z.trim(),this.selDealer.company_zipcode=this.info.company_zipcode,this.info.lat&&(this.selDealer.lat=this.info.lat),this.info.lng&&(this.selDealer.lng=this.info.lng),this.commonService.showSuccessToast("Update a WCS Sub Dealer Info","Success")},w=>{this.serverWarning(w)})},this.m_warning.data.cancel_func=()=>this.setInfo(),this.m_warning.open()}createMS(){this.m_create.data.partner_id=this.retailDealerId,this.m_create.open()}editMS(n){this.m_create.data.MS=n,this.m_create.data.id=n.id,this.m_create.data.name=n.name,this.m_create.data.description=n.description,this.m_create.data.forwarding_method=n.forwarding_method,this.m_create.data.prefix=n.prefix,this.m_create.data.receiver_number=n.receiver_number,this.m_create.data.line_number=n.line_number,this.m_create.data.dealer_id=this.me.dealer_id,this.m_create.data.partner_id=this.retailDealerId,this.m_create.data.event_adapter_id=n.event_adapter_id,this.m_create.open()}closeCreate(n){this.fetchPartnerMS()}activateUpdateRetailDealer(n){const e=n?"Activated":"Inactivated";this.partnerService.updatePartnerActive(this.me.dealer_id,this.retailDealerId,n).subscribe(o=>{setTimeout(()=>{this.confirmDialog(`${e} a WCS Sub Dealer`,"Success"),this.fetchPartner()},300)})}signinActivateUpdateRetailDealer(n){const e=n?"Enable Sign In":"Disable Sign In";this.partnerService.updatePartnerSigninActive(this.me.dealer_id,this.retailDealerId,n).subscribe(o=>{setTimeout(()=>{this.confirmDialog(`${e} a WCS Sub Dealer`,"Success"),this.fetchPartner()},300)})}activateUpdateDialog(){var n;const e=this.selDealer.is_activated?0:1,o=e?"Activate":"Inactivate";this.m_warning.data={header:`${o} a WCS Sub Dealer`,contents:`Are you sure that you want to Change ${o} this WCS Sub Dealer?`,submit_btn:o,submit_class:["button-danger"],isInput:this.selDealer.external_dealer_id?"Please type in the Id name of dealer":"Please type in the company name of dealer",confirmInput:null!==(n=this.selDealer.external_dealer_id)&&void 0!==n?n:this.selDealer.company_name},this.m_warning.data.submit_func=()=>{this.activateUpdateRetailDealer(e)},this.m_warning.open()}signinActivateUpdateDialog(){var n;const e=this.selDealer.is_signin_activated?0:1,o=e?"Enable Sign In":"Disable Sign In";this.m_warning.data={header:`${o} a WCS Sub Dealer`,contents:`Are you sure that you want to Change ${o} this WCS Sub Dealer?`,submit_btn:o,submit_class:["button-danger"],isInput:this.selDealer.external_dealer_id?"Please type in the Id name of dealer":"Please type in the company name of dealer",confirmInput:null!==(n=this.selDealer.external_dealer_id)&&void 0!==n?n:this.selDealer.company_name},this.m_warning.data.submit_func=()=>{this.signinActivateUpdateRetailDealer(e)},this.m_warning.open()}resendDealer(){this.partnerService.inviteDealer(this.me.dealer_id,this.retailDealerId).subscribe(n=>{setTimeout(()=>{this.confirmDialog("Resend invitation Dealer","success")},200)},n=>{this.errorDialog(n,"Resend invitation Dealer")})}resendDialog(){this.m_warning.data={header:"Resend invitation a WCS Sub Dealer",contents:"Are you sure that you want to Change resend invitation this WCS Sub Dealer?",submit_btn:"resend",submit_class:["button-primary"]},this.m_warning.data.submit_func=()=>{this.resendDealer()},this.m_warning.open()}onImageChange(n){var e,o;return(0,O.mG)(this,void 0,void 0,function*(){if(null===(e=null==n?void 0:n.target)||void 0===e?void 0:e.files[0]){if(!(null===(o=null==n?void 0:n.target)||void 0===o?void 0:o.files[0].type.match(/image.*/)))return void console.debug("Not an image");try{this.image=n.target.files[0];const a=yield h.Z.tool.resizeImage(this.image,256,256);this.uploadImg=a,this.updateLogoDialog(this.uploadImg,this.image.type)}catch(a){console.debug("Oh no!",a),this.errorDialog(a,"Update a logo")}}})}selectLogo(){this.image?(new FileReader,this.updateLogoDialog(this.uploadImg,this.image.type)):this.logoInput.nativeElement.click()}uploadLogo(n,e){this.logoState=2,this.isLoading=!0,this.partnerService.uploadLogo(this.me.dealer_id,this.retailDealerId,n,e).subscribe(a=>{null!=a?setTimeout(()=>{this.logoState=1,this.isLoading=!1,this.uploadImg=null,this.image=null,this.fetchPartner()},1e3):this.isLoading=!1},a=>{this.serverWarning(a),this.logoState=0,this.isLoading=!1})}updateLogoDialog(n,e){this.m_warning.data={header:"Update a Logo",contents:"Are you sure that you want to update a logo?",submit_btn:"Update",submit_class:["button-primary"]},this.m_warning.data.submit_func=()=>{this.uploadLogo(n,e)},this.m_warning.open()}onClickPlanUpgrade(){this.m_plan_select.is_active=!0,this.m_plan_select.currentPlan=this.partnerDealerPlanType,this.m_plan_select.retailDealerId=this.retailDealerId,this.m_plan_select.open()}onClickSelectedPlan(n){n&&(1===n.type&&(this.isActivatedSubDealerCloudAI=this.cloudAIActivatingOptions.find(o=>!1===o.value),this.updateSubDealerCloudAIConfig()),this.confirmDialog(`Now your plan is ${n.name}`,`\n <p>\n Your account has been upgraded to ${n.name}.\n </p>\n `),this.fetchPartnerDealerPlan())}goToResellerPlanDescription(){this.helper.router.navigate_to("/settings/reseller-plan")}goToSubDealerDescription(){this.helper.router.navigate_to("/settings/dealer-plan")}selectCloudAIActivated(n){this.isActivatedSubDealerCloudAI=n,this.isShowCloudAIActivatingOptions=!1}setUsaageMorePosition(){const n=document.documentElement;let e=document.getElementById("feature-cloud-ai"),o=document.getElementById("feature-more-cloud-ai"),a=e.getBoundingClientRect(),d=o.getBoundingClientRect();const p=a.top-d.height-12;o.style.right=n.clientWidth-a.right-10+"px",o.style.top=p+"px"}toggelActionMenu(){this.isShowMenu=!this.isShowMenu}editPreallocatedUsage(){this.mainDealerCloudAIEnabled?(this.isEditModeForUsage=!0,this.isShowMenu=!1):this.confirmDialog("Please check if the Cloud AI of the main dealer is activated","You must activate your Cloud AI config before you can activate the sub dealer is activated first.","warning","orange")}savePreallocatedUsage(){this.retailDealerId&&null!=this.isActivatedSubDealerCloudAI.value&&this.updateSubDealerCloudAIConfig()}cancelPreallocatedUsage(){this.isActivatedSubDealerCloudAI=this.originData.isActivatedSubDealerCloudAI,this.isEditModeForUsage=!1,this.isShowMenu=!1}updateSubDealerCloudAIConfig(){const n=this.me.dealer_id,e={partner_id:parseInt(this.retailDealerId),enabled:this.isActivatedSubDealerCloudAI.value?1:0,videoai_provider_id:this.mainDealerDefaultProviderId};this.videoAIService.updateSubDealerCloudAIConfig(n,e).subscribe(o=>{console.log("success"),this.isActivatedSubDealerCloudAI.value||this.getAllSubDealerSites(),this.commonService.showSuccessToast("Update SubDealer CloudAI Config","Successfully "+(this.isActivatedSubDealerCloudAI.value?"activate":"deactivated")),this.fetchPartnerDealerCloudAIConfig(),this.isShowMenu=!1,this.isEditModeForUsage=!1,this.isLoading=!1},o=>{this.isLoading=!1,this.commonService.showErrorToast(o,"","")})}getAllSubDealerSites(){this.partnerService.getRetailDealerSites(this.me.dealer_id,this.retailDealerId).subscribe(o=>{o.forEach(a=>this.disableCloudAIForSubdealerSites(a))},o=>{this.isLoading=!1,console.log("getAllSubDealerSites :>>",o),this.commonService.showErrorToast(o,"Faild Disable Cloud AI","Faild")})}disableCloudAIForSubdealerSites(n){this.videoAIService.updateSiteCloudAIConfig(this.me.dealer_id,n.site_id,{enabled:0}).subscribe(()=>{},d=>{this.isLoading=!1,console.log("disableCloudAIForSubdealerSites :>>",d),this.commonService.showErrorToast(d,"Faild Disable Cloud AI","Faild")})}confirmDialog(n="",e="",o="done",a="green"){this.m_warning.data={header:n,contents:`\n <p>${e}</b></p>\n `,submit_btn:"OK",submit_class:["button-primary"],icon:o,isConfirm:!0,color:a},this.m_warning.data.submit_func=()=>{this.isServerWarning=!1},this.m_warning.open()}gotoParent(){this.helper.router.navigate_to(`${this.parentPath}`)}handleEvent(n){this.info.lat=n.lat,this.info.lng=n.lng,console.log("change data?",n.lat,n.lng);let e=`https://maps.googleapis.com/maps/api/geocode/json?latlng=${this.info.lat},${this.info.lng}&channel=2`;e+=`&key=${this.apiService.googleApiKey}`,this.http.get(e).toPromise().then(o=>{this.info.company_address1=o.results[0].formatted_address,console.log("change data?",this.info.company_address1),this.zone.run(()=>{})}).catch(o=>console.log(o)),this.isChange=!0,this.checkChanges()}enableGoogleAddressSearch(n,e){if(!this.googleAddressSearchEventListener){const d=new google.maps.places.Autocomplete(n,{types:["geocode"]});this.googleAddressSearchEventListener=d.addListener("place_changed",()=>{const g=d.getPlace(),p=g.geometry.location.lat(),x=g.geometry.location.lng(),y=g.formatted_address,P=g.address_components;let w="";for(let f=0;f<P.length;f++)for(let m=0;m<P[f].types.length;m++)"postal_code"===P[f].types[m]&&(w=P[f].short_name);const I=(new Date).getTime()/1e3;let Z=`https://maps.googleapis.com/maps/api/timezone/json?location=${p},${x}&channel=2`;Z+=`&key=${this.apiService.googleApiKey}`,Z+=`×tamp=${I}`,this.http.get(Z).toPromise().then(f=>{const m=f;e&&(e.company_address1=y,e.company_zipcode=w,e.lat=p,e.lng=x,e.timezone_offset=m.rawOffset,e.timezone=m.timeZoneId,this.info.lat=p,this.info.lng=x,this.zone.run(()=>{}))}).catch(f=>console.log(f))})}}disableGoogleAddressSearch(){google.maps.event.removeListener(this.googleAddressSearchEventListener),this.googleAddressSearchEventListener=null}errorDialog(n,e){let o="failed.";n.error&&n.error.message&&(o=n.error.message),n._body&&(o=JSON.parse(n._body).message),setTimeout(()=>{this.confirmDialog(e,o,"warning","orange")},200),this.isLoading=!1}serverWarning(n){429===n.status&&!this.isServerWarning&&(this.isServerWarning=!0,this.confirmDialog("Client is too many request","Please wait a moment.","warning","orange"))}}return i.\u0275fac=function(n){return new(n||i)(t.Y36(s.f),t.Y36(_.b),t.Y36(b.v),t.Y36(S._),t.Y36(J.V),t.Y36(Q.e),t.Y36(t.R0b),t.Y36(Y.eN),t.Y36(M.gz),t.Y36(W.W),t.Y36(v.f),t.Y36(F.s))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-wcs-info"]],viewQuery:function(n,e){if(1&n&&(t.Gf(et,5),t.Gf(ot,5),t.Gf(it,5)),2&n){let o;t.iGM(o=t.CRH())&&(e.logoInput=o.first),t.iGM(o=t.CRH())&&(e.cloudAIActivatingOptionsSelect=o.first),t.iGM(o=t.CRH())&&(e.actionMenus=o.first)}},hostBindings:function(n,e){1&n&&t.NdJ("mousedown",function(a){return e.onGlobalClick(a)},!1,t.evT)},features:[t._Bn([v.f])],decls:43,vars:18,consts:[[1,"wcs-widget-area"],[1,"col"],[1,"widget",2,"flex","1.5","width","100%"],[1,"header"],[1,"title"],["class","btn-area",4,"ngIf"],["class","btn-area","style","gap: 8px;",4,"ngIf"],[1,"body",2,"display","flex","flex-direction","column"],[4,"ngIf"],[1,"widget",2,"overflow","hidden","width","98%"],["class","body","style","display: flex; flex-direction: column;",4,"ngIf"],["class","body","style","display: flex; flex-direction: column;padding: 0px 32px 16px 32px",4,"ngIf"],[1,"widget",2,"width","98%"],[1,"contents",2,"justify-content","space-between"],["class","badge standard",4,"ngIf"],["class","badge upgrade",4,"ngIf"],["style","font-size: 14px; color: #CD3D64",4,"ngIf"],[1,"btn-area"],["class","button button-primary","style","width: 200px;",3,"click",4,"ngIf"],["class","button button-primary",3,"click",4,"ngIf"],["class","contents","style","margin-top: 16px",4,"ngIf"],[1,"contents"],[1,"redirect",3,"click"],[3,"modal","active","onClose"],[3,"modal"],[3,"modal","onClose",4,"ngIf"],[1,"button","button-white",3,"click"],[1,"btn-inner"],[1,"btn-area",2,"gap","8px"],[2,"display","flex","overflow","auto","height","410px"],[1,"logo-container"],[1,"logo"],["style","max-width:100%;max-height:100%;",3,"src",4,"ngIf"],["style","text-align: center;color: #2383e2;font-weight: bold;",4,"ngIf"],[2,"margin-top","8px"],[2,"display","none"],["autocomplete","off","type","file","accept","image/png, image/jpg",3,"change"],["logoinput",""],[2,"margin-top","8px","font-size","14px","color","#555"],[1,"btn","action-btn","button-primary",3,"click"],[2,"flex","1.5"],[1,"item"],[1,"title",2,"margin-top","0px"],[1,"info"],[2,"position","relative","margin-top","16px","width","100%","min-height","200px","height","calc(100% - 300px)"],[3,"lat","lng","width","height","isDynamicView","changePosition",4,"ngIf"],["class","no-map-background",4,"ngIf"],[2,"max-width","100%","max-height","100%",3,"src"],[2,"text-align","center","color","#2383e2","font-weight","bold"],[1,"material-icons","icon",2,"font-size","128px"],[2,"font-size","32px"],[3,"lat","lng","width","height","isDynamicView","changePosition"],[1,"no-map-background"],[2,"padding","0 30px","text-align","center"],[1,"material-icons",2,"color","#55647b"],[2,"font-size","14px","color","#55647b"],["autocomplete","off","type","text","placeholder","Common name displayed to the customer facing apps",1,"hidden-input",2,"width","100%",3,"ngModel","ngModelChange"],["autocomplete","off","type","text","placeholder","Dealer ID value used to identify sub dealers. (Optional)",1,"hidden-input",2,"width","100%",3,"ngModel","ngModelChange"],["autocomplete","off","type","text",1,"hidden-input",2,"width","100%",3,"ngModel","ngModelChange"],["autocomplete","off","type","text",1,"hidden-input",2,"width","100%","margin-bottom","4px",3,"ngModel","ngModelChange","focus","input"],["autocomplete","off","type","text","placeholder","Suite # (optional)",1,"hidden-input",2,"width","100%",3,"ngModel","ngModelChange"],[2,"margin-top","16px","position","relative","width","100%","flex","1","min-height","200px"],[3,"lat","lng","isDynamicView","changePosition",4,"ngIf"],[3,"lat","lng","isDynamicView","changePosition"],[2,"color","#555","font-weight","500","text-align","center"],["class","contents","style","justify-content: space-between",4,"ngIf"],[1,"text"],[1,"button",2,"width","200px",3,"click"],[1,"body",2,"display","flex","flex-direction","column","padding","0px 32px 16px 32px"],["type","text"],[1,"badge","standard"],[1,"badge","upgrade"],[2,"font-size","14px","color","#CD3D64"],[1,"button","button-primary",2,"width","200px",3,"click"],[1,"button","button-primary",3,"click"],[1,"contents",2,"margin-top","16px"],[2,"color","#55647B"],[1,"table-container",2,"overflow","initial"],[1,"table-header","no-top-border"],["width","30%"],["width","25%"],["width","34%"],["width","6%"],[1,"table-body",2,"overflow","hidden"],[2,"table-layout","fixed"],[1,"has-child",2,"cursor","initial"],[2,"overflow","initial","text-align","right"],["id","feature-cloud-ai",1,"more-content","v-center",3,"mouseenter"],["actionMenus",""],[1,"material-icons-outlined","more-icon",3,"click"],["id","feature-more-cloud-ai",1,"more","feature-more"],[1,"btn-area",2,"justify-content","flex-end","flex-direction","column"],[1,"tag",3,"ngClass"],[3,"ngStyle"],[1,"select-comp"],["cloudAIActivatingOptionsSelect",""],[1,"selectbox","label",2,"padding","8px",3,"click"],["xmlns","http://www.w3.org/2000/svg","height","16px","width","14px","viewBox","0 0 18 20"],["d","M0 0h24v24H0V0z","fill","none"],["d","M12 4L16.58 8.59L15.17 10L12 6.83L8.83 10L7.41 8.59L12 4Z"],["d","M12 17.17L15.17 14 L16.59 15.41L12 20L7.42 15.41L8.83 14L12 17.17Z"],["class","select-list","style","width: inherit",4,"ngIf"],[1,"select-list",2,"width","inherit"],["class","select-result has-child trigger-item",3,"selected","click",4,"ngFor","ngForOf"],[1,"select-result","has-child","trigger-item",3,"click"],[1,"selectitem"],[1,"text-button","mb-7",3,"click"],[1,"btn-inner",2,"color","#1E88E5"],[1,"loader","absolute"],["viewBox","25 25 50 50",1,"circular"],["cx","50","cy","50","r","20","fill","none","stroke-width","4","stroke-miterlimit","10",1,"path"],[3,"modal","onClose"]],template:function(n,e){1&n&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"div",2),t.TgZ(3,"div",3),t.TgZ(4,"div",4),t._uU(5,"Information"),t.qZA(),t.YNc(6,at,4,0,"div",5),t.YNc(7,rt,7,2,"div",6),t.qZA(),t.TgZ(8,"div",7),t.YNc(9,gt,51,11,"ng-container",8),t.YNc(10,ht,44,19,"ng-container",8),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"div",1),t.TgZ(12,"div",9),t.TgZ(13,"div",3),t.TgZ(14,"div",4),t._uU(15,"Dealer Status"),t.qZA(),t.qZA(),t.YNc(16,xt,27,16,"div",10),t.YNc(17,Ct,9,2,"div",11),t.qZA(),t.TgZ(18,"div",12),t.TgZ(19,"div",3),t.TgZ(20,"div",4),t._uU(21,"Dealer Plan & Services"),t.qZA(),t.qZA(),t.TgZ(22,"div",7),t.TgZ(23,"div",4),t._uU(24,"Sub Dealer Plan"),t.qZA(),t.TgZ(25,"div",13),t.TgZ(26,"div"),t.YNc(27,bt,2,0,"span",14),t.YNc(28,Pt,2,1,"span",15),t.YNc(29,Mt,2,2,"div",16),t.qZA(),t.TgZ(30,"div"),t.TgZ(31,"div",17),t.YNc(32,Ot,3,1,"div",18),t.YNc(33,vt,3,0,"div",19),t.qZA(),t.qZA(),t.qZA(),t.YNc(34,yt,6,0,"div",20),t.TgZ(35,"div",21),t.TgZ(36,"div",22),t.NdJ("click",function(){return e.goToSubDealerDescription()}),t._uU(37,"View the Sub Dealer Plans \u2192"),t.qZA(),t.qZA(),t.YNc(38,St,41,8,"ng-container",8),t.qZA(),t.qZA(),t.qZA(),t.YNc(39,kt,4,0,"div",8),t.qZA(),t.TgZ(40,"app-wcsms-create",23),t.NdJ("onClose",function(a){return e.closeCreate(a)}),t.qZA(),t._UZ(41,"dealer-warning",24),t.YNc(42,qt,1,1,"app-wcs-plan-upgrade",25)),2&n&&(t.xp6(6),t.Q6J("ngIf",!e.isEditMode),t.xp6(1),t.Q6J("ngIf",e.isEditMode),t.xp6(2),t.Q6J("ngIf",!e.isEditMode),t.xp6(1),t.Q6J("ngIf",e.isEditMode),t.xp6(6),t.Q6J("ngIf",2==e.selDealer.invitation_status),t.xp6(1),t.Q6J("ngIf",2!=e.selDealer.invitation_status),t.xp6(10),t.Q6J("ngIf",1===e.partnerDealerPlanType.type||!e.partnerDealerPlanType.type),t.xp6(1),t.Q6J("ngIf",e.partnerDealerPlanType.type>1),t.xp6(1),t.Q6J("ngIf",e.isShowWarning),t.xp6(3),t.Q6J("ngIf",4===e.myDealerPlanType.type),t.xp6(1),t.Q6J("ngIf",4!=e.myDealerPlanType.type),t.xp6(1),t.Q6J("ngIf",4!=e.myDealerPlanType.type),t.xp6(4),t.Q6J("ngIf",4===e.myDealerPlanType.type&&e.partnerDealerPlanType.type>1),t.xp6(1),t.Q6J("ngIf",!e.isReadyInfo),t.xp6(1),t.Q6J("modal",e.m_create)("active",e.m_create.is_active),t.xp6(1),t.Q6J("modal",e.m_warning),t.xp6(1),t.Q6J("ngIf",e.m_plan_select.is_active))},directives:[l.O5,R.J,L.a,v.f,u.Fj,u.JJ,u.On,l.mk,l.PC,l.sg,nt],styles:['.widget[_ngcontent-%COMP%]{max-height:none!important}.badge[_ngcontent-%COMP%]{border-radius:10px;padding:4px 8px;text-align:center;font-size:14px}.badge.standard[_ngcontent-%COMP%]{background:#E3E8EE;color:#55647b}.badge.upgrade[_ngcontent-%COMP%]{background:#55647B;color:#fff}.btn[_ngcontent-%COMP%]{color:#fff;padding:8px;box-shadow:0 0 2px #888;transition:.2s;cursor:pointer}.btn.action-btn[_ngcontent-%COMP%]{padding:8px 24px;text-align:center;width:160px;color:#fff;border-radius:4px}.btn.button-warning[_ngcontent-%COMP%]{color:#fff!important;background-color:#dc143c!important}.btn.button-warning[_ngcontent-%COMP%]:hover{background-color:#fc3f65!important}.btn.button-primary[_ngcontent-%COMP%]{background:#2383e2;color:#fff;border-radius:2px}.btn.button-primary[_ngcontent-%COMP%]:hover{background:#2ea0ff;color:#fff}.logo-container[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center}.logo[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:196px;height:196px;background-color:#fafafa}.item[_ngcontent-%COMP%]{margin-bottom:16px}.item[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{width:100%;font-weight:bold;font-size:16px;font-family:sans-serif;margin-bottom:4px;color:#0009}.item[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{font-size:14px}.item[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{box-sizing:border-box;padding:5px 10px!important;border:1px solid rgba(0,0,0,.2)!important;border-radius:5px;font-size:14px;transition:.2s;text-indent:0px;font-weight:400}.no-map-background[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#fafafa;display:flex;justify-content:center;align-items:center}.text[_ngcontent-%COMP%]{margin-top:8px;word-break:break-all;font-size:.8rem;font-weight:600}.redirect[_ngcontent-%COMP%]{color:#1e88e5;cursor:pointer;margin-bottom:24px}.activated[_ngcontent-%COMP%]{color:green}.inactivated[_ngcontent-%COMP%]{color:#dc143c}.button-disabled[_ngcontent-%COMP%]{color:#aaa;cursor:default;pointer-events:none;font-size:14px}.transition[_ngcontent-%COMP%]{transition:.3s}.transition.rotate-90deg[_ngcontent-%COMP%]{transform:rotate(90deg)}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer;overflow:hidden}.reseller-notice-outlined-area[_ngcontent-%COMP%]{display:flex;grid-gap:8px;gap:8px}.reseller-notice-outlined-area[_ngcontent-%COMP%] .reseller-notice-outlined-item[_ngcontent-%COMP%]{flex:1}.reseller-notice-outlined-area[_ngcontent-%COMP%] .reseller-notice-outlined-item[_ngcontent-%COMP%] .reseller-notice-title[_ngcontent-%COMP%]{display:flex;align-items:center;margin:14px 0}.reseller-notice-outlined-area[_ngcontent-%COMP%] .reseller-notice-outlined-item[_ngcontent-%COMP%] .reseller-notice-title[_ngcontent-%COMP%] .badge[_ngcontent-%COMP%]{color:#fff;padding:4px 8px;background:#F6B639;border-radius:5px;margin-right:8px}.reseller-notice-outlined-area[_ngcontent-%COMP%] .reseller-notice-outlined-item[_ngcontent-%COMP%] .description-area[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;grid-gap:16px;gap:16px}.reseller-notice-outlined-area[_ngcontent-%COMP%] .reseller-notice-outlined-item[_ngcontent-%COMP%] .description-area[_ngcontent-%COMP%] .description-item[_ngcontent-%COMP%]{display:flex;align-items:center;min-width:200px}.tag[_ngcontent-%COMP%]{display:flex;align-items:center;line-height:16px;padding:2px 10px;border-radius:10px;width:-moz-fit-content;width:fit-content;color:#00000061;background-color:#0000001a;font-size:13px}.tag.enabled[_ngcontent-%COMP%]{color:#1e88e5;background-color:#d6ecff}.tag.disabled[_ngcontent-%COMP%]{color:#00000061;background-color:#0000001a}.more-content[_ngcontent-%COMP%]{position:relative;justify-content:flex-end}.more-content[_ngcontent-%COMP%] .more-icon[_ngcontent-%COMP%]{cursor:pointer;padding:0 4px;border-radius:4px;margin-right:10px;font-size:18px;color:#0009;-webkit-user-select:none;user-select:none}.more-content[_ngcontent-%COMP%] .more-icon[_ngcontent-%COMP%]:hover, .more-content[_ngcontent-%COMP%] .more-icon.show[_ngcontent-%COMP%]{box-shadow:0 0 4px gray}.more-content[_ngcontent-%COMP%] .more[_ngcontent-%COMP%]{visibility:hidden;opacity:0;height:-moz-fit-content;height:fit-content;background-color:#fff;color:#000000de;padding:0;box-sizing:border-box;border-radius:6px;font-size:14px;box-shadow:0 0 30px #0000004d;cursor:pointer;position:absolute;z-index:100;bottom:32px;right:-8px;margin-left:-38px;transition:opacity .3s}.more-content[_ngcontent-%COMP%] .more.feature-more[_ngcontent-%COMP%]{position:fixed;bottom:initial;right:initial}.more-content[_ngcontent-%COMP%] .more.show[_ngcontent-%COMP%]{visibility:visible;opacity:1}.more-content[_ngcontent-%COMP%] .more.visible[_ngcontent-%COMP%]{visibility:visible;opacity:1}.more-content[_ngcontent-%COMP%] .more[_ngcontent-%COMP%]:after{content:"";position:absolute;bottom:-24px;right:20px;margin-left:-19px;border-width:12px;border-style:solid;border-color:#fff transparent transparent transparent}.more-content[_ngcontent-%COMP%] .more[_ngcontent-%COMP%] .more-title[_ngcontent-%COMP%]{color:#000000de;margin-bottom:5px;font-weight:500}.more-content[_ngcontent-%COMP%] .more[_ngcontent-%COMP%] .more-content[_ngcontent-%COMP%]{color:#0009;margin-bottom:14px;line-height:20px}.more-content[_ngcontent-%COMP%] .more[_ngcontent-%COMP%] .more-content[_ngcontent-%COMP%]:last-child{margin-bottom:0}.text-button[_ngcontent-%COMP%]{text-align:left;margin:0;padding:8px 15px 5px;color:#000000de}.text-button[_ngcontent-%COMP%]:last-child{padding:8px 15px}.text-button[_ngcontent-%COMP%]:hover{color:#000000de;background-color:#0000000d}.text-button.text-button-primary[_ngcontent-%COMP%]{color:#1e88e5}.text-button.text-button-primary[_ngcontent-%COMP%]:hover{background-color:#1e88e50d}.text-button.text-button-danger[_ngcontent-%COMP%]:hover{background-color:#cd3d640d}','.scroll-screen[_ngcontent-%COMP%]{flex:1;flex-direction:column;overflow-y:overlay;height:100%;position:relative;padding:7px;-webkit-user-select:none;user-select:none;display:flex;align-items:center}.row[_ngcontent-%COMP%]{flex-direction:row;display:flex;height:100%;overflow-y:overlay;transition:.5s}.col[_ngcontent-%COMP%]{flex-direction:column;display:flex;flex:1;height:100%}.customer-widget-area[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{min-width:300px}.customer-widget-area[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]:only-child{min-width:600px}.customer-widget-area.deactivated[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{height:calc(100% - 43px)}.col[_ngcontent-%COMP%] .widget[_ngcontent-%COMP%]{min-width:300px}.sub-nav[_ngcontent-%COMP%]{position:relative;left:0px;transition:all ease-in-out .3s;min-width:250px;max-width:250px;flex:1;background:#fff;border-right:.5px solid #d7d7d7;display:flex;flex-direction:column;overflow-y:overlay;z-index:3}.sub-nav[_ngcontent-%COMP%]:focus{outline:none}.sub-nav[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{height:initial;flex:initial;align-items:center}.sub-nav[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{overflow-y:overlay}.sub-nav[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]{padding:6px 12px 6px 0;box-sizing:border-box;border:0;background-color:transparent;background-size:24px;background-position:4px 8px;background-repeat:no-repeat;flex:1}.sub-nav[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{margin-right:8px;color:#777;transition:.2s}.sub-nav[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]:hover{cursor:pointer;color:#000}.sub-nav[_ngcontent-%COMP%] .badge[_ngcontent-%COMP%]{background-color:red;color:#fff;width:8px;height:14px;margin-left:8px;padding:2px 4px 2px 5px;border-radius:4px;font-size:12px}.sub-nav[_ngcontent-%COMP%] .plan-badge[_ngcontent-%COMP%]{background-color:red;width:6px;height:6px;margin-left:4px;border-radius:10px}.sub-nav[_ngcontent-%COMP%] .list-category[_ngcontent-%COMP%]{padding:24px 0 7px 20px;color:#2f96fb;font-size:14px;text-transform:uppercase}.sub-nav[_ngcontent-%COMP%] .list-category[_ngcontent-%COMP%]:first-child{padding:30px 0 7px 20px;color:#2f96fb;font-size:14px}.sub-nav[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%]{display:flex;align-items:center;color:#0009;cursor:pointer}.sub-nav[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.05)}.sub-nav[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%]:hover.settings{background:transparent}.sub-nav[_ngcontent-%COMP%] .list-item-selected[_ngcontent-%COMP%]{background:#dcf0fd!important;color:#000000de}.sub-nav[_ngcontent-%COMP%] .list-item-selected[_ngcontent-%COMP%]:after{background-color:#2f96fb}.sub-nav[_ngcontent-%COMP%] .list-item-selected.settings[_ngcontent-%COMP%]{background:transparent!important;color:#000000de;font-weight:500;color:#2f96fb}.sub-nav[_ngcontent-%COMP%] .menu-label[_ngcontent-%COMP%]{display:flex;font-size:14px;padding:7px 0 7px 15px}.sub-nav[_ngcontent-%COMP%] .menu-label.settings[_ngcontent-%COMP%]{padding-left:16px;width:100%;margin:0 4px;border-radius:4px}.sub-nav[_ngcontent-%COMP%] .menu-label.settings[_ngcontent-%COMP%]:hover{padding:8px 16px;background:#e8eaed}.sub-nav[_ngcontent-%COMP%] .menu-label.settings.selected-label[_ngcontent-%COMP%]{width:100%;margin:0 4px;padding:8px 12px;border-radius:4px;font-weight:500;color:#2f96fb}.sub-nav[_ngcontent-%COMP%] .menu-label.settings.selected-label[_ngcontent-%COMP%]:hover{padding:8px 12px;background:#dcf0fd}.sub-nav[_ngcontent-%COMP%] .select-mark[_ngcontent-%COMP%]{background-color:#2f96fb}.sub-nav[_ngcontent-%COMP%] .select-mark.settings[_ngcontent-%COMP%]{background-color:#2383e2;width:4px;min-height:30px;height:30px;border-radius:4px}.component-body[_ngcontent-%COMP%]{position:relative;flex:5;height:100%;flex-direction:column;display:flex;transition:all ease-in-out .3s}.component-body-no-data[_ngcontent-%COMP%]{flex:5;height:100%;flex-direction:column;align-items:center;justify-content:center;display:flex}.tab[_ngcontent-%COMP%]{height:60px;color:#888;background:#f7f7fc;box-shadow:0 4px 2px -2px #888;display:flex;align-items:center;z-index:1}.tab[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{display:flex;align-items:center;height:100%;position:relative}.tab[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]:hover{color:#2383e2;cursor:pointer}.tab[_ngcontent-%COMP%] .button-selected[_ngcontent-%COMP%]{color:#2383e2}.tab[_ngcontent-%COMP%] .icn-button[_ngcontent-%COMP%]{padding:0 16px}.tab[_ngcontent-%COMP%] .icn-button-active[_ngcontent-%COMP%]{color:#000}.tab[_ngcontent-%COMP%] .tab-title[_ngcontent-%COMP%]{padding:0 32px;text-transform:capitalize;font-size:14px}.tab[_ngcontent-%COMP%] .tab-selected-bar[_ngcontent-%COMP%]{position:absolute;bottom:-2px;width:100%;height:4px;background:#2383e2}.plan-upgrade-badge[_ngcontent-%COMP%]{background:linear-gradient(90deg,#2A517E 17.88%,#1E88E5 69.03%);border-radius:10px;padding:2px 6px;margin-left:-8px;color:#fff;font-size:12px;font-weight:400;cursor:pointer}.customer-tab[_ngcontent-%COMP%]{color:#7a7a7a;background:#fff;border-bottom:1px solid rgba(0,0,0,.1);display:flex;align-items:center;z-index:1;font-weight:500;font-size:14px;flex-flow:wrap}.customer-tab[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{display:flex;align-items:center;height:50px;position:relative;cursor:pointer}.customer-tab[_ngcontent-%COMP%] .button-selected[_ngcontent-%COMP%]{color:#1e88e5;font-weight:500}.customer-tab[_ngcontent-%COMP%] .icn-button[_ngcontent-%COMP%]{padding:0 16px}.customer-tab[_ngcontent-%COMP%] .icn-button-active[_ngcontent-%COMP%]{color:#000}.customer-tab[_ngcontent-%COMP%] .tab-title[_ngcontent-%COMP%]{padding:8px 20px;text-transform:capitalize;font-size:14px;font-weight:400}.customer-tab[_ngcontent-%COMP%] .tab-title.selected[_ngcontent-%COMP%]{font-weight:500}.customer-tab[_ngcontent-%COMP%] .tab-title[_ngcontent-%COMP%]:hover{background:#e8eaed;border-radius:7px}.customer-tab[_ngcontent-%COMP%] .tab-selected-bar[_ngcontent-%COMP%]{position:absolute;bottom:-2px;width:100%;height:3px;background:#2383e2}.setting-tab[_ngcontent-%COMP%]{height:41px;box-sizing:border-box;color:#7a7a7a;background:#fff;display:flex;flex-direction:row;align-items:center;z-index:1;font-size:14px;font-weight:500;justify-content:space-between;border-bottom:1px solid rgba(0,0,0,.1);background-color:#fbfbfa}.setting-tab[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{display:flex;align-items:center;height:100%;position:relative;cursor:pointer}.setting-tab[_ngcontent-%COMP%] .button-selected[_ngcontent-%COMP%]{color:#000}.setting-tab[_ngcontent-%COMP%] .button-selected-red[_ngcontent-%COMP%]{color:#f67474}.setting-tab[_ngcontent-%COMP%] .icn-button[_ngcontent-%COMP%]{padding:0 16px}.setting-tab[_ngcontent-%COMP%] .icn-button-active[_ngcontent-%COMP%]{color:#000}.setting-tab[_ngcontent-%COMP%] .tab-title[_ngcontent-%COMP%]{padding:5px 20px;text-transform:capitalize;font-size:13px;font-weight:400;margin:0 1px}.setting-tab[_ngcontent-%COMP%] .tab-title[_ngcontent-%COMP%]:hover{background:#e8eaed;border-radius:5px}.setting-tab[_ngcontent-%COMP%] .tab-selected-bar[_ngcontent-%COMP%]{position:absolute;width:100%;bottom:0;height:4px;background:#2383e2;border-radius:4px}.setting-tab[_ngcontent-%COMP%] .tab-selected-bar-red[_ngcontent-%COMP%]{position:absolute;width:100%;bottom:0;height:5px;background:#f67474}.btn-icon[_ngcontent-%COMP%]{color:#7c7c7c;background-color:#f1f1f1;cursor:pointer}.btn-icon[_ngcontent-%COMP%]:hover{color:#7c7c7c;background-color:#efeff6}.space[_ngcontent-%COMP%]{flex:1}.sub-component[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;width:100%;height:100%}.widget-area[_ngcontent-%COMP%]{flex-direction:row;display:flex;height:100%;flex:1;overflow-y:overlay;padding:20px 30px;flex-wrap:wrap;justify-content:center;box-sizing:border-box}.customer-widget-area[_ngcontent-%COMP%]{position:absolute;height:auto;bottom:0;top:0;left:0;right:0;flex-direction:row;display:flex;flex:1;overflow:initial;padding:14px;box-sizing:border-box;flex-wrap:wrap;justify-content:center}.customer-widget-area.deactivated[_ngcontent-%COMP%]{padding:0 7px 7px}.wcs-widget-area[_ngcontent-%COMP%]{position:absolute;height:auto;bottom:0;top:0;left:0;right:0;flex-direction:row;display:flex;flex:1;overflow-y:overlay;padding:12px;flex-wrap:wrap;align-items:center;grid-gap:12px;gap:12px}.wcs-widget-area[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{align-items:center}.setting-widget[_ngcontent-%COMP%]{height:calc(100% - 44px)}.setting-router[_ngcontent-%COMP%]{width:100%;flex:1;position:relative;overflow:auto;overflow-y:overlay}.container[_ngcontent-%COMP%]{width:calc(100% - 14px);height:100%;display:flex;flex-direction:column;align-items:center;padding:7px}.widget[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;max-width:1400px;min-width:300px;max-height:calc(100% - 15px);background:white;transition:.5s;border-radius:3px;border:1px solid rgba(0,0,0,.1);margin:0 5px 10px}.widget[_ngcontent-%COMP%]:last-child{margin:0 5px}.widget[_ngcontent-%COMP%]:only-child{min-width:600px}.widget[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;border-bottom:solid 1px rgba(0,0,0,.1)}.widget[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:calc(100% - 108px);padding:20px}.widget[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding-bottom:14px}.widget-item[_ngcontent-%COMP%]{flex:none;font-size:14px;color:#000000de}.widget-item[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%]{padding:14px 30px}.widget[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%]{font-size:14px;color:#0009;margin-bottom:7px}.widget[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{width:200px;font-size:14px;color:#0009}.widget[_ngcontent-%COMP%] .item-row[_ngcontent-%COMP%]{display:flex;padding:7px 0}.widget[_ngcontent-%COMP%] .bottom-line[_ngcontent-%COMP%]{border-bottom:solid 1px rgba(0,0,0,.1)}.scroll-widget[_ngcontent-%COMP%]{max-height:initial}.item[_ngcontent-%COMP%] .w-1[_ngcontent-%COMP%]{width:10%}.item[_ngcontent-%COMP%] .w-2[_ngcontent-%COMP%]{width:20%}.item[_ngcontent-%COMP%] .w-3[_ngcontent-%COMP%]{width:30%}.item[_ngcontent-%COMP%] .w-4[_ngcontent-%COMP%]{width:40%}.item[_ngcontent-%COMP%] .w-5[_ngcontent-%COMP%]{width:50%}.item[_ngcontent-%COMP%] .fs-12[_ngcontent-%COMP%]{font-size:12px}.item[_ngcontent-%COMP%] .right-align[_ngcontent-%COMP%]{text-align:right}.item[_ngcontent-%COMP%] .contents[_ngcontent-%COMP%]{display:flex;padding:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle;font-size:14px}.item[_ngcontent-%COMP%] .contents[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{width:80%;box-sizing:border-box;padding:8px;font-size:14px;background-color:#f0f0f0;border:none;border-bottom:2px solid #f0f0f0;-webkit-appearance:none;-moz-appearance:none;transition:.2s}.item[_ngcontent-%COMP%] .contents[_ngcontent-%COMP%] select[_ngcontent-%COMP%]:focus{outline:none;border-bottom:2px solid #2383e2}.item[_ngcontent-%COMP%] .contents[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{position:absolute;left:12px;top:12px;color:#00000080}.item[_ngcontent-%COMP%] .contents[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%]{width:100%;padding-left:32px}.item[_ngcontent-%COMP%] .contents[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{cursor:pointer}.cell[_ngcontent-%COMP%]{padding-bottom:14px}.widget[_ngcontent-%COMP%] .widget-bottom[_ngcontent-%COMP%]{display:flex;padding-top:6px}.table-area[_ngcontent-%COMP%]{height:100%;overflow:overlay}.table-container[_ngcontent-%COMP%]{display:flex;height:100%;flex-direction:column;overflow-y:hidden}table.table-header[_ngcontent-%COMP%]:after{border-collapse:separate}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%]{min-height:31px;background-color:#f7fafc;border-bottom:solid 1px rgba(0,0,0,.1);border-top:solid 1px rgba(0,0,0,.1);box-sizing:border-box}.table-container[_ngcontent-%COMP%] .table-header.no-top-border[_ngcontent-%COMP%]{border-top:0}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding:10px 7px 10px 20px}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{padding:10px 20px 10px 7px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding:7px 7px 7px 20px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:7px 20px 7px 7px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding:10px 7px 10px 20px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{padding:10px 20px 10px 7px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding:7px 7px 7px 20px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:7px 20px 7px 7px}table.table-header-v2[_ngcontent-%COMP%]:after{border-collapse:separate}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%]{width:100%;max-height:calc(100% - 30px);flex:1;overflow-y:overlay}.table-container[_ngcontent-%COMP%] .no-record[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:7px 0}.header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1;font-size:16px;padding:12px 20px;color:#000000de}.header[_ngcontent-%COMP%] .btn-area[_ngcontent-%COMP%]{padding:7px 16px}.header[_ngcontent-%COMP%] .button-selected[_ngcontent-%COMP%]{color:#000}.header[_ngcontent-%COMP%] .button-disable[_ngcontent-%COMP%]:hover{color:#aaa;cursor:default;pointer-events:none}.header[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]{color:#1e90ff}.header[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]:hover{color:#30b0ff}.widget[_ngcontent-%COMP%] .body[_ngcontent-%COMP%]{flex:1;padding:14px 16px;overflow-y:overlay}.body-center[_ngcontent-%COMP%]{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center}.body-center[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{text-align:center}.body-center[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:30px;color:#2383e2}.body-center[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{margin-bottom:14px;font-size:14px;color:#0009;text-align:center;line-height:1.5}.body-center[_ngcontent-%COMP%] .description[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-bottom:8px;font-size:18px;color:#000000de}.body[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:14px;color:#777}.body[_ngcontent-%COMP%] > .contents[_ngcontent-%COMP%]{font-size:15px;color:#333;margin-top:4px;padding:4px 0;display:flex;min-height:24px;align-items:center}.body[_ngcontent-%COMP%] .editable[_ngcontent-%COMP%]{border-bottom:1px solid #fff;transition:.5s}.body[_ngcontent-%COMP%] .editable[_ngcontent-%COMP%]:hover{cursor:text;border-bottom:1px solid #ccc}.body[_ngcontent-%COMP%] .selectbox[_ngcontent-%COMP%]{color:#777;padding:16px;box-shadow:0 0 2px #888;transition:.2s;cursor:pointer;display:flex;flex-direction:row}.body[_ngcontent-%COMP%] .selectbox[_ngcontent-%COMP%]:hover{color:#333;box-shadow:0 0 6px #888}.widget[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]{margin:12px;padding:12px 12px 12px 36px;box-sizing:border-box;border:0;border-bottom:2px solid #ddd;background-color:transparent;background-image:url(/assets/icons/ic_search_72pt.png);background-size:24px;background-position:4px 8px;background-repeat:no-repeat;flex:1;transition:.3s}.widget[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]:focus{outline:none;border-bottom:2px solid #777}.widget[_ngcontent-%COMP%] .filter-area[_ngcontent-%COMP%]{flex:1;display:flex;align-items:center;flex-direction:row-reverse}.tab[_ngcontent-%COMP%] .combo-box[_ngcontent-%COMP%]{display:flex}.filter-area[_ngcontent-%COMP%] .combo-box[_ngcontent-%COMP%]{color:#777;font-size:14px;padding:0 8px 0 0;text-align:right;position:relative;cursor:pointer}.header[_ngcontent-%COMP%] .combo-box[_ngcontent-%COMP%]{color:#777;font-size:14px;text-align:right;position:relative;cursor:pointer}.combo-box[_ngcontent-%COMP%] > .button[_ngcontent-%COMP%]{transition:.2s}.combo-box[_ngcontent-%COMP%] > .button-active[_ngcontent-%COMP%]{color:#000}.combo-box[_ngcontent-%COMP%] .arrow[_ngcontent-%COMP%]{vertical-align:middle}.combo-box-contents[_ngcontent-%COMP%]{position:absolute;right:16px;z-index:101;text-align:left;box-sizing:border-box;background-color:#fff;transition:.2s;box-shadow:0 2px 4px #00000080;border:solid 1px #d9d9d9;border-radius:5px}.combo-box-contents[_ngcontent-%COMP%] .items[_ngcontent-%COMP%]{cursor:pointer;padding:8px;color:#333;font-size:12px}.combo-box-contents[_ngcontent-%COMP%] .items[_ngcontent-%COMP%]:hover{background:#eee}.list[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;border-bottom:1px solid rgba(0,0,0,.1);min-height:28px;transition:.1s;padding:10px 20px}.list.locked-list[_ngcontent-%COMP%]{background-color:#f7fafc}.list-group[_ngcontent-%COMP%]:hover{background-color:#fafcff}.list-bottom-clear[_ngcontent-%COMP%]{border-bottom:none}.list-bottom-line[_ngcontent-%COMP%]{border-bottom:1px solid #aaa}.widget[_ngcontent-%COMP%] .list[_ngcontent-%COMP%]:hover{background:#f5f5f5;cursor:pointer}.widget[_ngcontent-%COMP%] .list.locked-list[_ngcontent-%COMP%]:hover{background:#F7FAFC;cursor:initial}.list[_ngcontent-%COMP%] > .contents[_ngcontent-%COMP%]{padding:12px 0;font-size:14px;color:#333;flex:1}.list[_ngcontent-%COMP%] > .stat-contents[_ngcontent-%COMP%]{padding:12px 0;float:right;font-size:13px;color:#aaa}.list[_ngcontent-%COMP%] > .button-contents[_ngcontent-%COMP%]{padding:12px 0;float:right;font-size:13px}.list[_ngcontent-%COMP%] > .button-contents[_ngcontent-%COMP%]:hover{opacity:.8}.list[_ngcontent-%COMP%] > .icon[_ngcontent-%COMP%]{display:flex;align-items:center;margin:0 10px 0 6px;height:40px}.list[_ngcontent-%COMP%] .status-bar[_ngcontent-%COMP%]{width:8px;background:#aaa}.contents[_ngcontent-%COMP%] > .contents-small[_ngcontent-%COMP%]{margin-left:4px;font-size:11px;color:#555}.contents[_ngcontent-%COMP%] .sub-contents[_ngcontent-%COMP%]{font-size:12px;color:#0009;margin-top:6px}.widget[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{height:initial;align-items:center}.widget[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.widget[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px;color:#56657bde;text-transform:uppercase;text-align:left;font-size:13px;font-weight:normal}.widget[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-bottom:1px rgba(0,0,0,.1) solid}.widget[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child{border-bottom:none}.widget[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de;padding:7px}td[_ngcontent-%COMP%] .sub-contents[_ngcontent-%COMP%]{font-size:11px;color:#888;margin-top:4px}td[_ngcontent-%COMP%] .edit-btn[_ngcontent-%COMP%]{cursor:pointer;color:#1e90ff}td[_ngcontent-%COMP%] .delete-btn[_ngcontent-%COMP%]{cursor:pointer;color:#f1556c}table[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{float:right;color:#bbb;transition:.2s;cursor:pointer}table[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]:hover{color:#333}table[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:50%;width:35px;height:35px}.div-table-header[_ngcontent-%COMP%]{display:flex;height:30px;border-style:solid;border-width:1px;border-image-source:linear-gradient(to bottom,#dfdfdf,#bcbcbc);border-image-slice:1;border-collapse:separate;background-image:linear-gradient(to bottom,#f7f7f7,#ececed);font-size:14px;align-items:center}.div-table-header[_ngcontent-%COMP%] .div-table-head[_ngcontent-%COMP%]{padding:7px 16px}.face[_ngcontent-%COMP%]{border-radius:50%;width:28px;height:28px;display:inline-block;margin-right:8px;vertical-align:middle}.folding-list[_ngcontent-%COMP%]{cursor:pointer}.folding-list[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{vertical-align:middle;margin-right:8px}.folding-list[_ngcontent-%COMP%] .contents[_ngcontent-%COMP%]{color:#555;font-size:16px;padding:12px 0;border-bottom:1px solid #aaa;transition:.1s;height:54px}.folding-list[_ngcontent-%COMP%] .contents[_ngcontent-%COMP%]:hover{background:#f5f5f5}.folding-list[_ngcontent-%COMP%] .sub-list-title[_ngcontent-%COMP%]{margin-left:16px;padding:12px 0 4px;color:#777;font-size:12px;font-weight:bold;border-bottom:1px solid #ccc;display:flex}.folding-list[_ngcontent-%COMP%] .sub-list[_ngcontent-%COMP%]{margin-left:16px;padding:8px 0;color:#333;font-size:14px;border-bottom:1px solid #ccc;transition:.1s;display:flex}.folding-list[_ngcontent-%COMP%] .sub-list[_ngcontent-%COMP%]:hover{background:#f5f5f5}.folding-list[_ngcontent-%COMP%] .sub-list-selected[_ngcontent-%COMP%]{background:#f5f5f5}.empty-contents[_ngcontent-%COMP%]{font-size:16px;color:#bbb;font-weight:bold;text-transform:uppercase}.body[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{flex:1;box-sizing:border-box;padding:4px;border:0;border-bottom:1px solid #ccc;background:rgba(0,0,0,0);transition:.2s}.body[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none;border-bottom:1px solid #777}.body[_ngcontent-%COMP%] .hidden-input[_ngcontent-%COMP%]{padding:4px 0;border-bottom:1px solid #fff;background:rgba(0,0,0,0)}.body[_ngcontent-%COMP%] .hidden-input[_ngcontent-%COMP%]:hover{border-bottom:1px solid #777}.dropdown[_ngcontent-%COMP%]{font-size:14px;position:relative;flex:1}.dropdown-contents[_ngcontent-%COMP%]{position:absolute;width:100%;margin-top:8px;left:0px;z-index:100;text-align:left;box-sizing:border-box;background-color:#fff;box-shadow:0 1px 13px 1px #0003;transition:.2s}.dropdown-contents[_ngcontent-%COMP%] > .list-item[_ngcontent-%COMP%]{cursor:pointer;padding:8px;color:#333;font-size:14px;display:flex;align-items:center}.dropdown-contents[_ngcontent-%COMP%] > .list-item[_ngcontent-%COMP%]:hover{background:#eee}.dropdown[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;background:rgba(0,0,0,0)}.face[_ngcontent-%COMP%]{border-radius:50%;width:32px;height:32px;margin-right:8px}.no-face[_ngcontent-%COMP%]{border-radius:50%;width:38x;height:38px;min-width:38px;min-height:38px;background-color:#ccc;display:inline-block;margin-right:8px;vertical-align:middle;color:#fff;text-align:center;text-transform:uppercase}.calendar[_ngcontent-%COMP%]{width:100%}.contents[_ngcontent-%COMP%] > .button[_ngcontent-%COMP%]{color:#777;transition:.2s;cursor:pointer}.contents[_ngcontent-%COMP%] > .button[_ngcontent-%COMP%]:hover{color:#333}.list[_ngcontent-%COMP%] > .button[_ngcontent-%COMP%]{display:flex;width:32px;height:32px;justify-content:center;align-items:center;padding:5px;color:#777;transition:.2s;cursor:pointer;border-radius:21px}.list[_ngcontent-%COMP%] > .button[_ngcontent-%COMP%]:hover{color:#333;background:rgba(0,0,0,.05)}.btn-danger[_ngcontent-%COMP%]{color:#f1556d}.btn-danger[_ngcontent-%COMP%]:hover{color:#f47185}.svg-icon[_ngcontent-%COMP%]{font-size:24px;color:#000;width:1em;height:1em;position:relative}.svg-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{fill:currentColor;width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.png-icon[_ngcontent-%COMP%]{width:36px;height:36px;position:relative}.png-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%;max-height:100%}.child-item[_ngcontent-%COMP%]{padding-left:24px}.title[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{vertical-align:middle;margin-right:4px}.widget[_ngcontent-%COMP%] .has-child[_ngcontent-%COMP%]:hover{background:#f5f5f5;cursor:pointer}.body[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{flex:1;background:white;box-sizing:border-box;margin-top:8px;padding:4px 0;border:0;border-bottom:1px solid #ccc;transition:.2s}.body[_ngcontent-%COMP%] select[_ngcontent-%COMP%]:focus{outline:none;border-bottom:1px solid #777}.loader[_ngcontent-%COMP%]{position:relative;margin:0 auto;width:50px}.loader[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:100%}.absolute[_ngcontent-%COMP%]{position:absolute;top:calc(50% - 25px);left:calc(50% - 25px);z-index:10}.circular[_ngcontent-%COMP%]{animation:rotate 2s linear infinite;height:100%;transform-origin:center center;width:100%;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto}.path[_ngcontent-%COMP%]{stroke-dasharray:1,200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke:#0057e7;stroke-linecap:round}.path.white[_ngcontent-%COMP%]{stroke:#fff}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}.list-item[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{position:relative;background-color:#2383e2;border:none;font-size:14px;color:#fff;padding:8px 16px;margin-left:8px;text-align:center;transition-duration:.4s;text-decoration:none;overflow:hidden;cursor:pointer;outline:none}.list-item[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]:hover{color:#fff}.content-list[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{position:relative;background-color:#2383e2;border:none;font-size:14px;color:#fff;padding:8px 16px;margin-left:8px;text-align:center;transition-duration:.4s;text-decoration:none;overflow:hidden;cursor:pointer;outline:none}.title-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-top:28px}.title-row[_ngcontent-%COMP%] .list-title[_ngcontent-%COMP%]{flex:1;color:#777;padding-top:12px;justify-content:center}.title-row[_ngcontent-%COMP%] .tail[_ngcontent-%COMP%]{flex:1;text-align:right}.disabled[_ngcontent-%COMP%]{cursor:default;filter:contrast(60%) brightness(1.2);opacity:1;pointer-events:none;-webkit-user-select:none;user-select:none}.input-err[_ngcontent-%COMP%]{outline:none;background-color:#fbd0d6;box-shadow:0 0 0 2px #f1556c}.page-item[_ngcontent-%COMP%]{padding-bottom:14px!important}.unselectable[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}.pager[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:14px;color:#0009}.pager[_ngcontent-%COMP%] .page-info[_ngcontent-%COMP%]{display:flex;align-items:center;min-width:80px;padding-left:16px}.pager[_ngcontent-%COMP%] .page-mover[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 0 0 28px}.pager[_ngcontent-%COMP%] .page-mover[_ngcontent-%COMP%] .page-btn[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;color:#0009}.pager[_ngcontent-%COMP%] .page-mover[_ngcontent-%COMP%] .page-btn[_ngcontent-%COMP%]:hover{color:#000000de}.pager[_ngcontent-%COMP%] .page-mover[_ngcontent-%COMP%] .page-btn.mover-disabled[_ngcontent-%COMP%]{cursor:initial;color:#0000004d}.pager[_ngcontent-%COMP%] .page-all[_ngcontent-%COMP%]{display:flex;align-items:center;padding-right:15px}.inner-input[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;padding:6px 8px;background-color:#fff;border:1px solid rgba(0,0,0,.2);border-radius:5px;font-size:14px;transition:.2s;text-indent:0px;font-weight:400}.top-noti[_ngcontent-%COMP%]{width:100%;min-height:36px;display:flex;flex-direction:row;justify-content:center;align-items:center;margin-bottom:7px;background-color:#fcf9e9;font-size:14px;color:#000000de;border-bottom:rgba(0,0,0,.1)}']}),i})()}]);var Et=c(688),N=c(56447),Wt=c(70846),Lt=c(44899),Nt=c(84699);let Jt=(()=>{class i{}return i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[l.ez,u.u5,Nt.p9,N.q]]}),i})();var Qt=c(28774);let Yt=(()=>{class i{}return i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[l.ez,u.u5,zt,Et.m,Wt.rP,Lt.f,N.q,Jt,Qt.U]]}),i})()}}]);