1"use strict";(self.webpackChunktsurvey=self.webpackChunktsurvey||[]).push([[2076],{94190:(M,m,a)=>{a.d(m,{Gt:()=>r,wg:()=>n});var e=function(s){return s.NORMAL_SURVEY="normal",s.CHAIN_SURVEY="chain",s.EWALLET="e-wallet",s.DATA_PACKAGE="data-package",s.PULSA="pulsa",s}(e||{});const n=[{name:"normal",type:e.NORMAL_SURVEY,urlParam:"normal-survey",titleHighlight:"Highlight Display Order",breadCrumbs:[{url:"/dashboard-admin/panelist/survey-panel-management",label:"Survey Panel Management"},{url:"/dashboard-admin/panelist/survey-panel-management/normal-survey",label:"All Published of Normal Survey"},{label:"Highlight Display Order"}]},{name:"chain",type:e.CHAIN_SURVEY,urlParam:"chain-survey",titleHighlight:"Highlight Display Order",breadCrumbs:[{url:"/dashboard-admin/panelist/survey-panel-management",label:"Survey Panel Management"},{url:"/dashboard-admin/panelist/survey-panel-management/chain-survey",label:"All Published of Chain Survey"},{label:"Highlight Display Order"}]},{name:"ewallet",type:e.EWALLET,urlParam:"e-wallet",titleHighlight:"Highlight Reward Order",breadCrumbs:[{url:"/dashboard-admin/panelist-reward-management/e-wallet",label:"E-wallet"},{url:"/dashboard-admin/panelist-reward-management/highlight/e-wallet",label:"Highlight Reward Order"}]},{name:"dataPackage",type:e.DATA_PACKAGE,urlParam:"data-package",titleHighlight:"Highlight Reward Order",breadCrumbs:[{url:"/dashboard-admin/panelist-reward-management/data-package",label:"Data Package"},{url:"/dashboard-admin/panelist-reward-management/highlight/data-package",label:"Highlight Reward Order"}]},{name:"pulsa",type:e.PULSA,urlParam:"pulsa",titleHighlight:"Highlight Reward Order",breadCrumbs:[{url:"/dashboard-admin/panelist-reward-management/pulsa",label:"Pulsa"},{url:"/dashboard-admin/panelist-reward-management/highlight/pulsa",label:"Highlight Reward Order"}]}],r=[{name:"normal-survey",type:e.NORMAL_SURVEY,title:"All Published Normal Survey",titleHighlight:"Highlight Display Order",breadCrumbs:[{url:"/dashboard-admin/panelist/survey-panel-management",label:"Survey Panel Management"},{label:"All Published of Normal Survey"}]},{name:"chain-survey",type:e.CHAIN_SURVEY,title:"All Published Chain Survey",titleHighlight:"Highlight Display Order",breadCrumbs:[{url:"/dashboard-admin/panelist/survey-panel-management",label:"Survey Panel Management"},{label:"All Published of Chain Survey"}]}]},26792:(M,m,a)=>{a.d(m,{m:()=>n});var e=a(37580),t=a(80949);let n=(()=>{class r{constructor(o){this.repositoryAdminVoucherRepository=o}execute(o){return this.repositoryAdminVoucherRepository.AdminVoucherStatusApprove(o)}static{this.\u0275fac=function(d){return new(d||r)(e.KVO(t.u))}}static{this.\u0275prov=e.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})()},91064:(M,m,a)=>{a.d(m,{U:()=>n});var e=a(37580),t=a(80949);let n=(()=>{class r{constructor(o){this.repositoryAdminVoucherRepository=o}execute(o){return this.repositoryAdminVoucherRepository.AdminVoucherStatusReject(o)}static{this.\u0275fac=function(d){return new(d||r)(e.KVO(t.u))}}static{this.\u0275prov=e.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})()},96316:(M,m,a)=>{a.d(m,{$:()=>n});var e=a(37580),t=a(80949);let n=(()=>{class r{constructor(o){this.repositoryAdminVoucherRepository=o}execute(o){return this.repositoryAdminVoucherRepository.DownloadAdminVoucherList(o)}static{this.\u0275fac=function(d){return new(d||r)(e.KVO(t.u))}}static{this.\u0275prov=e.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})()},72104:(M,m,a)=>{a.d(m,{L:()=>n});var e=a(37580),t=a(80949);let n=(()=>{class r{constructor(o){this.repositoryAdminVoucherRepository=o}execute(o){return this.repositoryAdminVoucherRepository.GetAdminVoucherList(o)}static{this.\u0275fac=function(d){return new(d||r)(e.KVO(t.u))}}static{this.\u0275prov=e.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})()},23465:(M,m,a)=>{a.d(m,{H:()=>n});var e=a(37580),t=a(87090);let n=(()=>{class r{constructor(o){this.loginRepository=o}execute(o){return this.loginRepository.LoginWithEmail(o)}static{this.\u0275fac=function(d){return new(d||r)(e.KVO(t._))}}static{this.\u0275prov=e.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})()},98917:(M,m,a)=>{a.d(m,{$:()=>n});var e=a(37580),t=a(87090);let n=(()=>
1{class r{constructor(o){this.loginRepository=o}execute(o){return this.loginRepository.LoginWithMsisdn(o)}static{this.\u0275fac=function(d){return new(d||r)(e.KVO(t._))}}static{this.\u0275prov=e.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})()},91178:(M,m,a)=>{a.d(m,{J:()=>n});var e=a(37580),t=a(18846);let n=(()=>{class r{constructor(o){this.repository=o}execute(o){return this.repository.DownloadVoucherAll(o)}static{this.\u0275fac=function(d){return new(d||r)(e.KVO(t.T))}}static{this.\u0275prov=e.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})()},16280:(M,m,a)=>{a.d(m,{y:()=>n});var e=a(37580),t=a(45803);let n=(()=>{class r{constructor(o){this.pointRepository=o}execute(o){return this.pointRepository.PointPerResponse(o)}static{this.\u0275fac=function(d){return new(d||r)(e.KVO(t.t))}}static{this.\u0275prov=e.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})()},66538:(M,m,a)=>{a.d(m,{z:()=>n});var e=a(37580),t=a(54179);let n=(()=>{class r{constructor(o){this.repository=o}execute(o){return this.repository.ContinueSurvey(o)}static{this.\u0275fac=function(d){return new(d||r)(e.KVO(t.P))}}static{this.\u0275prov=e.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})()},83295:(M,m,a)=>{a.d(m,{T:()=>n});var e=a(37580),t=a(54179);let n=(()=>{class r{constructor(o){this.surveyRepository=o}execute(o){return this.surveyRepository.GetTargetRespondent(o)}static{this.\u0275fac=function(d){return new(d||r)(e.KVO(t.P))}}static{this.\u0275prov=e.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})()},85321:(M,m,a)=>{a.d(m,{i:()=>n});var e=a(37580),t=a(54179);let n=(()=>{class r{constructor(o){this.repository=o}execute(o){return this.repository.SubmitAskForApproval(o)}static{this.\u0275fac=function(d){return new(d||r)(e.KVO(t.P))}}static{this.\u0275prov=e.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})()},97664:(M,m,a)=>{a.d(m,{d:()=>n});var e=a(37580),t=a(54179);let n=(()=>{class r{constructor(o){this.repository=o}execute(o){return this.repository.TakeDownSurvey(o)}static{this.\u0275fac=function(d){return new(d||r)(e.KVO(t.P))}}static{this.\u0275prov=e.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})()},86997:(M,m,a)=>{a.d(m,{j:()=>n});var e=a(37580),t=a(54179);let n=(()=>{class r{constructor(o){this.repository=o}execute(o){return this.repository.UpdateStatusPause(o)}static{this.\u0275fac=function(d){return new(d||r)(e.KVO(t.P))}}static{this.\u0275prov=e.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})()},47402:(M,m,a)=>{a.d(m,{w:()=>s});var e=a(37580),t=a(60316);function n(o,d){if(1&o){const f=e.RV6();e.j41(0,"button",7),e.bIt("click",function(){e.eBV(f);const i=e.XpG();return e.Njj(i.handleShare())}),e.nrm(1,"i",8),e.EFF(2," Share Report "),e.k0s()}}function r(o,d){if(1&o){const f=e.RV6();e.j41(0,"button",9),e.bIt("click",function(){e.eBV(f);const i=e.XpG();return e.Njj(i.handleShare())}),e.nrm(1,"img",10),e.k0s()}}let s=(()=>{class o{constructor(){this.showShareButton=!1,this.surveyTitle="",this.share=new e.bkB}handleShare(){this.share.emit()}static{this.\u0275fac=function(b){return new(b||o)}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["app-client-header"]],inputs:{showShareButton:"showShareButton",surveyTitle:"surveyTitle"},outputs:{share:"share"},decls:8,vars:3,consts:[[1,"header-container"],[1,"logo-wrapper"],["src","assets/images/logo-small-white.svg","alt","tSurvey-logo"],[1,"separator"],[1,"survey-title"],["class","share-button hidden sm:block",3,"click",4,"ngIf"],["class","share-button-mobile block sm:hidden",3,"click",4,"ngIf"],[1,"share-button","hidden","sm:block",3,"click"],[1,"fi","icon-forward"],[1,"share-button-mobile","block","sm:hidden",3,"click"],["src","assets/images/icon/share-2.svg"]],template:function(b,i){1&b&&(e.j41(0,"div",0)(1,"div",1),e.nrm(2,"img",2)(3,"div",3),e.j41(4,"span",4),e.EFF(5),e.k0s()(),e.DNE(6,n,3,0,"button",5),e.DNE(7,r,2,0,"button",6),e.k0s()),2&b&&(e.R7$(5),e.JRh(i.surveyTitle),e.R7$(1),e.Y8G("ngIf",i.showShareButton),e.R7$(1),e.Y8G("ngIf",i.showShareButton))},dependencies:[t.bT],styles:[".header-container[_ngcontent-%COMP%]{width:100%}@media (min-width: 768px){.header-container[_ngcontent-%COMP%]{width:100vw}}.header-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1.5rem;background-color:#fff;border-bottom:1px solid #dfe5e8;position:fixed;top:0;left:0;right:0;z-index:100;box-shadow:0 2px 4px #0000001a}@media screen and (max-width: 768px){.header-container[_ngcontent-%COMP%]{padding:12px 32px}}@media (min-width: 768px){.header-container[_ngcontent-%COMP%] .share-button[_ngcontent-%COMP%]{display:block}.header-container[_ngcontent-%COMP%] .share-button[_ngcontent-%COMP%]{display:flex}}.header-container[_ngcontent-%COMP%] .share-button[_ngcontent-%COMP%]{align-items:center;gap:8px;padding:4px 8px;font-size:8px}@media (min-width: 768px){.header-container[_ngcontent-%COMP%] .share-button[_ngcontent-%COMP%]{font-size:12px}}.header-container[_ngcontent-%COMP%] .share-button[_ngcontent-%COMP%]{cursor:pointer;border-radius:420px;border-width:1px;--tw-border-opacity: 1;border-color:rgba(205,50,102,var(--tw-border-opacity));--tw-text-opacity: 1;color:rgba(205,50,102,var(--tw-text-opacity));font-weight:500;font-family:poppinsregular,Arial,sans-serif}.header-container[_ngcontent-%COMP%] .share-button[_ngcontent-%COMP%] .fi[_ngcontent-%COMP%]{font-size:10px}@media (min-width: 768px){.header-container[_ngcontent-%COMP%] .share-button[_ngcontent-%COMP%] .fi[_ngcontent-%COMP%]{font-size:14px}}.logo-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.05rem}.logo-wrapper[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:32px}
1.logo-wrapper[_ngcontent-%COMP%] .separator[_ngcontent-%COMP%]{width:1px;height:24px;background-color:#dfe5e8;margin:0 .5rem}.logo-wrapper[_ngcontent-%COMP%] .survey-title[_ngcontent-%COMP%]{font-family:poppinsregular,Arial,sans-serif;font-size:14px;--tw-text-opacity: 1;color:rgba(0,26,65,var(--tw-text-opacity))}@media (min-width: 768px){.logo-wrapper[_ngcontent-%COMP%] .survey-title[_ngcontent-%COMP%]{font-size:16px}}.logo-wrapper[_ngcontent-%COMP%] .survey-title[_ngcontent-%COMP%]{font-weight:500}"]})}}return o})()},40125:(M,m,a)=>{a.d(m,{H:()=>n});var e=a(60316),t=a(37580);let n=(()=>{class r{static{this.\u0275fac=function(d){return new(d||r)}}static{this.\u0275mod=t.$C({type:r})}static{this.\u0275inj=t.G2t({imports:[e.MD]})}}return r})()},11463:(M,m,a)=>{a.d(m,{$:()=>f});var e=a(12587),t=a(65775),r=a(32255),s=a(37580),o=a(34456),d=a(16163);let f=(()=>{class b{constructor(g,l){this.dialogRef=g,this.data=l,this.Editor=t,this.builderEditor=r.h$,this.htmlContent="",this.html="",this.editorConfig={editable:!0,spellcheck:!0,height:"120",maxHeight:"auto",width:"auto",minWidth:"0",translate:"yes",enableToolbar:!0,showToolbar:!0,placeholder:"Type footer text here",defaultParagraphSeparator:"",defaultFontName:"",defaultFontSize:"",fonts:[{class:"arial",name:"Arial"},{class:"times-new-roman",name:"Times New Roman"},{class:"calibri",name:"Calibri"},{class:"comic-sans-ms",name:"Comic Sans MS"}],customClasses:[{name:"quote",class:"quote"},{name:"redText",class:"redText"},{name:"titleText",class:"titleText",tag:"h1"}],uploadUrl:"v1/image",uploadWithCredentials:!1,sanitize:!0,toolbarPosition:"top",toolbarHiddenButtons:[["undo","redo","strikeThrough","subscript","superscript","justifyLeft","justifyCenter","justifyRight","justifyFull","indent","outdent","insertUnorderedList","insertOrderedList","heading","fontName"],["fontSize","textColor","backgroundColor","customClasses","link","unlink","insertImage","insertVideo","insertHorizontalRule","removeFormat","toggleEditorMode"]]},g.disableClose=!0}ngOnInit(){this.htmlContent=this.data.text}closeModal(){this.dialogRef.close(!1)}setApply(){this.dialogRef.close(this.htmlContent)}static{this.\u0275fac=function(l){return new(l||b)(s.rXU(e.CP),s.rXU(e.Vh))}}static{this.\u0275cmp=s.VBU({type:b,selectors:[["app-modal-custom-footer"]],decls:16,vars:4,consts:[[1,"box-modal"],[1,"modal-location"],[1,"title-container","d-flex","justify-space-between"],[1,"title"],[1,"fi","icon-close-standard","cursor-pointer","text-f-14","text-ui-standard-medium",3,"click"],[1,"content"],["ngDefaultControl","",1,"w-full",3,"editor","config","ngModel","ngModelChange"],[1,"char-length"],[1,"action-wrapper"],[1,"btn-fourty","mr-2",3,"click"],[1,"btn-primary",3,"click"]],template:function(l,u){1&l&&(s.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),s.EFF(4,"Custom Footer Text"),s.k0s(),s.j41(5,"span",4),s.bIt("click",function(){return u.closeModal()}),s.k0s()(),s.j41(6,"p",5),s.EFF(7," Footer text will be displayed on every page you create. "),s.k0s(),s.j41(8,"ckeditor",6),s.bIt("ngModelChange",function(O){return u.htmlContent=O}),s.k0s(),s.j41(9,"p",7),s.EFF(10),s.k0s()(),s.j41(11,"div",8)(12,"button",9),s.bIt("click",function(){return u.closeModal()}),s.EFF(13,"Cancel"),s.k0s(),s.j41(14,"button",10),s.bIt("click",function(){return u.setApply()}),s.EFF(15,"Apply"),s.k0s()()()),2&l&&(s.R7$(8),s.Y8G("editor",u.Editor)("config",u.builderEditor)("ngModel",u.htmlContent),s.R7$(2),s.SpI("",800-u.htmlContent.length," /800 Character"))},dependencies:[o.me,o.BC,o.vS,d.h],styles:[".modal-location[_ngcontent-%COMP%]{position:relative;padding-left:1.25rem;padding-right:1.25rem;padding-bottom:2.5rem;width:600px}.modal-location[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-family:telkomselbatikbold,Arial,sans-serif;font-size:28px;letter-spacing:.025em;--tw-text-opacity: 1;color:rgba(0,26,65,var(--tw-text-opacity))}.modal-location[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-family:poppinsmedium,Arial,sans-serif;font-size:12px;--tw-text-opacity: 1;color:rgba(78,87,100,var(--tw-text-opacity));margin:10px 0 20px}.modal-location[_ngcontent-%COMP%] .ck-editor__editable{height:150px}.modal-location[_ngcontent-%COMP%] .ck-editor__editable:not(.ck-focused){border:1px solid #DBDBDB}.modal-location[_ngcontent-%COMP%] .ck-editor__editable.ck-focused{border:1px solid #DF416B;box-shadow:none}.modal-location[_ngcontent-%COMP%] .ck-editor__editable.ck-focused:focus-visible{outline:none}.modal-location[_ngcontent-%COMP%] .ck-placeholder{font-family:poppinsmedium,Arial,sans-serif;font-size:14px;--tw-text-opacity: 1;color:rgba(194,194,194,var(--tw-text-opacity))}.modal-location[_ngcontent-%COMP%] .ck-toolbar{--tw-bg-opacity: 1;background-color:rgba(244,249,255,var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgba(78,87,100,var(--tw-text-opacity));border:1px solid #DBDBDB}.modal-location[_ngcontent-%COMP%] ul, .modal-location[_ngcontent-%COMP%] ol{list-style:revert!important;margin:revert!important;padding:revert!important}.action-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin:20px 0}.char-length[_ngcontent-%COMP%]{font-family:poppinsregular,Arial,sans-serif;font-size:10px;letter-spacing:.025em;--tw-text-opacity: 1;color:rgba(124,124,124,var(--tw-text-opacity));margin-top:5px;float:right}.d-flex[_ngcontent-%COMP%]{display:flex}.justify-space-between[_ngcontent-%COMP%]{justify-content:space-between}
1.angular-editor[_ngcontent-%COMP%]{height:120px!important} .mat-mdc-dialog-container{border-radius:40px} angular-editor .angular-editor-textarea{height:120px;border-radius:15px} angular-editor .angular-editor-toolbar{margin-bottom:-10px!important;margin-left:10px!important;background-color:transparent!important;border:none!important}"]})}}return b})()},11583:(M,m,a)=>{a.d(m,{U:()=>R});var e=a(34456),t=a(12587),n=a(37580),r=a(60316),s=a(1610);function o(v,E){1&v&&(n.j41(0,"div",11),n.EFF(1,"Reason of Rejection"),n.k0s())}function d(v,E){1&v&&(n.j41(0,"p",14),n.EFF(1,"Links are not allowed in the rejection reason."),n.k0s())}function f(v,E){if(1&v){const p=n.RV6();n.qex(0),n.j41(1,"mat-dialog-content")(2,"textarea",12),n.bIt("ngModelChange",function(c){n.eBV(p);const y=n.XpG();return n.Njj(y.htmlContent=c)}),n.k0s(),n.DNE(3,d,2,0,"p",13),n.k0s(),n.bVm()}if(2&v){const p=n.XpG();n.R7$(2),n.Y8G("ngModel",p.htmlContent),n.R7$(1),n.Y8G("ngIf",p.hasUrlError)}}function b(v,E){if(1&v&&(n.j41(0,"div",21)(1,"span"),n.nrm(2,"img",22),n.k0s(),n.EFF(3),n.k0s()),2&v){const p=n.XpG(2);n.R7$(3),n.SpI(" ","FIRST"===p.surveyPortion?"Approval request for the first survey only":"Approval request for the whole survey"," ")}}function i(v,E){if(1&v){const p=n.RV6();n.j41(0,"div",31),n.bIt("click",function(){n.eBV(p);const c=n.XpG().index,y=n.XpG(2);return n.Njj(y.deleteRejectForm(c))}),n.nrm(1,"img",32),n.k0s()}}function g(v,E){1&v&&(n.j41(0,"p",33),n.EFF(1,"Links are not allowed in the rejection reason."),n.k0s())}function l(v,E){if(1&v){const p=n.RV6();n.qex(0,23),n.j41(1,"div",24)(2,"div",25)(3,"div",26),n.EFF(4,"Choose Rejected Survey"),n.k0s(),n.DNE(5,i,2,0,"div",27),n.k0s(),n.j41(6,"app-custom-dropdown",28),n.bIt("selected",function(c){const _=n.eBV(p).index,C=n.XpG(2);return n.Njj(C.selectApp(c,_))}),n.k0s()(),n.j41(7,"div",26),n.EFF(8,"Reason of Rejection"),n.k0s(),n.nrm(9,"textarea",29),n.DNE(10,g,2,0,"p",30),n.bVm()}if(2&v){const p=E.$implicit,x=E.index,c=n.XpG(2);let y;n.Y8G("formGroupName",x),n.R7$(5),n.Y8G("ngIf",c.form.controls.data.value.length>1),n.R7$(1),n.Y8G("dropdownTitle",c.state.dropdownTitle)("options",c.state.topic)("config",c.dropdownConfig),n.R7$(4),n.Y8G("ngIf",c.containsUrl(null==(y=p.get("reason"))?null:y.value))}}function u(v,E){if(1&v){const p=n.RV6();n.qex(0),n.DNE(1,b,4,1,"div",15),n.qex(2),n.j41(3,"mat-dialog-content")(4,"form",16),n.qex(5,17),n.DNE(6,l,11,6,"ng-container",18),n.bVm(),n.k0s()(),n.j41(7,"div",19),n.bIt("click",function(){n.eBV(p);const c=n.XpG();return n.Njj(c.form.value.data.length<=c.data.list.length-1?c.addReject():null)}),n.EFF(8,"+ "),n.j41(9,"span",20),n.EFF(10," Add More Rejected Survey"),n.k0s()(),n.bVm()()}if(2&v){const p=n.XpG();n.R7$(1),n.Y8G("ngIf",1===p.form.controls.data.value.length),n.R7$(3),n.Y8G("formGroup",p.form),n.R7$(2),n.Y8G("ngForOf",p.reject.controls)}}function h(v,E){if(1&v){const p=n.RV6();n.j41(0,"button",34),n.bIt("click",function(){n.eBV(p);const c=n.XpG();return n.Njj(c.rejectSurvey())}),n.EFF(1," Submit "),n.k0s()}if(2&v){const p=n.XpG();n.Y8G("disabled","multiplereject"===p.data.type&&!p.form.valid||p.hasUrlError)}}function O(v,E){if(1&v){const p=n.RV6();n.j41(0,"button",34),n.bIt("click",function(){n.eBV(p);const c=n.XpG();return n.Njj(c.rejectSurvey())}),n.EFF(1," Submit "),n.k0s()}if(2&v){const p=n.XpG();n.Y8G("disabled",!p.htmlContent||p.hasUrlError)}}let R=(()=>{class v{containsUrl(p){return/https?:\/\/|www\.|<a[\s>]|href\s*=|\/\//i.test(p||"")}get hasUrlError(){return"singlereject"===this.data.type?this.containsUrl(this.htmlContent):this.reject.controls.some(p=>this.containsUrl(p.get("reason")?.value))}constructor(p,x,c){this.dialogRef=p,this.fb=x,this.data=c,this.state={dropdownTitle:"Selected Survey",title:"Choose Rejected Survey"},this.dropdownConfig={border:"full"},this.form=this.fb.group({data:this.fb.array([])}),this.temporaryData=this.data.list}ngOnInit(){this.state.topic=this.temporaryData,this.initReject()}get reject(){return this.form.controls.data}initReject(){const p=this.fb.group({reason:["",e.k0.required],surveyId:["",e.k0.required]});this.reject.push(p)}addReject(){this.initReject()}deleteRejectForm(p){this.reject.removeAt(p);const x=this.temporaryData.filter(c=>!this.form.value.data.some(y=>c.value===y.surveyId));this.state.topic=x}closeModal(){this.dialogRef.close({status:!1,reason:""})}selectApp(p,x){this.form.controls.data.at(x).get("surveyId").setValue(p.value);const y=this.temporaryData.filter(_=>!this.form.value.data.some(C=>_.value===C.surveyId));this.state.topic=y}rejectSurvey(){if(!this.hasUrlError)if("singlereject"===this.data.type)this.dialogRef.close({status:!0,reason:this.htmlContent});else{if("WHOLE"===this.data.surveyPortion&&this.form.value.data.length!==this.data.list.length){const c=this.data.list.filter(y=>!this.form.value.data.some(_=>y.value===_.surveyId)).map(y=>({reason:"",surveyId:y.value}));this.form.value.data.push(...c)}this.dialogRef.close({status:!0,data:this.form.value})}}static{this.\u0275fac=function(x){return new(x||v)(n.rXU(t.CP),n.rXU(e.ok),n.rXU(t.Vh))}}static{this.\u0275cmp=n.VBU({type:v,selectors:[["app-modal-reject-survey"]],decls:16,vars:7,consts:[[1,"box-modal"],[1,"modal-location"],[1,"title-container","d-flex","justify-space-between"],[1,"title"],[1,"fi","icon-close-standard","cursor-pointer","text-f-14","text-ui-standard-medium",3,"click"],[1,"text-f-12","font-popregular","leading-4","text-ui-standard-light","tracking-wide","pt-3","pb-5"],["class","text-f-14 font-popmedium mb-2",4,"ngIf"],[4,"ngIf"],[1,"action-wrapper"],[1,"btn-fourty","mr-2",3,"click"],["type","button","class","btn-primary",3,"disabled","click",4,"ngIf"],[1,"text-f-14","font-popmedium","mb-2"],["name","inputRejection","rows","5","placeholder","Type your rejection reason here",1,"w-full","border","border-gray-300","rounded","p-2","text-f-14","font-popregular","resize-none","focus:outline-none","focus:border-blue-400",3,"ngModel","ngModelChange"],["class","text-f-12 text-red-500 mt-1 font-popmedium",4,"ngIf"],[1,"text-f-12","text-red-500","mt-1","font-popmedium"],["class","rounded-10 w-full p-3 card",4,"ngIf"],["action","",3,"formGroup"],["formArrayName","data"],[3,"formGroupName",4,"ngFor","ngForOf"],[1,"curs
1or-pointer",3,"click"],[1,"underline"],[1,"rounded-10","w-full","p-3","card"],["src","assets/images/icon/information-gray.svg","alt","Information Icon",1,"inline"],[3,"formGroupName"],[1,"my-4"],[1,"flex","justify-between","items-center"],[1,"label-form"],["class","bg-circle flex justify-center items-center",3,"click",4,"ngIf"],[3,"dropdownTitle","options","config","selected"],["name","inputRejection","rows","5","formControlName","reason","placeholder","Type your rejection reason here",1,"w-full","border","border-gray-300","rounded","p-2","text-f-14","font-popregular","resize-none","focus:outline-none","focus:border-blue-400"],["class","text-f-12 text-red-500 mt-1",4,"ngIf"],[1,"bg-circle","flex","justify-center","items-center",3,"click"],["src","/assets/images/icons-sidebarchain/icon_trash.svg","alt",""],[1,"text-f-12","text-red-500","mt-1"],["type","button",1,"btn-primary",3,"disabled","click"]],template:function(x,c){1&x&&(n.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),n.EFF(4),n.k0s(),n.j41(5,"span",4),n.bIt("click",function(){return c.closeModal()}),n.k0s()(),n.j41(6,"p",5),n.EFF(7),n.k0s(),n.DNE(8,o,2,0,"div",6),n.DNE(9,f,4,2,"ng-container",7),n.DNE(10,u,11,3,"ng-container",7),n.k0s(),n.j41(11,"div",8)(12,"button",9),n.bIt("click",function(){return c.closeModal()}),n.EFF(13,"Cancel"),n.k0s(),n.DNE(14,h,2,1,"button",10),n.DNE(15,O,2,1,"button",10),n.k0s()()),2&x&&(n.R7$(4),n.JRh(c.data.title),n.R7$(3),n.SpI(" ",c.data.describe," "),n.R7$(1),n.Y8G("ngIf",c.data.textApproval),n.R7$(1),n.Y8G("ngIf","singlereject"===c.data.type),n.R7$(1),n.Y8G("ngIf","multiplereject"===c.data.type),n.R7$(4),n.Y8G("ngIf","multiplereject"===c.data.type),n.R7$(1),n.Y8G("ngIf","singlereject"===c.data.type))},dependencies:[r.Sq,r.bT,e.qT,e.me,e.BC,e.cb,e.j4,e.JD,e.$R,e.v8,e.vS,s.A,t.Yi],styles:[".modal-location[_ngcontent-%COMP%]{position:relative;padding-bottom:2.5rem;width:100%;max-width:600px}.modal-location[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-family:telkomselbatikbold,Arial,sans-serif;font-size:28px;letter-spacing:.025em;--tw-text-opacity: 1;color:rgba(0,26,65,var(--tw-text-opacity))}.modal-location[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-family:poppinsmedium,Arial,sans-serif;font-size:12px;--tw-text-opacity: 1;color:rgba(78,87,100,var(--tw-text-opacity));margin:10px 0 20px}.modal-location[_ngcontent-%COMP%] .ck-editor__editable{font-family:poppinsmedium,Arial,sans-serif;font-size:14px;--tw-text-opacity: 1;color:rgba(78,87,100,var(--tw-text-opacity));height:150px}.modal-location[_ngcontent-%COMP%] .ck-editor__editable:not(.ck-focused){border:1px solid #dbdbdb}.modal-location[_ngcontent-%COMP%] .ck-editor__editable.ck-focused{border:1px solid #df416b;box-shadow:none}.modal-location[_ngcontent-%COMP%] .ck-editor__editable.ck-focused:focus-visible{outline:none}.modal-location[_ngcontent-%COMP%] .ck-toolbar{--tw-bg-opacity: 1;background-color:rgba(244,249,255,var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgba(78,87,100,var(--tw-text-opacity));border:1px solid #dbdbdb}.modal-location[_ngcontent-%COMP%] ul, .modal-location[_ngcontent-%COMP%] ol{list-style:revert!important;margin:revert!important;padding:revert!important}.action-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.char-length[_ngcontent-%COMP%]{font-family:poppinsregular,Arial,sans-serif;font-size:10px;letter-spacing:.025em;--tw-text-opacity: 1;color:rgba(124,124,124,var(--tw-text-opacity));margin-top:5px;float:right}.d-flex[_ngcontent-%COMP%]{display:flex}.justify-space-between[_ngcontent-%COMP%]{justify-content:space-between} .mat-mdc-dialog-container{border-radius:20px} .ck.ck-editor__editable>.ck-placeholder:before{font-family:poppinsmedium,Arial,sans-serif;font-size:14px;--tw-text-opacity: 1;color:rgba(219,219,219,var(--tw-text-opacity))}.card[_ngcontent-%COMP%]{font-size:12px;--tw-text-opacity: 1;color:rgba(124,124,124,var(--tw-text-opacity));background-color:#f6f8f980}.bg-circle[_ngcontent-%COMP%]{cursor:pointer;width:26px;height:26px;background-color:#f2f2f2;border-radius:55px}"]})}}return v})()},7831:(M,m,a)=>{a.d(m,{y:()=>d});var e=a(12587),t=a(37580),n=a(60316),r=a(34456);function s(f,b){if(1&f){const i=t.RV6();t.j41(0,"div",2)(1,"div",3),t.nrm(2,"img",4),t.k0s(),t.j41(3,"div",5)(4,"span",6),t.bIt("click",function(){t.eBV(i);const l=t.XpG();return t.Njj(l.closeModal())}),t.k0s(),t.j41(5,"h2",7),t.EFF(6),t.k0s(),t.j41(7,"p",8),t.EFF(8),t.k0s()(),t.j41(9,"div",9)(10,"p",10)(11,"span",11),t.EFF(12,"User ID:"),t.k0s(),t.EFF(13),t.k0s(),t.j41(14,"p",10)(15,"span",11),t.EFF(16,"Creator Name:"),t.k0s(),t.EFF(17),t.k0s()(),t.j41(18,"div",5)(19,"div",12),t.nrm(20,"img",13),t.j41(21,"p",14),t.EFF(22,"Top Up Amount"),t.k0s()(),t.j41(23,"div",15)(24,"input",16),t.bIt("ngModelChange",function(l){t.eBV(i);const u=t.XpG();return t.Njj(u.totalPoint=l)})("keyup",function(){t.eBV(i);const l=t.XpG();return t.Njj(l.addDots())})("keydown",function(l){t.eBV(i);const u=t.XpG();return t.Njj(u.changeFormat(l))}),t.k0s()(),t.j41(25,"div",17)(26,"label",18),t.EFF(27),t.k0s(),t.j41(28,"textarea",19),t.bIt("ngModelChange",function(l){t.eBV(i);const u=t.XpG();return t.Njj(u.messageTopup=l)}),t.k0s()(),t.j41(29,"div",20)(30,"button",21),t.bIt("click",function(){t.eBV(i);const l=t.XpG();return t.Njj(l.closeModal())}),t.EFF(31,"Cancel"),t.k0s(),t.j41(32,"button",22),t.bIt("click",function(){t.eBV(i);const l=t.XpG();return t.Njj(l.deleteConfirmation())}),t.EFF(33,"Top Up"),t.k0s()()(),t.j41(34,"div",23),t.nrm(35,"img",24),t.k0s()()}if(2&f){const i=t.XpG();t.R7$(6),t.JRh(i.data.title),t.R7$(2),t.JRh(i.data.description),t.R7$(5),t.SpI(" ",i.data.userId," "),t.R7$(4),t.SpI(" ",i.data.name," "),t.R7$(7),t.Y8G("ngModel",i.totalPoint),t.R7$(3),t.SpI("Reason of ",i.data.title.includes("Points")?"Points":"Coins"," Top Up"),t.R7$(1),t.Y8G("ngModel",i.messageTopup),t.R7$(4),t.Y8G("disabled",!i.totalPoint||!i.messageTopup)}}function o(f,b){if(1&f){const i=t.RV6();t.j41(0,"div",25)(1,"div",26),t.nrm(2,"img",27),t.k0s(),t.j41(3,"div",5)(4,"span",28),t.bIt("click",function(){t.eBV(i);const l=t.XpG();return t.Njj(l.closeModal())}),t.k0s(),t.j41(5,"h2",7),t.EFF(6),t.k0s(),t.j41(7,"p",8),t.EFF(8),t.k0s()(),t.j41(9,"div",9)(10,"p",10)(11,"span",11),t.EFF(12,"User ID:"),t.k0s(),t.EFF(13),t.k0s(),t.j41(14,"p",10)(15,"span",11),t.EFF(16,"Creator Name:"),t.k0s(),t.EFF(17),t.k0s()(),t.j41(18,"div",5)(19,"div",12),t.nrm(20,"img",13),t.j41(21,"p",14),t.EFF(22,"Deduction Amount"),t.k0s()(),t.j41(23,"div",29)(24,"input",30),t.bIt("ngModelChange",function(l){t.eBV(i);const u=t.XpG();return t.Njj(u.totalPoint=l)})("keyup",function(){t.eBV(i);const l=t.XpG();return t.Njj(l.addDots())})("keydown",function(l){t.eBV(i);const u=t.XpG();return t.Njj(u.changeFormat(l))}),t.k0s()(),t.j41(25,"div",17)(26,"label",31),t.EFF(27),t.k0s(),t.j41(28,"textarea",32),t.bIt("ngModelChange",function(l){t.eBV(i);const u=t.XpG();return t.Njj(u.messageDeduct=l)}),t.k0s()(),t.j41(29,"div",20)(30,"button",21),t.bIt("click",function(){t.eBV(i);const l=t.XpG();return t.Njj(l.closeModal())}),t.EFF(31,"Cancel"),t.k0s(),t.j41(32,"button",22),t.bIt("click",function(){t.eBV(i);const l=t.XpG();return t.Njj(l.deleteConfirmation())}),t.EFF(33,"Deduct"),t.k0s()()(),t.j41(34,"div",33),t.nrm(35,"img",34),t.k0s()()}if(2&f){const i=t.XpG();t.R7$(6),t.JRh(i.data.title),t.R7$(2),t.JRh(i.data.description),t.R7$(5),t.SpI(" ",i.data.userId," "),t.R7$(4),t.SpI(" ",i.data.name," "),t.R7$(7),t.Y8G("ngModel",i.totalPoint),t.R7$(3),t.SpI("Reason of ",i.data.title.includes("Points")?"Points":"Coins"," Deduction"),t.R7$(1),t.Y8G("ngModel",i.messageDeduct),t.R7$(4),t.Y8G("disabled",!i.totalPoint)}}let d=(()=>{class f{constructor(i,g){this.dialogRef=i,this.data=g,this.totalPoint=null,this.messageDeduct="",this.messageTopup=""}ngOnInit(){}closeModal(){this.dialogRef.close({status:!1})}deleteConfirmation(){this.dialogRef.close({status:!0,totalPoint:this.totalPoint,message:"modaldeduct"===this.data.type?this.messageDeduct:this.messageTopup})}changeFormat(i){188===i.keyCode&&i.preventDefault()}addDots(){this.totalPoint=this.changeNumbers(this.totalPoint)}removeZero(i){if(null===i||1===i.length&&"0"===i[0])return"";for(let g=0;g<i.length&&"0"===i[g];g++)i=i.substr(g+1,i.length-1);return i}changeNumbers(i){const l=(i=this.removeZero(i)).toString().replace(/[^,\d]/g,"").split(","),u=l[0].length%3,h=l[0].substr(u).match(/\d{3}/gi);let O=l[0].substr(0,u);return h&&(O+=(u?".":"")+h.join(".")),O=void 0!==l[1]?O+","+l[1]:O,O}static{this.\u0275fac=function(g){return new(g||f)(t.rXU(e.CP),t.rXU(e.Vh))}}static{this.\u0275cmp=t.VBU({type:f,selectors:[["app-modal-setup-point"]],decls:2,vars:2,consts:[["class","wraper-point modal-custom-point",4,"ngIf"],["class","wraper-deduct modal-custom-point",4,"ngIf"],[1,"wraper-point","modal
1-custom-point"],[1,"img-topup"],["src","../../../../../assets/images/popup/topup-2.png","alt",""],[1,"py-5","px-5","pb-3","relative"],[1,"fi","icon-close-standard","absolute","right-5","top-5","cursor-pointer","text-f-14","text-ui-standard-medium","z-10",3,"click"],[1,"text-f-28","font-telkomselbatikbold","tracking-wide","text-ui-blue-90","pt-5"],[1,"text-f-12","font-popregular","tracking-wide","text-ui-standard-medium","pb-5"],[1,"flex","py-3","px-5","bg-ui-blue-10","justify-start","items-center"],[1,"font-popregular","text-ui-blue-90","text-user-id","text-f-14"],[1,"text-ui-blue-40"],[1,"wrapper-points"],["alt","","src","assets/images/logo-small.png",1,"mr-2"],[1,"text-f-14","font-popsemibold","tracking-wide","text-ui-standard-medium"],[1,"input","point"],["type","text",1,"point",3,"ngModel","ngModelChange","keyup","keydown"],[1,"flex","flex-col","pt-6"],["for","topup-reason",1,"input-cal","text-f-14","pb-3","font-popmedium","tracking-wide"],["name","topup-reason","id","TopUpReason","placeholder","Please describe here",1,"tex-deduct",3,"ngModel","ngModelChange"],[1,"button-cta","py-10","justify-end","flex","items-center"],["type","button",1,"btn-secondary",3,"click"],["type","button",1,"btn-primary","ml-3",3,"disabled","click"],[1,"img-topup1"],["src","../../../../../assets/images/popup/topup-1.png","alt",""],[1,"wraper-deduct","modal-custom-point"],[1,"img-deduct"],["src","../../../../../assets/images/popup/deduct-2.png","alt",""],[1,"fi","icon-close-standard","absolute","right-5","top-5","cursor-pointer","text-f-14","text-ui-standard-medium",3,"click"],[1,"input","deduct"],["type","text",1,"deduct",3,"ngModel","ngModelChange","keyup","keydown"],["for","",1,"input-cal","text-f-14","pb-3","font-popmedium","tracking-wide"],["name","","id","","placeholder","Please describe here",1,"tex-deduct",3,"ngModel","ngModelChange"],[1,"img-deduct1"],["src","../../../../../assets/images/popup/deduct-1.png","alt",""]],template:function(g,l){1&g&&(t.DNE(0,s,36,8,"div",0),t.DNE(1,o,36,8,"div",1)),2&g&&(t.Y8G("ngIf","modalpoint"===l.data.type),t.R7$(1),t.Y8G("ngIf","modaldeduct"===l.data.type))},dependencies:[n.bT,r.me,r.BC,r.vS],styles:[".mat-mdc-dialog-container .mdc-dialog__surface{border-radius:20px} .mat-mdc-dialog-container .mdc-dialog__surface:has(.modal-custom-point){overflow:hidden;padding:0}.text-user-id[_ngcontent-%COMP%]{max-width:240px;white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis;margin-right:20px}.wraper-point[_ngcontent-%COMP%]{position:relative;--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity));width:600px}.wraper-point[_ngcontent-%COMP%] .img-topup[_ngcontent-%COMP%]{position:absolute;right:0;top:-23px;z-index:0;opacity:1}.wraper-point[_ngcontent-%COMP%] .img-topup1[_ngcontent-%COMP%]{position:absolute;bottom:-23px}.point[_ngcontent-%COMP%]{width:100%;border-radius:10px;padding-top:10px}.wraper-deduct[_ngcontent-%COMP%]{position:relative;--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity));width:600px}.wraper-deduct[_ngcontent-%COMP%] .img-deduct[_ngcontent-%COMP%]{position:absolute;top:-23px}.wraper-deduct[_ngcontent-%COMP%] .img-deduct1[_ngcontent-%COMP%]{position:absolute;bottom:-23px}.wraper-deduct[_ngcontent-%COMP%] .deduct[_ngcontent-%COMP%]{width:100%;border-radius:10px;padding-top:10px}.tex-deduct[_ngcontent-%COMP%]{height:118px;border-radius:10px}.wrapper-points[_ngcontent-%COMP%]{display:flex;font-family:poppinsmedium,Arial,sans-serif;font-size:12px;line-height:1rem;letter-spacing:.025em;--tw-text-opacity: 1;color:rgba(78,87,100,var(--tw-text-opacity))}"]})}}return f})()},94618:(M,m,a)=>{a.d(m,{p:()=>x});var e=a(37580),t=a(27843),n=a(50884),r=a(12587),s=a(6154),o=a(60316),d=a(8827),f=a(43796);function b(c,y){1&c&&(e.j41(0,"h1",7),e.EFF(1,"Estimated Completion Time "),e.k0s())}function i(c,y){1&c&&e.nrm(0,"span",16)}function g(c,y){if(1&c){const _=e.RV6();e.j41(0,"div",8)(1,"h4",9),e.EFF(2,"Estimated Completion Time "),e.DNE(3,i,1,0,"span",10),e.j41(4,"span",11,12),e.EFF(6,"Manually set your estimated time of survey completion based on your self-assessment, which will be shown to the panelist"),e.k0s()(),e.j41(7,"div",13)(8,"mat-slide-toggle",14),e.bIt("change",function(P){e.eBV(_);const k=e.XpG();return e.Njj(k.toggleAction(P))}),e.nrm(9,"span",15),e.k0s()()()}if(2&c){const _=e.sdS(5),C=e.XpG();e.R7$(3),e.Y8G("hoverSwitcher",_),e.R7$(5),e.Y8G("checked",C.activeOnMenu)}}function l(c,y){1&c&&(e.j41(0,"span",17),e.EFF(1,"Manually set your estimated time of survey completion based on your self-assessment, which will appear on the first page of the respondent view"),e.k0s())}function u(c,y){1&c&&(e.j41(0,"span",17),e.EFF(1,"Set manually the estimated time of survey completion based on your self-assessment."),e.k0s())}function h(c,y){if(1&c){const _=e.RV6();e.j41(0,"div",18)(1,"div",19)(2,"div",20)(3,"h1",21),e.EFF(4,"Set the estimated completion time"),e.k0s()(),e.j41(5,"mat-slide-toggle",14),e.bIt("change",function(P){e.eBV(_);const k=e.XpG();return e.Njj(k.toggleAction(P))}),e.nrm(6,"span",15),e.k0s()()()}if(2&c){const _=e.XpG();e.R7$(5),e.Y8G("checked",_.isActive)}}function O(c,y){1&c&&(e.j41(0,"div",30),e.EFF(1,"You may choose the time between 1 - 60 Minutes"),e.k0s())}function R(c,y){1&c&&(e.j41(0,"div",31),e.EFF(1,"Estimated Time"),e.k0s())}function v(c,y){1&c&&(e.j41(0,"span",32),e.EFF(1,"Max value is 60 Minutes"),e.k0s())}function E(c,y){1&c&&(e.j41(0,"span",33),e.EFF(1,"Maximum estimated time allowed is 60 Minutes"),e.k0s())}function p(c,y){if(1&c){const _=e.RV6();e.j41(0,"div",22),e.DNE(1,O,2,0,"div",23),e.DNE(2,R,2,0,"div",24),e.j41(3,"div",25)(4,"input",26),e.bIt("input",function(P){e.eBV(_);const k=e.XpG();return e.Njj(k.onChangeEstimation(P))}),e.k0s(),e.j41(5,"span",27),e.EFF(6,"Minutes"),e.k0s()(),e.DNE(7,v,2,0,"span",28),e.DNE(8,E,2,0,"span",29),e.k0s()}if(2&c){const _=e.XpG();e.R7$(1),e.Y8G("ngIf","page"===_.view),e.R7$(1),e.Y8G("ngIf","modal"===_.view),e.R7$(2),e.Y8G("value",_.value),e.R7$(3),e.Y8G("ngIf",_.under60),e.R7$(1),e.Y8G("ngIf",!_.under60)}}let x=(()=>{class c{constructor(_,C){this.dialog=_,this.settingService=C,this.data={value:"",active:!1},this.view="page",this.activeOnMenu=!1,this.validation=new e.bkB,this.changeValue=new e.bkB,this.onActivate=new e.bkB,this.isActive=!1,this.value="",this.currentMousePos=void 0}get under60(){return Number(this.value)<=60}
1get mousePointerPos(){return{left:(this.currentMousePos?.x??0)-148+"px",top:(this.currentMousePos?.y??0)-90+"px",position:"fixed"}}ngOnInit(){"string"==typeof this.data.value&&(this.value=this.data.value),"boolean"==typeof this.data.active&&(this.isActive=this.data.active),this.validation.emit({isUnder60:this.under60}),this.settingService.defaultHandler.recreateListener(n.F5.estimatedTimeAlertEmpty,_=>this.alertHandler("empty",_)),this.settingService.defaultHandler.recreateListener(n.F5.estimatedTimeAlertInvalid,_=>this.alertHandler("invalid",_))}alertHandler(_,C){const P=w=>{this.isActive=w,w&&this.focusedToInput(),this.isActive||(this.value=""),this.onActivate.emit(this.isActive),this.changeValue.emit(this.value)},k=[0===this.value.length&&this.isActive,this.value.length>0&&!this.under60];"empty"===_?k[0]&&this.showModalAlert(P):k[1]&&this.showModalAlert(P,{title:"Your Estimated Completion time still invalid",subTitle:"Please revise the estimated completion time to the value between 1 \u2013 60, or you can turn it off to continue ",buttonConfirm:"Revise the time"}),C&&C(void 0===k.find(w=>!0===w),_)}focusedToInput(){const _=document.querySelector("#estimateTimeInput");_&&_.focus()}onChangeEstimation(_){let C=_.target.value.replace(/\D/g,"");isNaN(Number(C))||String(C).startsWith("0")&&(C=C.replace("0","")),_.target.value=C,this.value=C,this.validation.emit({isUnder60:this.under60}),this.changeValue.emit(C)}toggleAction(_){this.isActive=_.checked,this.activeOnMenu=_.checked,this.isActive||(this.value=""),this.onActivate.emit(this.isActive),this.changeValue.emit(this.value)}showModalAlert(_,C){const P={type:"modalValidationAction",title:"You have not set the Estimated Completion Time",subTitle:"Please set the Estimated Completion Time or you can turn it off to continue",buttonCancel:"Turn off",buttonConfirm:"Set the time",actionCancel:"no",actionConfirm:"yes",icon:"https://lottie.host/?file=b05a3d60-0e45-412d-931c-14d548700dad/Blbz3yVM4j.json"};Object.assign(P,C),this.dialog.open(t.z,{data:P}).afterClosed().subscribe(k=>{_(!!k&&"yes"===k)})}static{this.\u0275fac=function(C){return new(C||c)(e.rXU(r.bZ),e.rXU(s.S))}}static{this.\u0275cmp=e.VBU({type:c,selectors:[["app-estimated-completion-time"]],inputs:{data:"data",view:"view",activeOnMenu:"activeOnMenu"},outputs:{validation:"validation",changeValue:"changeValue",onActivate:"onActivate"},decls:8,vars:6,consts:[[1,"estimated-completion"],["class","text-f-28 text-ui-blue-80 font-telkomselbatikbold pb-2",4,"ngIf"],["class","content flex justify-between relative",4,"ngIf"],[1,"content"],["class","font-popregular text-f-12 text-ui-blue-40",4,"ngIf"],["class","mt-6",4,"ngIf"],["class","time-set mt-2",4,"ngIf"],[1,"text-f-28","text-ui-blue-80","font-telkomselbatikbold","pb-2"],[1,"content","flex","justify-between","relative"],[1,"text-f-14","text-ui-blue-80","font-popregular","pb-2","flex","relative"],["class","fi icon-tooltip-info ml-2",4,"hoverSwitcher"],[1,"tooltip-with-cone","cone-bottom","fixed","custom-tooltip","hidden"],["information",""],[1,"float-right"],[3,"checked","change"],[1,"text-f-12"],[1,"fi","icon-tooltip-info","ml-2"],[1,"font-popregular","text-f-12","text-ui-blue-40"],[1,"mt-6"],[1,"flex","justify-between","items-center"],[1,"flex","flex-col"],[1,"font-popmedium","text-ui-blue-80","text-f-16"],[1,"time-set","mt-2"],["class","font-popregular text-f-12 text-ui-blue-40 pb-2",4,"ngIf"],["class","font-popmedium text-f-14 text-ui-blue-80 pb-2",4,"ngIf"],[1,"form-input","relative"],["type","text","placeholder","E.g 10","id","estimateTimeInput",1,"h-45x","font-popregular","rounded-10","w-full","px-4","text-gray-700","text-f-14","text-ui-blue-40","tracking-wide","border-1","border-ui-gray-50","focus:outline-none","focus:shadow-outline",3,"value","input"],[1,"label-left-input"],["class","text-f-10 text-ui-blue-40 font-popregular pt-2",4,"ngIf"],["class","text-f-10 text-ui-red-70 font-popregular pt-2",4,"ngIf"],[1,"font-popregular","text-f-12","text-ui-blue-40","pb-2"],[1,"font-popmedium","text-f-14","text-ui-blue-80","pb-2"],[1,"text-f-10","text-ui-blue-40","font-popregular","pt-2"],[1,"text-f-10","text-ui-red-70","font-popregular","pt-2"]],template:function(C,P){1&C&&(e.j41(0,"div",0),e.DNE(1,b,2,0,"h1",1),e.DNE(2,g,10,2,"div",2),e.j41(3,"div",3),e.DNE(4,l,2,0,"span",4),e.DNE(
15,u,2,0,"span",4),e.DNE(6,h,7,1,"div",5),e.DNE(7,p,9,5,"div",6),e.k0s()()),2&C&&(e.R7$(1),e.Y8G("ngIf","side"!==P.view),e.R7$(1),e.Y8G("ngIf","side"===P.view),e.R7$(2),e.Y8G("ngIf","page"===P.view),e.R7$(1),e.Y8G("ngIf","modal"===P.view),e.R7$(1),e.Y8G("ngIf","side"!==P.view&&"modal"!==P.view),e.R7$(1),e.Y8G("ngIf","modal"===P.view||"page"===P.view&&P.isActive))},dependencies:[o.bT,d.sG,f.V],styles:[".estimated-completion[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%]{width:300px}.estimated-completion[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%] .label-left-input[_ngcontent-%COMP%]{position:absolute;--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity));font-family:poppinsregular,Arial,sans-serif;top:1px;bottom:1px;right:1px;padding:11px 20px 11px 0;border-radius:0 10px 10px 0}.estimated-completion[_ngcontent-%COMP%] .custom-tooltip[_ngcontent-%COMP%]{border-radius:10px;--tw-bg-opacity: 1;background-color:rgba(0,26,65,var(--tw-bg-opacity));padding:.75rem;--tw-text-opacity: 1;color:rgba(244,249,255,var(--tw-text-opacity));bottom:-75px;left:70px;opacity:1}.estimated-completion[_ngcontent-%COMP%] .custom-tooltip[_ngcontent-%COMP%]:before{--tw-bg-opacity: 1;background-color:rgba(0,26,65,var(--tw-bg-opacity));top:0;bottom:unset;left:140px;transform:rotate(115deg) skew(-40deg)}"]})}}return c})()},11514:(M,m,a)=>{a.d(m,{u:()=>t});var e=a(37580);let t=(()=>{class n{constructor(){this.passwordStrength=new e.bkB,this.msg="",this.colors=["#B90024","#ED0026","#FDA22B ","#31B057"]}static checkStrength(s){let o=0;const l=[/[a-z]+/.test(s),/[A-Z]+/.test(s),/\d+/.test(s),/[$-/:-?{-~!"^_@`[\]]/g.test(s)];let u=0;for(const h of l)u+=!0===h?1:0;return o+=2*s.length+(s.length>=10?1:0),o+=10*u,o=s.length<6?Math.min(o,10):o,o=s.length>=6&&s.length<8?Math.min(o,30):o,o=1===u?Math.min(o,10):o,o=2===u?Math.min(o,20):o,o=3===u?Math.min(o,30):o,o=4===u?Math.min(o,40):o,o}ngOnChanges(s){const o=s.passwordToCheck.currentValue;if(this.setBarColors(4,"#DDD"),o){const d=this.getColor(n.checkStrength(o));switch(this.setBarColors(d.idx,d.col),40===n.checkStrength(o)?this.passwordStrength.emit(!0):this.passwordStrength.emit(!1),d.idx){case 1:this.msg="Unsafe";break;case 2:this.msg="Risky";break;case 3:this.msg="Good";break;case 4:this.msg="Better"}}else this.msg=""}getColor(s){let o=0;return o=s<=20?1:s<=30?2:s<=40?3:4,{idx:o+1,col:this.colors[o]}}setBarColors(s,o){for(let d=0;d<s;d++)this["bar"+d]=o}static{this.\u0275fac=function(o){return new(o||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-pass-strength"]],inputs:{passwordToCheck:"passwordToCheck"},outputs:{passwordStrength:"passwordStrength"},features:[e.OA$],decls:8,vars:9,consts:[[1,"pass-strength"],[1,"flex","line-pass"],[1,"point","w-20p","md:w-1/4"],[1,"w-10p","font-popregular","text-f-10","text-right","text-ui-blue-90","mr-2","md:mr-0"]],template:function(o,d){1&o&&(e.j41(0,"div",0)(1,"ul",1),e.nrm(2,"li",2)(3,"li",2)(4,"li",2)(5,"li",2),e.k0s(),e.j41(6,"span",3),e.
1EFF(7),e.k0s()()),2&o&&(e.R7$(2),e.xc7("background-color",d.bar0),e.R7$(1),e.xc7("background-color",d.bar1),e.R7$(1),e.xc7("background-color",d.bar2),e.R7$(1),e.xc7("background-color",d.bar3),e.R7$(2),e.JRh(d.msg))},styles:[".point[_ngcontent-%COMP%]:last-of-type{margin:0!important}.point[_ngcontent-%COMP%]{background:#DDD;border-radius:2px;height:5px;margin-right:1px}@media screen and (max-width: 425px){.point[_ngcontent-%COMP%]{margin-right:4px}}.line-pass[_ngcontent-%COMP%]{width:100%}.pass-strength[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center;justify-content:space-between;padding-top:7px;padding-bottom:7px}"]})}}return n})()},93188:(M,m,a)=>{a.d(m,{P:()=>b});var e=a(12587),t=a(37580),n=a(80272),r=a(60316);function s(i,g){if(1&i&&(t.j41(0,"div",8)(1,"span"),t.EFF(2),t.k0s()()),2&i){const l=t.XpG();t.R7$(2),t.JRh(l.data.desc)}}function o(i,g){if(1&i){const l=t.RV6();t.qex(0),t.j41(1,"button",9),t.bIt("click",function(){t.eBV(l);const h=t.XpG();return t.Njj(h.closeModal("summary"))}),t.EFF(2," Continue to Survey Summary "),t.k0s(),t.j41(3,"button",10),t.bIt("click",function(){t.eBV(l);const h=t.XpG();return t.Njj(h.closeModal())}),t.EFF(4," Close pop up "),t.k0s(),t.bVm()}}function d(i,g){if(1&i){const l=t.RV6();t.qex(0),t.j41(1,"button",11),t.bIt("click",function(){t.eBV(l);const h=t.XpG();return t.Njj(h.closeModal())}),t.EFF(2," Close "),t.k0s(),t.bVm()}}function f(i,g){if(1&i){const l=t.RV6();t.qex(0),t.j41(1,"button",11),t.bIt("click",function(){t.eBV(l);const h=t.XpG();return t.Njj(h.closeModal())}),t.EFF(2),t.k0s(),t.bVm()}if(2&i){const l=t.XpG();t.R7$(2),t.JRh(l.data.button)}}let b=(()=>{class i{constructor(l={url:"",desc:"",status:"",button:"",isFromTgt:!1,title:"",isSufficient:!1,surveyId:""},u,h){this.data=l,this.dialogRef=u,this.router=h}closeModal(l="default"){this.data.isFromTgt=!1,this.data.button="Close","default"===l?this.dialogRef.close():(this.dialogRef.close(),localStorage.removeItem(btoa("PATH_TOPUP")),this.router.navigate(["/survey/preview-submit/",this.data.surveyId]))}static{this.\u0275fac=function(u){return new(u||i)(t.rXU(e.Vh),t.rXU(e.CP),t.rXU(n.Ix))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-modal-confirmation-promo"]],decls:12,vars:6,consts:[[1,"wrapper-confirmation-promo"],[1,"image-confirm"],["alt","icon",3,"src"],[1,"body"],[1,"title"],["class","description",4,"ngIf"],[1,"wrapper-button"],[4,"ngIf"],[1,"description"],[1,"btn-brand-800","button-continue","btn-full",3,"click"],[1,"btn-tertiary-pink-90","btn-full",3,"click"],[1,"btn-brand-800",3,"click"]],template:function(u,h){1&u&&(t.j41(0,"div",0)(1,"div",1),t.nrm(2,"img",2),t.k0s(),t.j41(3,"div",3)(4,"div",4)(5,"span"),t.EFF(6),t.k0s()(),t.DNE(7,s,3,1,"div",5),t.k0s(),t.j41(8,"div",6),t.DNE(9,o,5,0,"ng-container",7),t.DNE(10,d,3,0,"ng-container",7),t.DNE(11,f,3,1,"ng-container",7),t.k0s()()),2&u&&(t.R7$(2),t.Y8G("src",h.data.url,t.B4B),t.R7$(4),t.JRh(h.data.title),t.R7$(1),t.Y8G("ngIf","success"===h.data.status),t.R7$(2),t.Y8G("ngIf",h.data.isFromTgt&&h.data.isSufficient),t.R7$(1),t.Y8G("ngIf",h.data.isFromTgt&&!h.data.isSufficient),t.R7$(1),t.Y8G("ngIf",!h.data.isFromTgt))},dependencies:[r.bT],styles:[".wrapper-confirmation-promo[_ngcontent-%COMP%]{text-align:center}.wrapper-confirmation-promo[_ngcontent-%COMP%] .image-confirm[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin:auto}.wrapper-confirmation-promo[_ngcontent-%COMP%] .body[_ngcontent-%COMP%]{margin-top:24px;margin-bottom:24px}.wrapper-confirmation-promo[_ngcontent-%COMP%] .body[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-family:telkomselbatikbold,Arial,sans-serif;font-size:20px;--tw-text-opacity: 1;color:rgba(0,26,65,var(--tw-text-opacity));line-height:24px}.wrapper-confirmation-promo[_ngcontent-%COMP%] .body[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{margin-top:8px;font-family:poppinsregular,Arial,sans-serif;font-size:14px;--tw-text-opacity: 1;color:rgba(113,130,144,var(--tw-text-opacity));line-height:20px}.wrapper-confirmation-promo[_ngcontent-%COMP%] .wrapper-button[_ngcontent-%COMP%] .button-continue[_ngcontent-%COMP%]{margin-bottom:16px}.wrapper-confirmation-promo[_ngcontent-%COMP%] .wrapper-button[_ngcontent-%COMP%] .btn-brand-800[_ngcontent-%COMP%]{font-size:14px;line-height:20px}.wrapper-confirmation-promo[_ngcontent-%COMP%] .wrapper-button[_ngcontent-%COMP%] .btn-full[_ngcontent-%COMP%]{width:100%} .success-redeem .mat-dialog-container{width:499px;border-radius:12px;padding:24px 32px 32px}"]})}}return i})()},7047:(M,m,a)=>{a.d(m,{U:()=>b});var e=a(60316),t=a(61977),n=a(85060),r=a(95541),s=a(34456),o=a(84175),d=a(93840),f=a(37580);let b=(()=>
1{class i{static{this.\u0275fac=function(u){return new(u||i)}}static{this.\u0275mod=f.$C({type:i})}static{this.\u0275inj=f.G2t({imports:[e.MD,t.X6,n.WX,r.fS,s.YN,o.Hl,d.m_,n.yE]})}}return i})()},82347:(M,m,a)=>{a.d(m,{Yq:()=>d});var e=a(37580),t=a(60316);const s=new e.nKC("ngx-skeleton-loader.config");let d=(()=>{class f{static forRoot(i){return{ngModule:f,providers:[{provide:s,useValue:i}]}}}return f.\u0275fac=function(i){return new(i||f)},f.\u0275mod=e.$C({type:f}),f.\u0275inj=e.G2t({imports:[[t.MD]]}),f})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.