PageSourceSearch

https://webapp.locumsnest.co.uk/chunk-CKHWVXKZ.js

js locumsnest.co.uk collected 2026-09-24 13:23:24 UTC 71,479 bytes, 12 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="464f4386-5591-5bd2-8ed7-89020b83acfc")}catch(e){}}();
3import{A as ki,B as Bi,C as Ni,D as Et,E as Ri,F as rt,I as at,R as Qi,S as $i,T as Hi,e as he,f as ie,g as ot,h as wt,p as bt,s as Ae,u as Ie,v as Ft,w as Ii,x as ne,y as qe,z as qi}from"./chunk-VNP35DG3.js";import{a as nt}from"./chunk-EKAKPK6X.js";import{aa as Ai}from"./chunk-U5AHNUHR.js";import"./chunk-QHGT6JSA.js";import"./chunk-UOVXR6OV.js";import"./chunk-G5WB7WQP.js";import"./chunk-LQSLEESQ.js";import"./chunk-RGXL5H37.js";import"./chunk-EDUE5J4G.js";import{d as Ke}from"./chunk-UXYLVI2D.js";import{Xa as li}from"./chunk-H4SXPEOK.js";import"./chunk-IKQWH34K.js";import"./chunk-7HV7WTQF.js";import"./chunk-OY36DKIB.js";import{Ma as St}from"./chunk-2BTFWAIA.js";import"./chunk-K6HMTK43.js";import"./chunk-QFSJPEDM.js";import"./chunk-FHE5G2OE.js";import"./chunk-HPPQBT5B.js";import"./chunk-P65PMBQT.js";import"./chunk-6JZWJYXN.js";import"./chunk-PIBND2IJ.js";import"./chunk-4S7NDWY2.js";import"./chunk-GHXQTOIN.js";import"./chunk-GFK76P27.js";import"./chunk-HH3QPTMU.js";import"./chunk-JTPZLO5J.js";import"./chunk-GHPIRZWZ.js";import"./chunk-KZJFGSKG.js";import"./chunk-ZYLANOZS.js";import{b as Di}from"./chunk-4BODZ46N.js";import"./chunk-PXRMVTCN.js";import"./chunk-GRMCJK2A.js";import"./chunk-QGNSEFGL.js";import"./chunk-BUWJTNQR.js";import"./chunk-4QT4MIK5.js";import"./chunk-F2SOGB3T.js";import{a as it}from"./chunk-BDYG3DJ6.js";import{c as pi}from"./chunk-4YKGGESD.js";import{a as Ti}from"./chunk-IVEMAF4Z.js";import"./chunk-BBJSZAQK.js";import"./chunk-BUO7R6SF.js";import{c as Ze}from"./chunk-O7YTRKVT.js";import"./chunk-F4DZW4NO.js";import"./chunk-2V5VYUBK.js";import{E as Fi,Fa as Mi,G as Ei,Ga as Oi,T as Pi,f as yi,i as Si,m as wi,n as bi,t as et,u as tt}from"./chunk-4JB3BEBN.js";import"./chunk-IDSCCWVZ.js";import"./chunk-L7ESRE2D.js";import{j as ci,p as Je}from"./chunk-C7MEKYFQ.js";import"./chunk-UUMLLUK3.js";import{x as xi}from"./chunk-R2KOY2IN.js";import{k as di,n as vi}from"./chunk-RAWMY74N.js";import"./chunk-HWF6DVM3.js";import"./chunk-GDFFEKO3.js";import"./chunk-2TRIL7VW.js";import{e as fi,f as ye}from"./chunk-IHRGVLUJ.js";import"./chunk-KCBAUEX5.js";import"./chunk-V4R6S33I.js";import{a as gi,b as _i}from"./chunk-A6RCELYY.js";import"./chunk-LCL4EAYL.js";import"./chunk-AQ565TRU.js";import"./chunk-ZEQBFS6U.js";import{i as Z,j as hi,k as Ci}from"./chunk-P6MGTAW2.js";import"./chunk-7AFHDJKX.js";import{$ as q,Db as Xe,Gb as si,Na as Ct,R as ni,ba as _e,ca as xe,f as M,g as Ge,i as Ue,la as oi,ma as yt,na as ht,oa as ri,r as ii,wb as ai}from"./chunk-PVACG66O.js";import{Aa as gt,B as De,Ca as _t,Fa as jt,Gb as fe,Ha as je,Ia as z,J as Rt,Ja as Wt,Jb as xt,K as Qt,Kb as O,L as $t,La as I,Lb as Jt,Lc as ti,Mc as Ye,N as Ht,Nc as ge,O as zt,X as Vt,bb as Yt,cb as de,db as Xt,eb as ve,fb as Kt,ja as me,ka as Lt,na as Gt,qa as Le,qc as Zt,rc as ei,sa as Ut,sb as We,tc as N,vc as G,wa as vt,xa as ft,y as H,ya as C}from"./chunk-IIAIH3UC.js";import{a as mi}from"./chunk-WNXKPIU3.js";import"./chunk-RBJY2NUG.js";import"./chunk-YT5X2SZX.js";import{c as ui}from"./chunk-MDWIGIH7.js";import"./chunk-RY7FY3PY.js";import"./chunk-YPUGFOOX.js";import{b as Ve}from"./chunk-P3V7UETH.js";import{ha as Bt,wa as Nt}from"./chunk-HOBNNBVB.js";import{$b as $,A as He,Bc as g,C as E,Ea as W,Eb as dt,Ec as V,Fa as Y,Fc as L,Gc as m,Hc as a,Ic as o,Ja as _,Jc as v,Kb as r,Kd as It,L as T,Nc as D,Oc as A,Qa as w,R as ze,Ra as b,Sc as B,Ud as p,Vd as u,Wd as Te,Ya as pe,Zd as qt,ac as X,cd as F,ce as kt,ec as K,ed as c,fc as J,gb as Q,p as $e,q as Dt,td as l,u as x,va as mt,vd as y,wd as At,yc as ue,zc as f}from"./chunk-AYOULU4V.js";import{a as te,b as Qe}from"./chunk-5E27SKBB.js";var zi=_e.forFeature("SurveySearchFilterForm"),oe=xe.forFeature("SurveySearchFilterForm"),ke=Xe(oe,zi),{errorHandler:Uo,conditionalErrorHandler:jo,alertHandler:Wo}=ke.getAlertHandlers(),{ResetErrorMessage:Yo,AlertErrorMessage:Xo}=ke.getMessages(),{alertSignalToMessage:Ko}=ke.getEffectOperators(),xn=it(oe,zi),{ToggleExpandableSignal:Jo,SetExpandExpandableSignal:Zo}=xn.getSignals();var{ResetErrorSignal:ir}=ke.getSignals(),Be=class extends oe.create("Initialize Survey Search Filter Form"){},Vi=class extends oe.create("Submit Survey Search Filter Form Signal"){},Li=class extends oe.create("Update Survey Sorted Field Signal"){},Gi=class extends oe.create("Load More Survey Signal"){};var Ui=(()=>{class t extends ni{constructor(){super(...arguments),this.endpoint="questionResponse"}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=Q(t)))(n||t)}})()}static{this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();
3var Ne=_e.forFeature("SurveyForm"),P=xe.forFeature("SurveyForm"),U=Xe(P,Ne),{errorHandler:pr,conditionalErrorHandler:ur,alertHandler:mr}=U.getAlertHandlers(),{ResetErrorMessage:dr,AlertErrorMessage:vr}=U.getMessages(),{alertSignalToMessage:ji}=U.getEffectOperators(),yn=it(P,Ne),{ToggleExpandableSignal:fr,SetExpandExpandableSignal:gr}=yn.getSignals();var{ResetErrorMessage:yr,AlertErrorMessage:hr}=U.getMessages();var j=class extends Ne.create("Initialize Survey Form"){},Ce=class extends Ne.create("Reorder Question Message"){};var ee=()=>null,hn=ht("expiration date"),Cn=ht("effective date"),Wi=(t,s)=>t.value.published?O(t.value.expirationDate)?N:xt(s)&&t.userDefinedProperties.initialExpirationDate<G.getDate()?yt||ee:isNaN(Date.parse(t.value.expirationDate))?()=>({invalidDate:!0}):hn:ee,Yi=(t,s)=>t.value.published?O(t.value.effectiveDate)?N:xt(s)&&t.userDefinedProperties.initialEffectiveDate<G.getDate()?yt||ee:isNaN(Date.parse(t.value.effectiveDate))?()=>({invalidDate:!0}):Cn:ee,Xi=t=>(t.controls.category.value===qe("MULTIPLE-CHOICE").id||t.controls.category.value===qe("SINGLE-CHOICE").id)&&t.controls.options.controls.length<2?oi(2,"options"):ee,Ki=t=>(t.controls.category.value===qe("MULTIPLE-CHOICE").id||t.controls.category.value===qe("SINGLE-CHOICE").id)&&t.controls.options.value.some(s=>fe(s.answer))?N:ee,Ji=t=>t.value.approvalStatus===he.FLAGGED.id&&fe(t.value.flaggedReason)?N:ee,Zi=t=>()=>(t.value.category===Ft.MULTIPLE.id||t.value.category===Ft.SINGLE.id)&&(O(t.value.maximumNumberOfChoices)||!ti(t.value.maximumNumberOfChoices)||t.value.maximumNumberOfChoices<1||t.value.maximumNumberOfChoices>t.value.options.length)?{invalidRange:{verboseName:"maximum number of choices",min:"1",max:"the total number of options"}}:null,en=(t,s)=>O(t.value.order)||!t.value.order.toString().length?N:t.value.order<1||t.value.order>s.controls.length?()=>({lessThan:{comparand:s.controls.length+1,actual:t.value.order}}):s.value.map(i=>i.order).filter(i=>i===t.value.order).length>1?()=>({duplicateArrayValue:!0}):()=>({}),tn=t=>()=>t.value.comments==="<p></p>"||fe(t.value.comments)?{required:{actual:!0}}:ee;var h="SURVEY_FORM",lt=`${h}.survey.postScheduler`,nn={id:null,answer:"",nextQuestion:null},Pt={id:null,description:"",order:1,skip:!1,category:1,options:[{id:null,answer:"",nextQuestion:null},{id:null,answer:"",nextQuestion:null}],maximumNumberOfChoices:1},st=_t(h,{survey:{surveyCreation:{id:null,title:"",comments:"<p></p>"},postScheduler:{specialties:gt([]),grades:gt([]),effectiveDate:null,expirationDate:null,published:!0,importance:null,reserveColor:!1,removeFromShortcutsAfterExpiry:!1,approvalStatus:0,flaggedReason:null,notifyUsers:!1,attachmentTypeSelected:0,promoSelected:null,reorder:!1},conclusion:{finalTitle:"Thank you!",closingStatement:"<p>Thank you for helping with our survey, your answers are collected anonymously!</p>"}},questions:[Pt]}),Sn=t=>z({description:I([N,ei(10),Zt(700)]),maximumNumberOfChoices:(s,e)=>I([Zi(e)])(s),options:(s,e)=>(s=I([Xi(e)])(s),s=je(z({answer:I([Ki(e),Ye(1),ge(300)])}))(s),s),order:(s,e)=>I([en(e,t.controls.questions)])(s)}),wn=z({title:I([N,Ye(10),ge(64)]),comments:(t,s)=>I([tn(s),Ye(10),ge(512)])(t)}),bn=z({finalTitle:I([N,ge(512)]),closingStatement:I([N,ge(4096)])}),Fn=t=>ri({from:{verboseName:"effective date/time",key:"effectiveDate"},to:{verboseName:"Expiration date/time",key:"expirationDate"}},z({effectiveDate:(s,e)=>I([Yi(e,t)])(s),expirationDate:(s,e)=>I([Wi(e,t)])(s),flaggedReason:(s,e)=>I([Ji(e)])(s)})),En=t=>z({surveyCreation:wn,postScheduler:Fn(t.value.surveyCreation.id),conclusion:bn})(t),Pn=z({survey:En,questions:(t,s)=>je([Sn(s)])(t)}),Mn=jt([]),On=U.createReducer({});function Tn(t=st,s){switch(s.type){case j.TYPE:{let{payload:e}=s;t=_t(h,te(te({},We(st.value)),e.surveyFormState));break}case Ce.TYPE:{let e=0;t=z({questions:i=>je(n=>(e++,z({order:d=>Wt(e)(d)})(n)))(i)})(t);break}}return t=Mn(t,s),t=Pn(t),t}function on(t,s){let e=Tn(t,s),i=On(t?t.alertState:void 0,s);return Qe(te({},e),{alertState:i})}var{ResetErrorSignal:Hr}=U.getSignals(),Se=class extends P.create("Initialize Survey Form"){},re=class extends P.create("Show Question Section"){},ae=class extends P.create("Show Review Survey Section"){},se=class extends P.create("Show Concluding Message Section"){},le=class extends P.create("Show Schedule Section"){},we=class extends P.create("Add Option"){},be=class extends P.create("Remove Option"){},Fe=class extends P.create("Remove Question"){},Ee=class extends P.create("Add Question"){},Pe=class extends P.create("Submit Survey Form"){},Me=class extends P.create("DownloadResponses"){},Oe=class extends P.create("Mark As Dirty Form Signal"){};var rn=(()=>{class t extends Pi{constructor(){super(...arguments),this.actions$=_(Ge),this.store=_(me),this.professionService=_(Je),this.subSpecialtyService=_(ci),this.professionSpecialtyService=_(pi),this.gradeService=_(Ze),this.surveyService=_(rt),this.surveyPersistenceService=_(Ri),this.surveyQuestionResponsePersistenceService=_(Ui),this.router=_(H),this.routerService=_(ii),this.authGroupService=_(Ke),this.promoService=_(at),this.alertHandlerService=_(si),this.initializeSurveyFormSignal$=M(()=>this.actions$.pipe(q(Se),E(()=>T(this.subSpecialtyService.load(),this.professionService.load(),this.gradeService.load(),this.authGroupService.load(),this.professionSpecialtyService.load(),this.promoService.load(),this.routerService.getPathParam("id",!0,{url:/survey\/\w*$/}).pipe(E(e=>{if(e){let i=+e;return T(this.surveyPersistenceService.retrieve(i).pipe(E(n=>{let d=ki(n);return T(x(new j({surveyFormState:d})),x(new C(h+".survey","showQuestionSection",!1)),x(new C(h+".survey","selectedQuestion",0)),x(new C(lt,"initialEffectiveDate",d.survey.postScheduler.published?n.effectiveDate:null)),x(new C(lt,"initialExpirationDate",d.survey.postScheduler.published?n.expirationDate:null)),x(new C(lt,"initialApprovalStatus",d.survey.postScheduler.approvalStatus)))})))}return T(x(new j({surveyFormState:te({},We(st.value))})),x(new C(h+".survey","showQuestionSection",!1)),x(new C(h+".survey","selectedQuestion",-1)))})))))),this.showQuestionSectionSignal$=M(()=>this.actions$.pipe(q(re),E(e=>{let{payload:i}=e;return T(x(new C(h+".survey","showQuestionSection",i.show)),x(new C(h+".survey","showScheduleSection",!1)),x(new C(h+".survey","showConcludingMessageSection",!1)),x(new C(h+".survey","showReviewSurveySection",!1)))}))),this.showReviewSurveySectionSignal$=M(()=>this.actions$.pipe(q(ae),E(()=>T(x(new C(h+".survey","showScheduleSection",!1)),x(new C(h+".survey","showConcludingMessageSection",!1)),x(new C(h+".survey","showReviewSurveySection",!0)))))),this.showConcludingMessageSectionSignal$=M(()=>this.actions$.pipe(q(se),E(()=>T(x(new C(h+".survey","showReviewSurveySection",!1)),x(new C(h+".survey","showScheduleSection",!1)),x(new C(h+".survey","showConcludingMessageSection",!0)))))),this.showScheduleSectionSignal$=M(()=>this.actions$.pipe(q(le),E(()=>T(x(new C(h+".survey","showScheduleSection",!0)),x(new C(h+".survey","showConcludingMessageSection",!1)),x(new C(h+".survey","showReviewSurveySection",!1)))))),this.addOption$=M(()=>this.actions$.pipe(q(we),He(e=>new vt(e.payload.id,nn)))),this.removeOption$=M(()=>this.actions$.pipe(q(be),He(e=>new ft(...St(e.payload.id))))),this.removeQuestion$=M(()=>this.actions$.pipe(q(Fe),E(e=>T(x(new ft(...St(e.payload.id))),x(new Ce({})))))),this.downloadResponses$=M(()=>this.actions$.pipe(q(Me),E(e=>this.surveyQuestionResponsePersistenceService.downloadFile(e.payload.filters,{accept:e.payload.accept}).pipe(E(()=>x()),ze(this.alertHandlerService.handleError({errorEventMessageHandler:i=>`An error occurred while downloading results: ${i}`,errorDetailMessageHandler:i=>`Sorry! An error occurred while downloading results. The error was: ${i}`,unknownErrorMessage:"Sorry! Unable to load results. Please try again in a few minutes"})))))),this.addQuestion$=M(()=>this.actions$.pipe(q(Ee),Ct(()=>[this.surveyService.getQuestionsSortByOrderFormState(),this.surveyService.getQuestionsFormStateId()]),E(([e,i,n])=>T(x(new vt(n,Qe(te({},Pt),{order:i.length+1}))),x(new C(h+".survey","showQuestionSection",!0)))))),this.submitSurveyFormSignal$=M(()=>this.actions$.pipe(q(Pe),Ct(()=>this.store.pipe(Lt(Ni))),E(([e,i])=>{let{payload:n}=e,d=Bi(i);return O(d.id)?this.surveyPersistenceService.create(d).pipe(E(S=>T(this.alertHandlerService.handleAlert({message:"Survey submitted successfully!",type:"success"},this.actions$),x(new Et({entity:S})).pipe(mt(()=>{this.router.navigateByUrl("/community/dashboard")})),x(new j({})),x(new bt({show:!1})),x(new Be({namespace:n.namespace})))),ze(this.alertHandlerService.handleError({errorEventMessageHandler:S=>`An error occurred while submitting the survey: ${S}`,errorDetailMessageHandler:S=>`Sorry! Survey can\u2019t be submitted. The error was: ${S}`,unknownErrorMessage:"Oops. Campaign couldn't be saved. Please check your connection and try again"}))):this.surveyPersistenceService.update(d.id,d).pipe(E(S=>T(this.alertHandlerService.handleAlert({message:"Survey updated successfully!",type:"success"},this.actions$),x(new Et({entity:S})).pipe(mt(()=>{this.router.navigateByUrl("/community/dashboard")})),x(new j({})),x(new bt({show:!1})),x(new Be({namespace:n.namespace})))),ze(this.alertHandlerService.handleError({errorEventMessageHandler:S=>`An error occurred while updating the survey: ${S}`,errorDetailMessageHandler:S=>`Sorry! Survey can\u2019t be updated. The error was: ${S}`,unknownErrorMessage:"Oops. Campaign couldn't be saved. please check your connection and try again"})))}))),this.markAsDirtyFormSignal$=M(()=>this.actions$.pipe(q(Oe),He(()=>new Ut(h)))),this.alertSignal$=M(()=>this.actions$.pipe(ji))}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=Q(t)))(n||t)}})()}static{this.\u0275prov=W({token:t,factory:t.\u0275fac})}}return t})();var an=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=X({type:t})}
3static{this.\u0275inj=Y({imports:[Ue.forFeature([rn]),Le.forFeature("surveys.form",on)]})}}return t})();var An=_e.forFeature("Survey Wizard"),In=xe.forFeature("Survey Wizard"),Re=Ei(In,An),sn=Re.createReducer(),ln=Gt("surveys.wizard"),Ia=Re.getSelectors(ln),pt=class ct{constructor(){this.store=_(me)}static{this.\u0275fac=function(e){return new(e||ct)}}static{this.\u0275prov=W({token:ct,factory:ct.\u0275fac,providedIn:"root"})}};pt=$e([Re.wizardService(ln)],pt);var Mt=class ut{constructor(){this.actions$=_(Ge),this.initializeWizard()}static{this.\u0275fac=function(e){return new(e||ut)}}static{this.\u0275prov=W({token:ut,factory:ut.\u0275fac})}};Mt=$e([Re.wizardEffects,Dt("design:paramtypes",[])],Mt);var cn=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=X({type:t})}static{this.\u0275inj=Y({imports:[Ue.forFeature([Mt]),Le.forFeature("surveys.wizard",sn)]})}}return t})();function qn(t,s){t&1&&(a(0,"span"),l(1," Make your title short and descriptive. This helps your audience decide whether they want to participate in your survey "),o())}function kn(t,s){if(t&1&&l(0),t&2){let e=c(2);y(" ",e.surveyForm.value.surveyCreation.title," ")}}function Bn(t,s){t&1&&(a(0,"span")(1,"span",4),l(2," Keep your instructions clear and concise. Try to explain how responses will be used and how they will help. Reassurance of anonymity tends to boost the rate of responses "),o()())}function Nn(t,s){if(t&1&&(a(0,"div",3),v(1,"div",5),p(2,"replaceHeadersTags"),o()),t&2){let e=c(2);r(),m("innerHtml",u(2,1,e.surveyForm.value.surveyCreation.comments),dt)}}function Rn(t,s){if(t&1&&(a(0,"div")(1,"div",2),l(2,"Questionnaire title:"),o(),f(3,qn,2,0,"span")(4,kn,1,1),a(5,"div",2),l(6,"Start your questionnaire:"),o(),f(7,Bn,3,0,"span")(8,Nn,3,3,"div",3),o()),t&2){let e=c();r(3),g((e.surveyForm.value.surveyCreation.title==null?null:e.surveyForm.value.surveyCreation.title.length)===0?3:4),r(4),g(e.checkIfSurveyIsEmpty(e.surveyForm.value.surveyCreation.comments)?7:8)}}function Qn(t,s){if(t&1&&(a(0,"span"),l(1),p(2,"date"),o()),t&2){let e=c(3);r(),y(" ",Te(2,1,e.surveyForm.value.postScheduler.effectiveDate,"DD/MM/YYYY")," ")}}function $n(t,s){t&1&&l(0," 00/00/00 ")}function Hn(t,s){if(t&1&&(a(0,"span"),l(1),p(2,"date"),o()),t&2){let e=c(3);r(),y(" ",Te(2,1,e.surveyForm.value.postScheduler.effectiveDate,"HH:mm")," ")}}function zn(t,s){t&1&&l(0," 00:00 ")}function Vn(t,s){if(t&1&&(a(0,"span"),l(1),p(2,"date"),o()),t&2){let e=c(3);r(),y(" ",Te(2,1,e.surveyForm.value.postScheduler.expirationDate,"DD/MM/YYYY")," ")}}function Ln(t,s){t&1&&l(0," 00/00/00 ")}function Gn(t,s){if(t&1&&(a(0,"span"),l(1),p(2,"date"),o()),t&2){let e=c(3);r(),y(" ",Te(2,1,e.surveyForm.value.postScheduler.expirationDate,"HH:mm")," ")}}function Un(t,s){t&1&&l(0," 00:00 ")}function jn(t,s){if(t&1&&(a(0,"div")(1,"div",2),l(2,"Schedule post:"),o(),l(3," Effective date: "),f(4,Qn,3,4,"span")(5,$n,1,0),v(6,"br"),l(7,"Effective time: "),f(8,Hn,3,4,"span")(9,zn,1,0),v(10,"br")(11,"br"),l(12," Expiration date: "),f(13,Vn,3,4,"span")(14,Ln,1,0),v(15,"br"),l(16,"Expiration time: "),f(17,Gn,3,4,"span")(18,Un,1,0),o()),t&2){let e=c(2);r(4),g(e.surveyForm.value.postScheduler.effectiveDate?4:5),r(4),g(e.surveyForm.value.postScheduler.effectiveDate?8:9),r(5),g(e.surveyForm.value.postScheduler.expirationDate?13:14),r(4),g(e.surveyForm.value.postScheduler.expirationDate?17:18)}}function Wn(t,s){if(t&1&&(a(0,"div")(1,"div",2),l(2,"Reserve colour:"),o(),l(3),o()),t&2){let e=c(2);r(3),y(" ",e.surveyForm.value.postScheduler.reserveColor?"On":"Off"," ")}}function Yn(t,s){if(t&1&&(a(0,"div")(1,"div",2),l(2,"Admin only"),o(),a(3,"div",2),l(4,"Remove from shortcuts when it expires:"),o(),l(5),o()),t&2){let e=c(2);r(5),y(" ",e.surveyForm.value.postScheduler.removeFromShortcutsAfterExpiry?"On":"Off"," ")}}function Xn(t,s){if(t&1&&(a(0,"div")(1,"div",2),l(2,"Flagged Reason:"),o(),l(3),o()),t&2){let e=c(2);r(3),y(" ",e.surveyForm.value.postScheduler.flaggedReason," ")}}function Kn(t,s){t&1&&(a(0,"div",6),v(1,"locumsnest-help-text",7),o()),t&2&&(r(),m("helpText","Will return to under review when submitted"))}function Jn(t,s){if(t&1&&(a(0,"div")(1,"div",2),l(2,"Importance:"),o(),l(3),f(4,jn,19,4,"div"),v(5,"br")(6,"br"),f(7,Wn,4,1,"div"),f(8,Yn,6,1,"div"),v(9,"br"),a(10,"div",2),l(11,"Current status:"),o(),l(12),a(13,"div",2),l(14,"Review mode:"),o(),l(15),f(16,Xn,4,1,"div"),f(17,Kn,2,1,"div",6),o()),t&2){let e=c();r(3),y(" ",e.getImportanceTitle(e.surveyForm.value.postScheduler.importance)," "),r(),g(e.surveyForm.value.postScheduler.published?4:-1),r(3),g(e.hasReserveColourPermission?7:-1),r(),g(e.hasCommunityAdminPermission?8:-1),r(4),y(" ",e.getCurrentStatus(e.surveyForm.value)," "),r(3),y(" ",e.getReviewModeTitle(e.surveyForm.value.postScheduler.approvalStatus)," "),r(),g((e.surveyForm==null?null:e.surveyForm.value.postScheduler.approvalStatus)===e.approvalStatusList.FLAGGED.id&&e.surveyForm.value.postScheduler.flaggedReason!==null?16:-1),r(),g(e.hasCommunityAdminPermission===!1&&((e.surveyForm==null?null:e.surveyForm.value.postScheduler.approvalStatus)===e.approvalStatusList.APPROVED.id||(e.surveyForm==null?null:e.surveyForm.value.postScheduler.approvalStatus)===e.approvalStatusList.FLAGGED.id)?17:-1)}}function Zn(t,s){if(t&1&&(a(0,"div")(1,"div",2),l(2,"Final title:"),o(),l(3),a(4,"div",2),l(5,"Your closing statement:"),o(),a(6,"div",3),v(7,"div",5),p(8,"replaceHeadersTags"),o()()),t&2){let e=c();r(3),y(" ",e.surveyForm.value.conclusion.finalTitle," "),r(4),m("innerHtml",u(8,2,e.surveyForm.value.conclusion.closingStatement),dt)}}function eo(t,s){if(t&1&&l(0),t&2){let e=c();y(" ",e.surveyForm.value.surveyCreation.subtitle,`
4`)}}var pn=(()=>
4{class t{constructor(){this.surveyScheduler=!1,this.conclusion=!1,this.approvalStatusList=he}getReviewModeTitle(e){return wt(e,ie.ApprovalStatus)}getImportanceTitle(e){return wt(e,ie.Importance)}getCurrentStatus(e){let i=G.getDate(),n=G.getDate(e.postScheduler.effectiveDate),d=G.getDate(e.postScheduler.expirationDate);return!e.postScheduler.published||Jt(e.surveyCreation.id)?Ie("unpublished",Ae.PromoStatus).display:n>i?Ie("not-started",Ae.PromoStatus).display:i>=n&&i<=d?Ie("in-progress",Ae.PromoStatus).display:Ie("expired",Ae.PromoStatus).display}checkIfSurveyIsEmpty(e){return e==="<p></p>"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=$({type:t,selectors:[["locumsnest-survey-preview"]],inputs:{surveyForm:"surveyForm",surveyScheduler:"surveyScheduler",conclusion:"conclusion",hasCommunityAdminPermission:"hasCommunityAdminPermission",hasReserveColourPermission:"hasReserveColourPermission"},standalone:!1,decls:6,vars:3,consts:[["subtitleTemplate",""],[1,"preview"],[1,"preview--title"],[1,"scroller"],[1,"empty-survey"],[1,"comments",3,"innerHtml"],[1,"help-text"],[3,"helpText"]],template:function(i,n){i&1&&(a(0,"div",1),f(1,Rn,9,2,"div"),f(2,Jn,18,8,"div"),f(3,Zn,9,4,"div"),o(),J(4,eo,1,1,"ng-template",null,0,qt)),i&2&&(r(),g(n.conclusion?-1:1),r(),g(n.surveyScheduler?2:-1),r(),g(n.conclusion?3:-1))},dependencies:[gi,mi,di],styles:[`.preview[_ngcontent-%COMP%]{font-family:Proxima Nova,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;font-stretch:normal;font-style:normal;line-height:1.4;letter-spacing:normal;color:#192b4c}.preview--title[_ngcontent-%COMP%]{font-family:Proxima Nova,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;margin-top:8px;margin-bottom:5px}.survey[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:10;-webkit-box-orient:vertical}.help-text[_ngcontent-%COMP%]{margin-top:10px}.scroller[_ngcontent-%COMP%]{max-height:200px;overflow-y:scroll;overflow-x:hidden;-ms-overflow-style:-ms-autohiding-scrollbar}.scroller[_ngcontent-%COMP%]::-webkit-scrollbar{width:6px}.scroller[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#192b4c}
5/*# sourceMappingURL=survey-preview.component-AD2YVW7P.css.map */`]})}}return t})();var ce=(function(t){return t.multipleChoice="MULTIPLE-CHOICE",t.singleBestChoice="SINGLE-CHOICE",t.freeText="FREE-TEXT",t.netPromoterScores="RATE-SCORING",t})(ce||{});function io(t,s){if(t&1&&(a(0,"div",2)(1,"div",3),l(2),o(),v(3,"div",4),a(4,"div",5),v(5,"locumsnest-input-field",6),o(),v(6,"div",7),a(7,"small",8),l(8),o()()),t&2){let e=s.$implicit,i=c();r(2),y(" ",e.value.description," "),r(3),m("hasBorder",!0)("disabled",i.formDisabled)("type","number")("step",1)("min",1)("max",i.questionForm.length)("ngrxFormControlState",e.controls.order),r(3),y(" ",i.getErrorMsg(e.controls.order)," ")}}var dn=(()=>{class t extends Z{constructor(){super(...arguments),this.router=_(H),this.removeOptionButtonClicked=new pe,this.removeQuestionButtonClicked=new pe,this.questionTreeArray=[],this.questionTypeEnum=ce}getQuestionCode(e){return O(e)?"":ne(e).code}trackById(e,i){return i.value.id}trackByOptionId(e,i){return i.value.id}onAddQuestionTree(e){let i=this.questionTreeArray.indexOf(e);i!==-1?this.questionTreeArray.splice(i,1):this.questionTreeArray.push(e)}isQuestionTreeOpen(e){return this.questionTreeArray.indexOf(e)!==-1}getOptions(e){return this.questionForm.filter(i=>i.value.id>e)}getNextQuestionOptions(e){return this.nextQuestionOptions.filter(i=>i.id>e)}onRemoveOptionButtonClicked(e){this.removeOptionButtonClicked.emit(e)}onRemoveQuestionButtonClicked(e){this.removeQuestionButtonClicked.emit(e)}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=Q(t)))(n||t)}})()}static{this.\u0275cmp=$({type:t,selectors:[["locumsnest-survey-question-editor"]],inputs:{questionForm:"questionForm",formDisabled:"formDisabled",nextQuestionOptions:"nextQuestionOptions"},outputs:{removeOptionButtonClicked:"removeOptionButtonClicked",removeQuestionButtonClicked:"removeQuestionButtonClicked"},standalone:!1,features:[K],decls:5,vars:0,consts:[[1,"header"],[1,"scroller"],[1,"question","row"],[1,"title","col-sm-6"],[1,"question-tree","col-sm-3"],[1,"col-sm-2"],[3,"hasBorder","disabled","type","step","min","max","ngrxFormControlState"],[1,"col-sm-1"],[1,"text-danger","question-error"]],template:function(i,n){i&1&&(a(0,"div",0),l(1,"Order"),o(),a(2,"div",1),V(3,io,9,9,"div",2,n.trackById,!0),o()),i&2&&(r(3),L(n.questionForm))},dependencies:[ye,de,ve],styles:[`.question[_ngcontent-%COMP%]{display:flex}.title[_ngcontent-%COMP%]{margin-top:13px}.question-tree[_ngcontent-%COMP%]{margin-top:7px;text-align:right}.hide-button[_ngcontent-%COMP%]{visibility:hidden}.question-tree-area[_ngcontent-%COMP%]{background-color:#96e3ec;border-top:solid 1px #2c426a;border-bottom:solid 1px #2c426a;margin-bottom:10px}.next-question[_ngcontent-%COMP%]{margin:15px;
5display:flex;align-items:center}.ellipsis[_ngcontent-%COMP%]{width:515px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.redirect-to[_ngcontent-%COMP%]{margin-left:20px;width:300px}.question-error[_ngcontent-%COMP%]{margin-left:15px;margin-top:-10px}.bin[_ngcontent-%COMP%]{background-image:url(/assets/icons/bin-blue.svg);background-repeat:no-repeat;background-size:cover;width:18px;height:21px;object-fit:contain;cursor:pointer;margin-left:10px;margin-top:3px}.question-bin[_ngcontent-%COMP%]{background-image:url(/assets/icons/bin-blue.svg);background-repeat:no-repeat;background-size:cover;width:16px;height:22px;object-fit:contain;cursor:pointer;margin-top:7px}.header[_ngcontent-%COMP%]{font-family:Proxima Nova,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;margin-left:595px}.scroller[_ngcontent-%COMP%]{margin-top:15px;height:270px;overflow-y:scroll;overflow-x:hidden;-ms-overflow-style:-ms-autohiding-scrollbar}.scroller[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px}
6/*# sourceMappingURL=survey-question-editor.component-2WHAQGQ3.css.map */`]})}}return t})();function oo(t,s){t&1&&(a(0,"span"),l(1," Keep question wording short and simple. Avoid asking two questions at once "),o())}function ro(t,s){if(t&1&&l(0),t&2){let e=c();y(" ",e.questionTitle," ")}}function ao(t,s){t&1&&(a(0,"div")(1,"div",5)(2,"div",6),l(3,"Option 1"),o()(),a(4,"div",5)(5,"div",6),l(6,"Option 2"),o()(),a(7,"div",5)(8,"div",6),l(9,"Option 3"),o()()())}function so(t,s){t&1&&(a(0,"div",3),v(1,"div",7)(2,"div",8)(3,"div",9)(4,"div",10)(5,"div",11),o())}function lo(t,s){t&1&&(a(0,"div",4),l(1,"Mandatory question"),o())}function co(t,s){t&1&&(a(0,"div",4),l(1,"Non-Mandatory question"),o())}var vn=(()=>{class t extends Z{constructor(){super(...arguments),this.router=_(H),this.questionTypes=ce}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=Q(t)))(n||t)}})()}static{this.\u0275cmp=$({type:t,selectors:[["locumsnest-survey-question-preview"]],inputs:{questionTitle:"questionTitle",questionType:"questionType",canSkip:"canSkip"},standalone:!1,features:[K],decls:13,vars:6,consts:[[1,"preview"],[1,"preview--title"],[1,"question-area"],[1,"net-promoter-scores"],[1,"mandatory"],[1,"option"],[1,"option--text"],[1,"angry"],[1,"unwell"],[1,"flat"],[1,"smile"],[1,"smiley"]],template:function(i,n){i&1&&(a(0,"div",0)(1,"div",1),l(2,"Chosen question type:"),o(),l(3),a(4,"div",1),l(5,"Your question:"),o(),f(6,oo,2,0,"span")(7,ro,1,1),o(),a(8,"div",2),f(9,ao,10,0,"div"),f(10,so,6,0,"div",3),o(),f(11,lo,2,0,"div",4),f(12,co,2,0,"div",4)),i&2&&(r(3),y(" ",n.questionType.name," "),r(3),g(n.questionTitle.length===0?6:7),r(3),g(n.questionType.code===n.questionTypes.multipleChoice||n.questionType.code===n.questionTypes.singleBestChoice?9:-1),r(),g(n.questionType.code===n.questionTypes.netPromoterScores?10:-1),r(),g(n.canSkip?-1:11),r(),g(n.canSkip?12:-1))},styles:[`.preview[_ngcontent-%COMP%]{font-family:Proxima Nova,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;font-stretch:normal;font-style:normal;line-height:1.4;letter-spacing:normal;color:#192b4c}.preview--title[_ngcontent-%COMP%]{font-family:Proxima Nova,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;margin-top:8px;margin-bottom:5px}.survey[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:10;-webkit-box-orient:vertical}.question-area[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:10px}.net-promoter-scores[_ngcontent-%COMP%]{display:flex;margin-left:30px}.net-promoter-scores[_ngcontent-%COMP%]   .angry[_ngcontent-%COMP%]{background-image:url(/assets/icons/community/angry.svg);background-repeat:no-repeat;background-size:cover;width:28px;height:28px;object-fit:contain;opacity:.7;margin-right:7px}.net-promoter-scores[_ngcontent-%COMP%]   .unwell[_ngcontent-%COMP%]{background-image:url(/assets/icons/community/unwell.svg);background-repeat:no-repeat;background-size:cover;width:28px;height:28px;object-fit:contain;opacity:.7;margin-right:7px}.net-promoter-scores[_ngcontent-%COMP%]   .flat[_ngcontent-%COMP%]{background-image:url(/assets/icons/community/flat.svg);background-repeat:no-repeat;background-size:cover;width:29px;
6height:28px;object-fit:contain;opacity:.7;margin-right:7px}.net-promoter-scores[_ngcontent-%COMP%]   .smile[_ngcontent-%COMP%]{background-image:url(/assets/icons/community/smile.svg);background-repeat:no-repeat;background-size:cover;width:29px;height:28px;object-fit:contain;opacity:.7;margin-right:7px}.net-promoter-scores[_ngcontent-%COMP%]   .smiley[_ngcontent-%COMP%]{background-image:url(/assets/icons/community/smiley.svg);background-repeat:no-repeat;background-size:cover;width:29px;height:28px;object-fit:contain;opacity:.7}.mandatory[_ngcontent-%COMP%]{font-style:italic}
7/*# sourceMappingURL=survey-question-preview.component-QYTHNXEQ.css.map */`]})}}return t})();function vo(t,s){if(t&1&&(a(0,"locumsnest-button-group-radio-button",7),v(1,"div",16),o()),t&2){let e=s.$implicit,i=c();m("id",e.id)("name",e.name)("disabled",i.formDisabled)}}function fo(t,s){if(t&1&&(a(0,"div",17)(1,"div",23),l(2,"*Maximum number of choices"),o(),v(3,"locumsnest-input-field",24),o()),t&2){let e=c(2);r(3),m("name","choices")("disabled",e.formDisabled)("hasBorder",!0)("ngrxFormControlState",e.questionForm==null?null:e.questionForm.controls.maximumNumberOfChoices)}}function go(t,s){if(t&1&&(a(0,"locumsnest-form-group-list-item",22)(1,"div",25),v(2,"locumsnest-input-field",26),o()()),t&2){let e=s.$implicit,i=s.$index,n=c(2);m("id",e.id),r(2),m("placeholder","*Option "+(i+1))("disabled",n.formDisabled)("hasBorder",!0)("errorMsg",n.getErrorMsg(e.controls.answer))("ngrxFormControlState",e.controls.answer)}}function _o(t,s){if(t&1){let e=B();a(0,"div",11),f(1,fo,4,4,"div",17),a(2,"div",18)(3,"small",19),l(4),o()(),a(5,"div",20)(6,"locumsnest-form-group-list",21),F("add",function(n){w(e);let d=c();return b(d.onAddOption(n))})("remove",function(n){w(e);let d=c();return b(d.onRemoveOption(n))}),V(7,go,3,6,"locumsnest-form-group-list-item",22,ue().trackByFn,!0),o()()()}if(t&2){let e=c();r(),g(e.getQuestionCode(e.questionForm==null?null:e.questionForm.controls.category.value)===e.questionTypeEnum.multipleChoice?1:-1),r(3),y(" ",e.getErrorMsg(e.questionForm==null?null:e.questionForm.controls.maximumNumberOfChoices)," "),r(2),m("id",e.questionForm==null?null:e.questionForm.controls.options.id)("isDisabled",e.formDisabled)("showAddButton",!1)("showDeleteButton",!1)("showInline",!0),r(),L(e.questionForm==null?null:e.questionForm.controls.options.controls)}}function xo(t,s){if(t&1&&(a(0,"div",12)(1,"small",27),l(2),o()()),t&2){let e=c();r(2),y(" ",e.getErrorMsg(e.questionForm.controls.options)," ")}}var fn=(()=>{class t extends Z{constructor(){super(...arguments),this.router=_(H),this.addOptionButtonClicked=new pe,this.removeOptionButtonClicked=new pe,this.questionTypeEnum=ce}getQuestionType(e){return O(e)?"":ne(e)}getQuestionCode(e){return O(e)?"":ne(e).code}onAddOption(e){this.addOptionButtonClicked.emit(e)}onRemoveOption(e){this.removeOptionButtonClicked.emit(e)}trackByFn(e){return e}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=Q(t)))(n||t)}})()}static{this.\u0275cmp=$({type:t,selectors:[["locumsnest-survey-question"]],inputs:{questionForm:"questionForm",questionTypes:"questionTypes",totalQuestionNumber:"totalQuestionNumber",formDisabled:"formDisabled",expired:"expired"},outputs:{addOptionButtonClicked:"addOptionButtonClicked",removeOptionButtonClicked:"removeOptionButtonClicked"},standalone:!1,features:[K],decls:20,vars:17,consts:[[1,"survey-question-details"],[1,"survey-question-details--container"],[1,"row","row-title"],[1,"col-sm-11"],[1,"survey-question-details--container--sub-title"],[1,"question-options"],[3,"smaller","ngrxFormControlState"],[3,"id","name","disabled"],[1,"survey-question-details--container--details"],[3,"ngrxFormControlState","errorMsg","invertColors","isInvalid","disabled","placeholder","columnSize","cols","rowSize","rows"],[1,"question-body"],[1,"multiple-choice"],[1,"error-msg"],[2,"display","flex","align-items","center"],[1,"draft-box"],[3,"displayText","isDisabled","ngrxFormControlState"],[1,"option-icon"],[1,"maximum-choices"],[1,"max-num-choices-error"],[1,"text-error"],["infinite-scroll","",1,"choices","scroller"],[3,"add","remove","id","isDisabled","showAddButton","showDeleteButton","showInline"],[3,"id"],[1,"maximum-choices--title"],[1,"maximum-choices--field",3,"name","disabled","hasBorder","ngrxFormControlState"],[1,"option"],[3,"placeholder","disabled","hasBorder","errorMsg","ngrxFormControlState"],[1,"text-danger"]],template:function(i,n){i&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),l(5,"Choose question type"),o(),a(6,"div",5)(7,"locumsnest-radio-button-group",6),V(8,vo,2,3,"locumsnest-button-group-radio-button",7,n.trackById,!0),o()(),a(10,"div",8)(11,"div",4),l(12,"*Type your question"),o(),v(13,"locumsnest-text-area",9),a(14,"div",10),f(15,_o,9,7,"div",11),f(16,xo,3,1,"div",12),o(),a(17,"div",13)(18,"div",14),v(19,"locumsnest-check-box",15),o()()()()()()()),i&2&&(r(7),m("smaller",!0)("ngrxFormControlState",n.questionForm==null?null:n.questionForm.controls.category),r(),L(n.questionTypes),r(5),m("ngrxFormControlState",n.questionForm==null?null:n.questionForm.controls.description)("errorMsg",n.getErrorMsg(n.questionForm==null?null:n.questionForm.controls.description))("invertColors",!0)("isInvalid",n.questionForm.controls.description.isInvalid)("disabled",n.formDisabled)("placeholder","Type your question here")("columnSize",28)("cols",26)("rowSize",25)("rows",5),r(2),g(n.getQuestionCode(n.questionForm==null?null:n.questionForm.controls.category.value)===n.questionTypeEnum.multipleChoice||n.getQuestionCode(n.questionForm==null?null:n.questionForm.controls.category.value)===n.questionTypeEnum.singleBestChoice?15:-1),r(),g(n.getQuestionCode(n.questionForm==null?null:n.questionForm.controls.category.value)===n.questionTypeEnum.multipleChoice||n.getQuestionCode(n.questionForm==null?null:n.questionForm.controls.category.value)===n.questionTypeEnum.singleBestChoice?16:-1),r(3),m("displayText","This question is optional. (Select this box to make it optional)")("isDisabled",n.formDisabled)("ngrxFormControlState",n.questionForm==null?null:n.questionForm.controls.skip))},dependencies:[ye,fi,_i,tt,bi,wi,et,de,ve],styles:[`.survey-question-detail
7s[_ngcontent-%COMP%]{margin-top:-40px}.survey-question-details--container[_ngcontent-%COMP%]{width:100%;height:440px;object-fit:contain;border-radius:5px;position:relative}.survey-question-details--container--sub-title[_ngcontent-%COMP%]{font-family:Proxima Nova,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;font-size:12px;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#192b4c;margin-top:20px;margin-bottom:10px}.survey-question-details--container--details[_ngcontent-%COMP%]{font-family:Proxima Nova,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#192b4c}.survey-question-details--container--details[_ngcontent-%COMP%]     .input--border{background-color:#fff!important}.survey-question-details--container[_ngcontent-%COMP%]   .row-style[_ngcontent-%COMP%]{padding-top:15px}.survey-question-details--container[_ngcontent-%COMP%]   .row-title[_ngcontent-%COMP%]{padding-left:19px}.survey-question-details--container[_ngcontent-%COMP%]   .start-button[_ngcontent-%COMP%]{margin-top:20px;display:flex;margin-left:30px}.maximum-choices[_ngcontent-%COMP%]{margin-left:-23px}.maximum-choices--title[_ngcontent-%COMP%]{font-family:Proxima Nova,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;font-size:12px;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#192b4c;margin-bottom:10px}.maximum-choices--field[_ngcontent-%COMP%]{width:50px}.survey-question-section[_ngcontent-%COMP%]{position:absolute}.survey-question-section--container[_ngcontent-%COMP%]{width:100%;margin-top:-20px;height:440px;object-fit:contain;border-radius:5px}.survey-question-section--container--title[_ngcontent-%COMP%]{font-family:Proxima Nova,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;font-size:20px;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#192b4c;padding-top:19px;padding-left:19px}.survey-question-section--container--sub-title[_ngcontent-%COMP%]{font-family:Proxima Nova,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#192b4c;padding-top:20px;padding-left:19px}.survey-question-section--container--sub-title-two[_ngcontent-%COMP%]{font-family:Proxima Nova,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#192b4c;padding-top:9px;padding-left:2px;position:absolute}.survey-question-section--container--buttons[_ngcontent-%COMP%]{margin-top:20px;display:flex;margin-left:40px}.editor[_ngcontent-%COMP%]{height:88px;width:434px;margin-bottom:30px}[_nghost-%COMP%]     .ck-editor__editable_inline{height:88px}.existing-campaigns[_ngcontent-%COMP%]{font-size:12px;width:1140px;margin:10px auto 30px}.existing-campaigns__survey-question-title[_ngcontent-%COMP%]{margin-top:20px;font-family:Proxima Nova,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;font-size:25px;font-stretch:normal;font-style:normal;line-height:.88;letter-spacing:normal;color:#01a9b8}.existing-campaigns__survey-question-list[_ngcontent-%COMP%]{margin-top:20px}.draft-box[_ngcontent-%COMP%]{padding-top:15px;align-items:center;display:flex}.draft-box[_ngcontent-%COMP%]     .displayedText{padding-top:2px}.question-options[_ngcontent-%COMP%]{margin-left:20px;margin-bottom:-20px}.question-options[_ngcontent-%COMP%]     .radio-button-group{justify-content:center}.question-body[_ngcontent-%COMP%]{overflow-y:auto;overflow-x:hidden}.multiple-choice[_ngcontent-%COMP%]{margin-left:24px;margin-top:20px}.preview[_ngcontent-%COMP%]{margin-left:-62px}.error-msg[_ngcontent-%COMP%]{margin-top:20px}.option[_ngcontent-%COMP%]{width:80%;margin-left:24px}.scroller[_ngcontent-%COMP%]{height:180px;margin-left:-24px;overflow-y:scroll;overflow-x:hidden;-ms-overflow-style:-ms-autohiding-scrollbar}.text-error[_ngcontent-%COMP%]{color:#ff6c7a!important;font-size:90%}.max-num-choices-error[_ngcontent-%COMP%]{margin-left:-15px}.choices[_ngcontent-%COMP%]{margin-top:15px}
8/*# sourceMappingURL=survey-question.component-R6EDGU2U.css.map */`]})}}return t})();var ho=()=>[500,0];function Co(t,s){t&1&&(a(0,"div",1),l(1,"New campaign"),o())}function So(t,s){if(t&1){let e=B();a(0,"div",13)(1,"a",27),F("click",function(){w(e);let n=c(3),d=c();return b(d.onDownloadResponses({accept:d.mimeTypes.csv,filters:{survey:n==null?null:n.value.surveyCreation.id}}))}),l(2," Download Responses "),o()()}}
8function wo(t,s){if(t&1){let e=B();a(0,"div",10)(1,"div",11)(2,"div",12),f(3,So,3,0,"div",13),p(4,"async"),a(5,"div",14),l(6,"*Questionnaire title"),o(),v(7,"locumsnest-input-field",15),p(8,"async"),a(9,"div",14),l(10," Sub-title "),v(11,"div",16),o(),v(12,"locumsnest-input-field",17),p(13,"async"),a(14,"div",18),l(15,"*Short introduction to your survey"),o(),v(16,"ln-editor",19),p(17,"async"),o(),a(18,"div",20)(19,"button",21),F("click",function(){w(e);let n=c(3);return b(n.onCancelButtonClick())}),l(20,"CANCEL"),o(),a(21,"button",22),F("click",function(){w(e);let n=c(),d=c(2);return b(n==="next"?d.onShowQuestionSection(!0,2):d.onAddQuestion(1))}),l(22),p(23,"async"),o()()(),a(24,"div",23)(25,"div",24),l(26,"Survey details"),o(),a(27,"div",25),v(28,"locumsnest-survey-preview",26),p(29,"async"),p(30,"async"),o()()()}if(t&2){let e,i=c(2),n=c();r(3),g(u(4,25,n.expired$)?3:-1),r(4),m("name","title")("placeholder","Questionnaire title")("disabled",u(8,27,n.formDisabled$))("hasBorder",!0)("ngrxFormControlState",i==null?null:i.controls.surveyCreation.controls.title)("errorMsg",n.getErrorMsg(i==null?null:i.controls.surveyCreation.controls.title)),r(4),m("tp","Autofilled with your organisation\u2019s name")("tpPlacement","right")("tpVariation","hideArrow")("tpDelay",It(39,ho)),r(),m("name","title")("placeholder","Sub-title")("disabled",!0)("hasBorder",!0)("ngModel",(i==null?null:i.value.surveyCreation.id)>0?i==null?null:i.controls.surveyCreation.value.subtitle:(e=u(13,29,n.hospitalDetails$))==null?null:e.name),r(4),m("isDisabled",u(17,31,n.formDisabled$))("errorMsg",n.getErrorMsg(i==null?null:i.controls.surveyCreation.controls.comments))("ngrxFormControlState",i==null?null:i.controls.surveyCreation.controls.comments),r(5),m("disabled",i==null?null:i.controls.surveyCreation.isInvalid),r(),y(" ",u(23,33,n.hasQuestions$)?"NEXT QUESTION":"START THE QUESTIONNAIRE"," "),r(6),m("surveyForm",i)("surveyScheduler",!1)("hasCommunityAdminPermission",u(29,35,n.hasCommunityAdminPermission$))("hasReserveColourPermission",u(30,37,n.hasReserveColourPermission$))}}function bo(t,s){if(t&1){let e=B();a(0,"div",29)(1,"locumsnest-survey-question",32),p(2,"async"),p(3,"async"),p(4,"async"),F("addOptionButtonClicked",function(n){w(e);let d=c(5);return b(d.onAddOptionButtonClicked(n))})("removeOptionButtonClicked",function(n){w(e);let d=c(5);return b(d.onRemoveOptionButtonClicked(n))}),o()()}if(t&2){let e=c(2).$implicit,i=c(3);r(),m("questionTypes",i.questionOptions)("questionForm",e)("totalQuestionNumber",u(2,5,i.totalQuestionNumber$))("formDisabled",u(3,7,i.formDisabled$))("expired",u(4,9,i.expired$))}}function Fo(t,s){if(t&1){let e=B();a(0,"div",10)(1,"div",11)(2,"div",28),f(3,bo,5,11,"div",29),o(),a(4,"div",20)(5,"button",21),F("click",function(){w(e);let n=c().$implicit,d=c(3);return b(d.onBackButtonClick(n==null?null:n.value.order))}),l(6," BACK "),o(),a(7,"button",22),p(8,"async"),p(9,"async"),p(10,"async"),F("click",function(){w(e);let n=c(),d=n.$implicit,S=n.$index,k=n.$count,_n=c(),Tt=c(2);return b(_n==="next"&&S!==k-1?Tt.onShowQuestionSection(!0,(d==null?null:d.value.order)+2):Tt.onAddQuestion((d==null?null:d.value.order)+1))}),l(11),p(12,"async"),p(13,"async"),o(),a(14,"button",30),p(15,"async"),F("click",function(){w(e);let n=c(4);return b(n.onShowReviewSurveySection())}),l(16," REVIEW SURVEY "),o()()(),a(17,"div",23)(18,"div",25),v(19,"locumsnest-survey-question-preview",31),o()()()}if(t&2){let e=c(),i=e.$implicit,n=e.$index,d=e.$count,S=c(2),k=c();r(3),g(S!=null&&S.userDefinedProperties.showQuestionSection?3:-1),r(4),m("disabled",u(8,7,k.questionFormIsValid$)===!1&&((i==null?null:i.isInvalid)||(u(9,9,k.editMode$)===k.editModes.EXPIRATION_ONLY||u(10,11,k.editMode$)===k.editModes.EXPIRED)&&n===d-1)),r(4),y(" ",(u(12,13,k.hasQuestions$)&&n!==d-1||(S==null?null:S.controls.surveyCreation.value.id)!==null)&&u(13,15,k.hasQuestions$)&&(S==null?null:S.controls.surveyCreation.value.id)!==null&&n!==d-1?"NEXT QUESTION":"ADD QUESTION"," "),r(3),m("disabled",u(15,17,k.questionFormIsValid$)===!1),r(5),m("questionTitle",i==null||i.controls==null||i.controls.description==null?null:i.controls.description.value)("questionType",k.getQuestionType(i==null||i.controls.category==null?null:i.controls.category.value))("canSkip",i==null?null:i.value.skip)}}
8function Eo(t,s){if(t&1&&(J(0,Fo,20,19,"ng-template",6),p(1,"async")),t&2){let e=s.$implicit,i=c(2),n=c();m("label",n.getQuestionTitle(e==null?null:e.value.order,e==null?null:e.value.description))("hideNumber",!0)("valid",u(1,3,n.questionFormIsValid$)===!0?(e==null?null:e.value.order)===0&&(i==null?null:i.controls.surveyCreation.value.id)!==null?i==null?null:i.controls.surveyCreation.isValid:e==null?null:e.isValid:!1)}}function Po(t,s){if(t&1&&(a(0,"div",37),l(1),o()),t&2){let e=s.$implicit;r(),At(" ",e.value.order,". ",e.value.description," ")}}function Mo(t,s){if(t&1){let e=B();a(0,"div",10)(1,"div",11)(2,"div",33)(3,"div",34)(4,"locumsnest-choice-section"),D(5,35),l(6,"Change order of questions"),A(),o()(),a(7,"div")(8,"locumsnest-survey-question-editor",36),p(9,"async"),p(10,"async"),p(11,"async"),F("removeOptionButtonClicked",function(n){w(e);let d=c(3);return b(d.onRemoveOptionButtonClicked(n))})("removeQuestionButtonClicked",function(n){w(e);let d=c(3);return b(d.onRemoveQuestionButtonClicked(n))}),o()()(),a(12,"div",20)(13,"button",22),p(14,"async"),F("click",function(){w(e);let n=c(3);return b(n.onShowConcludingMessageSection())}),l(15," CONCLUDING MESSAGE "),o()()(),a(16,"div",23)(17,"div",24),l(18,"Survey details"),o(),a(19,"div",25)(20,"b"),l(21,"Finalised order"),o(),V(22,Po,2,2,"div",37,ue().trackById,!0),p(24,"async"),o()()()}if(t&2){let e=c(3);r(8),m("questionForm",u(9,4,e.questionsFormGroupState$))("formDisabled",u(10,6,e.formDisabled$))("nextQuestionOptions",u(11,8,e.nextQuestionOptions$)),r(5),m("disabled",u(14,10,e.questionFormIsValid$)===!1),r(9),L(u(24,12,e.questionSortByOrderForm$))}}function Oo(t,s){if(t&1){let e=B();a(0,"div",10)(1,"div",11)(2,"div",33)(3,"div",38),l(4," Round off your survey with a quick message for respondents "),o(),a(5,"div",14),l(6,"*Final title"),o(),v(7,"locumsnest-input-field",39),p(8,"async"),a(9,"div",18),l(10,"*Your closing statement"),o(),a(11,"span",40),v(12,"ln-editor",19),p(13,"async"),o()(),a(14,"div",20)(15,"button",22),F("click",function(){w(e);let n=c(3);return b(n.onScheduleSurvey())}),l(16," CONFIGURE AND SCHEDULE "),o()()(),a(17,"div",23)(18,"div",24),l(19,"Survey details"),o(),a(20,"div",25),v(21,"locumsnest-survey-preview",41),o()()()}if(t&2){let e=c(2),i=c();r(7),m("placeholder","Final Title")("hasBorder",!0)("disabled",u(8,11,i.formDisabled$))("errorMsg",i.getErrorMsg(e==null?null:e.controls.conclusion.controls.finalTitle))("ngrxFormControlState",e==null?null:e.controls.conclusion.controls.finalTitle),r(5),m("isDisabled",u(13,13,i.formDisabled$))("errorMsg",i.getErrorMsg(e==null?null:e.controls.conclusion.controls.closingStatement))("ngrxFormControlState",e==null?null:e.controls.conclusion.controls.closingStatement),r(3),m("disabled",e==null?null:e.controls.conclusion.isInvalid),r(6),m("surveyForm",e)("conclusion",!0)}}function To(t,s){if(t&1&&(a(0,"div",54)(1,"div",56),v(2,"locumsnest-date-time-picker",57),p(3,"async"),o(),v(4,"locumsnest-date-time-picker",57),o()),t&2){let e=c(3),i=c();r(2),m("timePlaceholder","00:00")("datePlaceholder","00/00/00")("dateTitle","*Effective date")("timeTitle","*Effective time")("hasBorder",!0)("horizontalAlignment",!0)("isDisabled",u(3,18,i.formDisabled$))("showCalendarAsPrefix",!0)("ngrxFormControlState",e==null?null:e.controls.postScheduler.controls.effectiveDate),r(2),m("timePlaceholder","00:00")("datePlaceholder","00/00/00")("dateTitle","*Expiration date")("timeTitle","*Expiration time")("hasBorder",!0)("horizontalAlignment",!0)("isDisabled",!1)("showCalendarAsPrefix",!0)("ngrxFormControlState",e==null?null:e.controls.postScheduler.controls.expirationDate)}}function Do(t,s){if(t&1&&(a(0,"div",55)(1,"small",58),l(2),o()()),t&2){let e=c(3),i=c();r(2),y(" ",i.getErrorMsg(e==null?null:e.controls.postScheduler.controls.effectiveDate)," ")}}function Ao(t,s){if(t&1&&(a(0,"div",55)(1,"small",58),l(2),o()()),t&2){let e=c(3),i=c();r(2),y(" ",i.getErrorMsg(e==null?null:e.controls.postScheduler.controls.expirationDate)," ")}}function Io(t,s){}function qo(t,s){if(t&1&&(a(0,"div")(1,"div",34)(2,"locumsnest-choice-section"),D(3,35),l(4,"Reserve colour"),A(),D(5,51),v(6,"locumsnest-toggle",52),p(7,"async"),A(),D(8,53),l(9," When enabled the post will be"),v(10,"br"),l(11," colour-coded with the reserve colour-scheme. "),A(),o()()()),t&2){let e=c(3),i=c();r(6),m("isFormControl",!0)("isDisabled",u(7,4,i.formDisabled$))("ngrxFormControlState",e==null?null:e.controls.postScheduler.controls.reserveColor)("darkTheme",!0)}}function ko(t,s){if(t&1&&v(0,"locumsnest-button-group-radio-button",62),t&2){let e=s.$implicit;m("id",e.id)("name",e.name)}}function Bo(t,s){if(t&1&&(a(0,"div")(1,"div",64),l(2,"*Reason(s) for flagging"),o(),v(3,"locumsnest-input-field",65),o()),t&2){let e=c(4);r(3),m("placeholder","Type your reason here")("disabled",!1)("hasBorder",!0)("ngrxFormControlState",e==null?null:e.controls.postScheduler.controls.flaggedReason)}}function No(t,s){if(t&1&&(a(0,"div")(1,"div",59),l(2,"Admin only"),o(),a(3,"div",34)(4,"locumsnest-choice-section"),D(5,35),l(6,"Remove from shortcuts when it expires"),A(),D(7,51),v(8,"locumsnest-toggle",52),p(9,"async"),A(),D(10,53),l(11," Once it expires it won\u2019t be accessible again from the shortcuts library. "),A(),o()(),a(12,"div",34)(13,"locumsnest-choice-section"),D(14,35),l(15,"Review mode"),A(),D(16,53),l(17," Select this survey's Approval status. "),A(),o()(),a(18,"div",60)(19,"locumsnest-radio-button-group",61),V(20,ko,1,2,"locumsnest-button-group-radio-button",62,ue().trackById,!0),o()(),a(22,"div",63),f(23,Bo,4,4,"div"),o()()),t&2){let e=c(3),i=c();r(8),m("isFormControl",!0)("isDisabled",u(9,9,i.formDisabled$))("ngrxFormControlState",e==null?null:e.controls.postScheduler.controls.removeFromShortcutsAfterExpiry)("darkTheme",!0),r(11),m("smaller",!0)("darkTheme",!0)("isDisabled",!1)("ngrxFormControlState",e==null?null:e.controls.postScheduler.controls.approvalStatus),r(),L(i.approvalStatusesOptions),r(3),g((e==null?null:e.value.postScheduler.approvalStatus)===i.approvalStatusList.FLAGGED.id?23:-1)}}function Ro(t,s){if(t&1){let e=B();a(0,"div",10)(1,"div",11)(2,"div",42)(3,"div",43)(4,"div",44)(5,"locumsnest-dropdown-grouping-select",45),p(6,"async"),p(7,"async"),F("clear",function(){w(e);let n=c(3);return b(n.onClear())}),o()(),a(8,"div",44)(9,"locumsnest-dropdown-grouping-select",46),p(10,"async"),p(11,"async"),F("clear",function(){w(e);let n=c(3);return b(n.onClear())}),o()()(),a(12,"div",34)(13,"div",14),l(14,"Importance"),o(),a(15,"div",47),l(16,"Select this survey's importance level."),o(),a(17,"div",48)(18,"div",49),v(19,"locumsnest-dropdown-grouping-select",50),p(20,"async"),o()()(),a(21,"div",34)(22,"locumsnest-choice-section"),D(23,35),l(24,"Schedule post"),A(),D(25,51),v(26,"locumsnest-toggle",52),p(27,"async"),A(),D(28,53),l(29," Toggle off to schedule later. "),A(),o()(),f(30,To,5,20,"div",54),f(31,Do,3,1,"div",55),p(32,"async"),f(33,Ao,3,1,"div",55),p(34,"async"),f(35,Io,0,0),f(36,qo,12,6,"div"),p(37,"async"),f(38,No,24,11,"div"),p(39,"async"),o(),a(40,"div",20)(41,"button",22),p(42,"async"),F("click",function(){w(e);let n=c(3);return b(n.onSaveButtonClicked())}),l(43),p(44,"async"),o()()(),a(45,"div",23)(46,"div",24),l(47,"Your post\u2019s details"),o(),a(48,"div",25),v(49,"locumsnest-survey-preview",26),p(50,"async"),p(51,"async"),o()()()}if(t&2){let e,i=c(2),n=c();r(5),m("ngrxUpdateOn",n.NGRX_UPDATE_ON_TYPE.BLUR)("placeholder","Narrow down by department")("options",u(6,43,n.departments$))("multiple",!0)("selectableGroup",!0)("selectableGroupAsModel",!1)("clearable",!0)("groupingProperty","department")("extraClass","blue-theme")("isDisabled",u(7,45,n.formDisabled$))("ngrxFormControlState",i==null?null:i.controls.postScheduler.controls.specialties),r(4),m("ngrxUpdateOn",n.NGRX_UPDATE_ON_TYPE.BLUR)("placeholder","Narrow down by seniority")("options",u(10,47,n.grades$))("multiple",!0)("selectableGroup",!0)("selectableGroupAsModel",!1)("clearable",!0)("extraClass","blue-theme")("groupingProperty","grade")("isDisabled",u(11,49,n.formDisabled$))("ngrxFormControlState",i==null?null:i.controls.postScheduler.controls.grades),r(10),m("options",n.importanceOptions)("extraClass","blue-theme")("isDisabled",u(20,51,n.formDisabled$))("ngrxFormControlState",i==null?null:i.controls.postScheduler.controls.importance)("placeholder","Select the importance of the survey"),r(7),m("isFormControl",!0)("isDisabled",u(27,53,n.formDisabled$))("ngrxFormControlState",i==null?null:i.controls.postScheduler.controls.published)("darkTheme",!0),r(4),g(i!=null&&i.value.postScheduler.published?30:-1),r(),g(u(32,55,n.editMode$)!==n.editModes.EXPIRED&&(i!=null&&i.controls.postScheduler.controls.effectiveDate.isInvalid)&&
8(i!=null&&i.controls.postScheduler.controls.effectiveDate.isDirty)?31:-1),r(2),g(u(34,57,n.editMode$)!==n.editModes.EXPIRED&&(i!=null&&i.controls.postScheduler.controls.effectiveDate.isDirty)&&(i!=null&&i.controls.postScheduler.controls.effectiveDate.isValid)&&(i!=null&&i.controls.postScheduler.controls.expirationDate.isInvalid)&&(i!=null&&i.controls.postScheduler.controls.expirationDate.isDirty)?33:-1),r(2),g(i!=null&&i.isInvalid&&(i!=null&&i.isDirty)?35:-1),r(),g(u(37,59,n.hasReserveColourPermission$)?36:-1),r(2),g(u(39,61,n.hasCommunityAdminPermission$)?38:-1),r(3),m("disabled",(i==null?null:i.isInvalid)||((e=u(42,63,n.questionsForm$))==null?null:e.isInvalid)),r(2),y(" ",n.getSaveButtonText(i,u(44,65,n.hasCommunityAdminPermission$))," "),r(6),m("surveyForm",i)("surveyScheduler",!0)("hasCommunityAdminPermission",u(50,67,n.hasCommunityAdminPermission$))("hasReserveColourPermission",u(51,69,n.hasReserveColourPermission$))}}function Qo(t,s){if(t&1){let e=B();a(0,"ln-stepper",4),F("stepClick",function(n){w(e);let d=c(2);return b(d.onStepClicked(n))}),J(1,wo,31,40,"ng-template",5),p(2,"async"),V(3,Eo,2,5,null,6,ue().trackById,!0),p(5,"async"),J(6,Mo,25,14,"ng-template",7),p(7,"async"),J(8,Oo,22,15,"ng-template",8),p(9,"async"),J(10,Ro,52,71,"ng-template",9),p(11,"async"),o()}if(t&2){let e=c(),i=c();m("activeIndex",i.activeStepIndex())("allStepsReached",(e==null?null:e.controls.surveyCreation.value.id)!==null),r(),m("valid",(e==null?null:e.controls.surveyCreation.isValid)&&u(2,6,i.questionFormIsValid$)===!0),r(2),L(u(5,8,i.questionSortByOrderForm$)),r(3),m("valid",(e==null?null:e.controls.surveyCreation.isValid)&&u(7,10,i.questionFormIsValid$)),r(2),m("valid",(e==null?null:e.controls.surveyCreation.isValid)&&u(9,12,i.questionFormIsValid$)&&(e==null?null:e.controls.conclusion.isValid)),r(2),m("valid",(e==null?null:e.controls.surveyCreation.isValid)&&u(11,14,i.questionFormIsValid$)&&(e==null?null:e.controls.conclusion.isValid)&&(e==null?null:e.controls.postScheduler.isValid))}}function $o(t,s){if(t&1&&(a(0,"form",2),f(1,Qo,12,16,"ln-stepper",3),p(2,"async"),o()),t&2){let e,i=c();m("ngrxFormState",s),r(),g((e=u(2,2,i.hasQuestions$)?"next":"add")?1:-1,e)}}var Ot=(()=>{class t extends Z{static{this.existingSurveyNamespace="existingSurveyNamespace"}constructor(){super(),this.router=_(H),this.store=_(me),this.professionService=_(Je),this.gradeService=_(Ze),this.hospitalService=_(Ti),this.layoutService=_(Ai),this.surveyService=_(rt),this.surveyWizardService=_(pt),this.authGroupService=_(Ke),this.promoService=_(at),this.permissionService=_(Di),this.editModes=qi,this.mimeTypes=ai,this.approvalStatusList=he,this.NGRX_UPDATE_ON_TYPE=Yt,this.activeWizardStep$=this.surveyWizardService.getActiveStep(),this.questionOptions=Ii(),this.surveyForm$=this.surveyService.getSurveyFormState(),this.questionsFormGroupState$=this.surveyService.getQuestionsFormGroupState(),this.questionSortByOrderForm$=this.surveyService.getQuestionsSortByOrderFormState(),this.questionsForm$=this.surveyService.getQuestionsFormState(),this.departments$=this.professionService.getProfessionSpecialtyOptions([],this.surveyService.getFormProfessionSpecialties()),this.grades$=this.gradeService.getGradeWithProfessionOptions(),this.hospitalDetails$=this.hospitalService.getHospitalDetails(),this.editMode$=this.surveyService.getEditMode(),this.formDisabled$=this.surveyService.getFormDisabled(),this.expired$=this.surveyService.getExpired(),this.questionFormIsValid$=this.surveyService.getQuestionFormIsValid(),this.totalQuestionNumber$=this.surveyService.getTotalQuestionNumber(),this.hasQuestions$=this.surveyService.getHasQuestions(),this.hasCommunityAdminPermission$=this.authGroupService.getOfficerBelongsToAuthGroup(li.COMMUNITY_ADMIN),this.hasReserveColourPermission$=this.permissionService.hasCurrentPermission("set_survey_reserve_color"),this.approvalStatusesOptions=ot(ie.ApprovalStatus),this.importanceOptions=ot(ie.Importance),this.attachmentOptions=ot(ie.SurveyAttachment),this.activePromoOptions$=this.promoService.getActivePromoOptions(),this.nextQuestionOptions$=this.surveyService.getNextQuestionOptions(),this.activeWizardStepSignal=Ve(this.activeWizardStep$,{initialValue:1}),this.totalQuestionNumberSignal=Ve(this.totalQuestionNumber$,{initialValue:0}),this.surveyFormSignal=Ve(this.surveyForm$),this.activeStepIndex=kt(()=>{let e=this.surveyFormSignal(),i=this.totalQuestionNumberSignal();return e?.userDefinedProperties.showReviewSurveySection?i+1:e?.userDefinedProperties.showConcludingMessageSection?i+2:e?.userDefinedProperties.showScheduleSection?i+3:this.activeWizardStepSignal()-1})}ngOnInit(){this.layoutService.scrollToTop(),this.store.dispatch(new Se({})),this.surveyWizardService.initialize()}onClear(){this.store.dispatch(new Oe({}))}onShowQuestionSection(e,i){this.store.dispatch(new re({show:e})),this.surveyWizardService.updateActiveStep(i),this.surveyWizardService.completeStep(i-1),this.layoutService.scrollToTop()}onBackButtonClick(e){this.surveyWizardService.updateActiveStep(e),this.layoutService.scrollToTop()}canUnpublished(e){return O(e)||G.formatDate(new Date)<e}onAddOptionButtonClicked(e){this.store.dispatch(new we({id:e}))}onRemoveOptionButtonClicked(e){this.store.dispatch(new be({id:e}))}onRemoveQuestionButtonClicked(e){this.store.dispatch(new Fe({id:e}))}onDownloadResponses(e){return this.store.dispatch(new Me(e))}
8onSaveButtonClicked(){this.store.dispatch(new Pe({namespace:t.existingSurveyNamespace}))}onCancelButtonClick(){this.router.navigateByUrl("/community/dashboard")}onAddQuestion(e){this.store.dispatch(new Ee({})),this.surveyWizardService.updateActiveStep(e+1),this.surveyWizardService.completeStep(e),this.layoutService.scrollToTop()}onCardClick(e,i,n){n==="closingStatement"?this.store.dispatch(new se({})):n==="schedule"?this.store.dispatch(new le({})):n==="review"?this.store.dispatch(new ae({})):n==="question"&&this.store.dispatch(new re({show:e})),this.surveyWizardService.updateActiveStep(i),this.layoutService.scrollToTop()}onStepClicked(e){if(e>=this.activeStepIndex())return;let i=this.totalQuestionNumberSignal();e===0?this.onCardClick(!1,1,"question"):e<=i?this.onCardClick(!0,e+1,"question"):e===i+1?this.onCardClick(!1,e,"review"):e===i+2?this.onCardClick(!1,e,"closingStatement"):e===i+3&&this.onCardClick(!1,e,"schedule")}getQuestionType(e){return ne(e)}getSaveButtonText(e,i){return i?"SUBMIT":e?.value.postScheduler.published?e.userDefinedProperties.promoSaving?"SAVING & SCHEDULING":"SUBMIT FOR REVIEW":"SAVE FOR LATER"}onShowConcludingMessageSection(){this.store.dispatch(new se({})),this.layoutService.scrollToTop()}onShowReviewSurveySection(){this.store.dispatch(new ae({})),this.layoutService.scrollToTop()}onScheduleSurvey(){this.store.dispatch(new le({})),this.layoutService.scrollToTop()}getQuestionTitle(e,i){return fe(i)?"Question "+e:"Question "+e+" - "+i}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=$({type:t,selectors:[["locumsnest-survey-container"]],standalone:!1,features:[K],decls:5,vars:6,consts:[[1,"survey-page"],[1,"survey-page--title"],["autocomplete","off",3,"ngrxFormState"],[3,"activeIndex","allStepsReached"],[3,"stepClick","activeIndex","allStepsReached"],["lnStep","","label","Start your survey",3,"valid"],["lnStep","",3,"label","hideNumber","valid"],["lnStep","","label","Review survey",3,"valid"],["lnStep","","label","Concluding message",3,"valid"],["lnStep","","label","Configure and Schedule",3,"valid"],[1,"wizard-step__columns"],[1,"wizard-step__left"],[1,"left-part"],[1,"download-results"],[1,"section-title"],[3,"name","placeholder","disabled","hasBorder","ngrxFormControlState","errorMsg"],[1,"info",3,"tp","tpPlacement","tpVariation","tpDelay"],[3,"name","placeholder","disabled","hasBorder","ngModel"],[1,"editor-title"],[3,"isDisabled","errorMsg","ngrxFormControlState"],[1,"wizard-step-actions"],["lnBtn","","variant","secondary",3,"click"],["lnBtn","","variant","primary",3,"click","disabled"],[1,"wizard-step__right"],[1,"wizard-step__right-title"],[1,"preview"],[3,"surveyForm","surveyScheduler","hasCommunityAdminPermission","hasReserveColourPermission"],["href","javascript:void(0)",3,"click"],[1,"left-part--question"],[1,"survey-section--container"],["lnBtn","","variant","success",3,"click","disabled"],[3,"questionTitle","questionType","canSkip"],[3,"addOptionButtonClicked","removeOptionButtonClicked","questionTypes","questionForm","totalQuestionNumber","formDisabled","expired"],[1,"conclusion-part"],[1,"choice-section"],["title",""],[3,"removeOptionButtonClicked","removeQuestionButtonClicked","questionForm","formDisabled","nextQuestionOptions"],[1,"preview--question"],[1,"sub-title"],[3,"placeholder","hasBorder","disabled","errorMsg","ngrxFormControlState"],[1,"editor"],[3,"surveyForm","conclusion"],[1,"left-schedule-part"],[1,"row","filters"],[1,"col-sm-6"],[3,"clear","ngrxUpdateOn","placeholder","options","multiple","selectableGroup","selectableGroupAsModel","clearable","groupingProperty","extraClass","isDisabled","ngrxFormControlState"],[3,"clear","ngrxUpdateOn","placeholder","options","multiple","selectableGroup","selectableGroupAsModel","clearable","extraClass","groupingProperty","isDisabled","ngrxFormControlState"],[1,"help-text"],[1,"row"],[1,"col-sm-6","importance"],[3,"options","extraClass","isDisabled","ngrxFormControlState","placeholder"],["choice",""],[3,"isFormControl","isDisabled","ngrxFormControlState","darkTheme"],["helpText",""],[1,"date-picker"],[1,"error-message"],[1,"effective-date-time"],[3,"timePlaceholder","datePlaceholder","dateTitle","timeTitle","hasBorder","horizontalAlignment","isDisabled","showCalendarAsPrefix","ngrxFormControlState"],[1,"text-danger"],[1,"admin-section"],[1,"radio-button-group"],[3,"smaller","dar
8kTheme","isDisabled","ngrxFormControlState"],[3,"id","name"],[1,"review-mode"],[1,"flagging-reason"],[3,"placeholder","disabled","hasBorder","ngrxFormControlState"]],template:function(i,n){if(i&1&&(a(0,"div",0),f(1,Co,2,0,"div",1),p(2,"async"),f(3,$o,3,4,"form",2),p(4,"async"),o()),i&2){let d;r(),g(u(2,2,n.surveyForm$).value.surveyCreation.id===null?1:-1),r(2),g((d=u(4,4,n.surveyForm$))?3:-1,d)}},dependencies:[ye,xi,Ci,tt,Si,et,yi,ui,zt,Rt,Qt,Ht,$t,de,Xt,ve,nt,Oi,Mi,hi,pn,fn,vn,dn,Bt],styles:[`.survey-page[_ngcontent-%COMP%]{width:1140px;margin:auto auto 30px;position:relative;z-index:1}.survey-page--title[_ngcontent-%COMP%]{font-family:Proxima Nova,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;font-size:25px;font-stretch:normal;font-style:normal;line-height:.88;letter-spacing:normal;color:#01a9b8;margin-bottom:20px}.importance[_ngcontent-%COMP%]{margin-top:5px}.info[_ngcontent-%COMP%]{background-image:url(/assets/icons/i.svg);background-repeat:no-repeat;background-size:cover;height:15px;width:15px;margin-left:5px;cursor:pointer}.survey-details--container[_ngcontent-%COMP%]{width:100%;object-fit:contain;border-radius:5px;position:relative}.survey-details--container--title[_ngcontent-%COMP%]{font-family:Proxima Nova,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;font-size:20px;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#192b4c;padding-top:19px}.survey-details--container--sub-title[_ngcontent-%COMP%], .survey-details--container--details[_ngcontent-%COMP%]{font-family:Proxima Nova,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#192b4c}.survey-details--container[_ngcontent-%COMP%]   .row-title[_ngcontent-%COMP%]{padding-left:19px}.survey-details--container--buttons[_ngcontent-%COMP%]{margin-top:-10px;display:flex;float:right;margin-right:26px}.survey-details--container[_ngcontent-%COMP%]   .date-picker[_ngcontent-%COMP%]     .datepicker__input{font-size:12px}.row-style[_ngcontent-%COMP%]{padding-top:15px}.survey-section--container[_ngcontent-%COMP%]{width:100%;margin-top:16px;object-fit:contain;border-radius:5px}.file-uploader[_ngcontent-%COMP%]{margin-left:19px;margin-top:14px;height:100px}.editor[_ngcontent-%COMP%]{height:88px;margin-bottom:30px}[_nghost-%COMP%]     .ck-editor__editable_inline{height:88px}.save-button[_ngcontent-%COMP%]{margin-left:72px}.existing-campaigns[_ngcontent-%COMP%]{font-size:12px;width:1140px;margin:10px auto 30px}.existing-campaigns__survey-title[_ngcontent-%COMP%]{margin-top:20px;font-family:Proxima Nova,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;font-size:25px;font-stretch:normal;font-style:normal;line-height:.88;letter-spacing:normal;color:#01a9b8}.existing-campaigns__survey-list[_ngcontent-%COMP%]{margin-top:20px}.date-range[_ngcontent-%COMP%]{padding-left:15px}.error[_ngcontent-%COMP%]{font-family:Proxima Nova,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;color:#ff6c7a;margin-top:5px}.download-results[_ngcontent-%COMP%]{width:241px;height:24px;font-family:Proxima Nova,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;font-size:12px;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#96ca54;text-decoration:underline}.left-part[_ngcontent-%COMP%]{font-family:Proxima Nova,Helvetica Neue,Helvetica,Arial,sans-serif;height:620px;width:100%;object-fit:contain;border-radius:5px;position:relative;font-size:12px;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#192b4c;margin:0 20px 0 15px;padding-right:50px}.left-part--question[_ngcontent-%COMP%]{height:600px}.left-part[_ngcontent-%COMP%]     .input.input--border{margin-left:0!important}.left-schedule-part[_ngcontent-%COMP%]{font-family:Proxima Nova,Helvetica Neue,Helvetica,Arial,sans-serif;height:100%;width:100%;object-fit:contain;border-radius:5px;position:relative;font-size:12px;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#192b4c;margin:0 20px 0 15px;padding-right:50px}.left-schedule-part[_ngcontent-%COMP%]     .input.input--border{margin-left:0!important}.conclusion-part[_ngcontent-%COMP%]{font-family:Proxima Nova,Helvetica Neue,Helvetica,Arial,sans-serif;height:400px;width:97.5%;object-fit:contain;border-radius:5px;position:relative;font-size:12px;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#192b4c;margin:0 20px 0 15px;padding-right:50px}.save-hidden[_ngcontent-%COMP%]{visibility:hidden}.date-picker[_ngcontent-%COMP%]{display:flex;margin-top:20px}
8.effective-date-time[_ngcontent-%COMP%]{margin-right:10px}.section-title[_ngcontent-%COMP%]{font-family:Proxima Nova,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;display:flex;font-size:13px;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#192b4c;margin-top:10px;margin-bottom:10px}.admin-section[_ngcontent-%COMP%]{font-family:Proxima Nova,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;font-size:13px;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#192b4c;margin-top:30px;margin-bottom:-15px}.toggle-title[_ngcontent-%COMP%]{font-family:Proxima Nova,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;width:240px;font-size:12px;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#192b4c}.choice-section[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:10px}.filters[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:10px}.radio-button-group[_ngcontent-%COMP%]     .radio-button-group{justify-content:left}.review-mode[_ngcontent-%COMP%]{width:70%}.editor-title[_ngcontent-%COMP%]{font-family:Proxima Nova,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;font-size:13px;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#192b4c;margin-top:10px;margin-bottom:10px;display:flex;z-index:10;position:absolute}.preview[_ngcontent-%COMP%]{margin-left:3px;margin-right:20px}.preview--question[_ngcontent-%COMP%], .error-message[_ngcontent-%COMP%]{margin-top:5px}.help-text[_ngcontent-%COMP%]{font-style:italic;font-size:10px;font-stretch:normal;line-height:normal;letter-spacing:normal;color:#192b4c;margin-top:5px}[_nghost-%COMP%]     .ck-editor__editable_inline{height:280px}.cancel-button[_ngcontent-%COMP%]{margin-left:50px}.help-text[_ngcontent-%COMP%]{width:358px}.sub-title[_ngcontent-%COMP%]{font-family:Proxima Nova,Helvetica Neue,Helvetica,Arial,sans-serif;margin-bottom:25px;font-size:12px;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#192b4c}.editor[_ngcontent-%COMP%]     .ck-editor__editable{height:120px!important}.wizard-step-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.wizard-step__columns[_ngcontent-%COMP%]{display:flex;gap:24px}@media only screen and (max-width:740px){.wizard-step__columns[_ngcontent-%COMP%]{flex-direction:column}}.wizard-step__left[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:3;min-width:0}.wizard-step__left[_ngcontent-%COMP%]   .wizard-step-actions[_ngcontent-%COMP%]{margin-top:auto}.wizard-step__right[_ngcontent-%COMP%]{flex:1;min-width:0;padding:2px 11px 24px;border-radius:6px;background-color:#5dcbd5}.wizard-step__right-title[_ngcontent-%COMP%]{font-family:Proxima Nova,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;margin:18px 4px 20px;font-size:15px;text-align:center;color:#2c426a}ln-stepper[_ngcontent-%COMP%]{--accordion-item-collapsed-max-width: 50%}
9/*# sourceMappingURL=survey-container.component-EFUR2B5M.css.map */`],changeDetection:0})}}return t})();var Ho=[{path:"new",component:Ot},{path:":id",component:Ot}];var gn=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=X({type:t})}static{this.\u0275inj=Y({imports:[De.forChild(Ho),De]})}}return t})();var Bl=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=X({type:t})}static{this.\u0275inj=Y({imports:[Nt,Fi,De,Vt,vi,Kt,an,$i,gn,Qi,cn,Hi,nt]})}}return t})();export{Bl as SurveyContainerModule};
10//# sourceMappingURL=chunk-CKHWVXKZ.js.map
11
12//# debugId=464f4386-5591-5bd2-8ed7-89020b83acfc

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.