1import{$ as b,$b as mt,$k as Q,Ba as M,Bd as $,Cb as f,Cc as gt,Cd as Dt,Db as at,Dd as Ct,Ee as Z,Fa as u,Fd as bt,Ga as v,Gb as _,Gl as yt,Ha as nt,He as wt,Ke as O,Km as Ft,L as T,La as l,Ma as c,Mz as Pt,Na as I,Nm as q,Oa as P,Om as It,Pa as U,R as k,Ra as F,Tb as rt,Tm as Gt,Um as A,V as tt,W as N,Wa as y,Xa as m,Xb as lt,a as J,aa as w,ab as it,al as R,b as X,eb as z,ex as Nt,fa as et,fb as j,fc as ct,ff as V,gb as H,gd as ft,hd as _t,ib as d,jb as K,jc as ut,kb as S,kc as dt,ma as W,ml as St,mn as Tt,mq as At,n as B,na as ot,nq as Lt,oc as pt,qa as a,qp as Et,ra as x,sc as G,tc as E,tl as vt,vm as xt,wb as st,xa as C,xd as ht,zq as kt}from"./chunk-B5AFIBST.js";var Rt=["iframeform"],Bt=()=>({"pointer-events":"none",opacity:"0.5",background:"rgb(128 128 128 / 30%)"});function Wt(i,s){if(i&1&&(l(0,"div",11)(1,"div")(2,"a",12),I(3,"img",13),f(4,"getLocalizedValues"),c()()()),i&2){let t=m();a(),v("text-align","left"),a(),u("href",t.getHTMLAttribute(t.commonData==null||t.commonData.templateSettings==null?null:t.commonData.templateSettings.Elements,"header_goto_url","href"),W),a(),v("height",t.constants.ORGANIZATION_SETTINGS.logoURL?"":"64px")("max-width",t.constants.ORGANIZATION_SETTINGS.logoURL?"":"185px"),it("alt","",t.constants.ORGANIZATION_SETTINGS.name," ",_(4,12,"Logo","Logo",t.commonclassKey,t.registerContextChangeDetectionFlag),""),u("src",t.getSettingsValues(t.commonData==null||t.commonData.templateSettings==null?null:t.commonData.templateSettings.Details,"header_img_url")?t.getSettingsValues(t.commonData==null||t.commonData.templateSettings==null?null:t.commonData.templateSettings.Details,"header_img_url"):t.constants.ORGANIZATION_SETTINGS.logoURL,W)("title",t.constants.ORGANIZATION_SETTINGS.name)}}function Mt(i,s){if(i&1){let t=F();l(0,"div",14)(1,"div",7),y("click",function(){b(t);let n=m();return w(n.changeTab(!0))})("keyup.enter",function(){b(t);let n=m();return w(n.changeTab(!0))}),l(2,"span",8)(3,"b"),d(4),f(5,"getLocalizedValues"),c(),d(6," \xA0 \xA0 "),c()()()}if(i&2){let t=m();a(),v("background-color","white")("color",t.commonData==null||t.commonData.templateSettings==null||t.commonData.templateSettings.ButtonColor==null?null:t.commonData.templateSettings.ButtonColor.Primary)("border-bottom",t.showGuestDetails?"solid":"")("border-bottomcolor",t.showGuestDetails?t.commonData==null||t.commonData.templateSettings==null||t.commonData.templateSettings.ButtonColor==null?null:t.commonData.templateSettings.ButtonColor.Primary:"")("font-weight",t.showGuestDetails?700:400),M("aria-expanded",!!t.showGuestDetails),a(3),S(" ",_(5,12,"Profile","ProfileTab",t.userProfileClassKey,t.registerContextChangeDetectionFlag)," ")}}function zt(i,s){if(i&1&&(l(0,"div",18),I(1,"div",19),l(2,"div",20),d(3),f(4,"getLocalizedValues"),c()()),i&2){let t=m(2);a(3),K(_(4,1,"Please wait...","Wait",t.classKey,t.registerContextChangeDetectionFlag))}}function jt(i,s){if(i&1&&(l(0,"div",18),I(1,"div",19),l(2,"div",20),d(3),f(4,"getLocalizedValues"),c()()),i&2){let t=m(4);a(3),K(_(4,1,"Please wait...","Wait",t.classKey,t.registerContextChangeDetectionFlag))}}function Ht(i,s){if(i&1){let t=F();l(0,"webstore-guest-details",25),y("onGuestDetailsUpdate",function(n){b(t);let o=m(4);return w(o.guestDetailsUpdate(n))})("onGetStates",function(n){b(t);let o=m(4);return w(o.getStates(n))}),c()}if(i&2){let t=m(4);u("data",t.data)("commonData",t.commonData)("constants",t.constants)("showPrintButton",t.showPrintButton)}}function Kt(i,s){if(i&1){let t=F();l(0,"button",26),y("click",function(){b(t);let n=m(4);return w(n.saveGuest())}),l(1,"span"),d(2),f(3,"getLocalizedValues"),c()()}if(i&2){let t=m(4);v("background",t.commonData==null||t.commonData.templateSettings==null||t.commonData.templateSettings.ButtonColor==null?null:t.commonData.templateSettings.ButtonColor.Primary)("color","white"),a(2),S(" ",_(3,5,"Save","Save",t.commonClassKey,t.registerContextChangeDetectionFlag)," ")}}function $t(i,s){if(i&1&&(P(0),C(1,jt,5,6,"div",16)(2,Ht,1,4,"webstore-guest-details",21),l(3,"div",22)(4,"div",23),C(5,Kt,4,10,"button",24),c()(),U()),i&2){let t=m(3);a(),u("ngIf",t.commonData==null||t.commonData.forms==null||t.commonData.forms.guestDetails==null?null:t.commonData.forms.guestDetails.isFetchingUserProfile),a(),u("ngIf",!(!(t.commonData==null||t.commonData.forms==null||t.commonData.forms.guestDetails==null)&&t.commonData.forms.guestDetails.isFetchingUserProfile)),a(3),u("ngIf",!t.showPrintButton)}}
1function Zt(i,s){if(i&1&&(l(0,"div",31)(1,"div",32),d(2),f(3,"getLocalizedValues"),c()()),i&2){let t=m(4);a(2),S(" ",_(3,1,"This form is out of date. Please fill it with updated information and submit it again.","FormExpired",t.classKey,t.registerContextChangeDetectionFlag)," ")}}function Qt(i,s){if(i&1){let t=F();l(0,"div",31)(1,"div",33),d(2),f(3,"getLocalizedValues"),l(4,"span",34),y("click",function(){b(t);let n=m(4);return w(n.onNewFormClick(n.commonData==null||n.commonData.forms==null?null:n.commonData.forms.selected))}),d(5),f(6,"getLocalizedValues"),c(),d(7),f(8,"getLocalizedValues"),c()()}if(i&2){let t=m(4);a(2),S(" ",_(3,3,"This form is a read-only form. There is a new version of the form.","ReadOnlyForm",t.classKey,t.registerContextChangeDetectionFlag)," "),a(3),S(" ",_(6,8,"Click here","Click",t.classKey,t.registerContextChangeDetectionFlag)," "),a(2),S(" ",_(8,13,"to fill the form.","FillForm",t.classKey,t.registerContextChangeDetectionFlag)," ")}}function qt(i,s){if(i&1){let t=F();l(0,"button",35),y("click",function(){b(t);let n=m(4);return w(n.printForm())}),d(1,"Print "),c()}if(i&2){let t=m(4);v("color","white")("background-color",t.commonData==null||t.commonData.templateSettings==null||t.commonData.templateSettings.ButtonColor==null?null:t.commonData.templateSettings.ButtonColor.Primary)}}function Yt(i,s){if(i&1&&(l(0,"span"),d(1),f(2,"getLocalizedValues"),c()),i&2){let t=m(5);a(),S(" ",_(2,1,"Save","Save",t.commonClassKey,t.registerContextChangeDetectionFlag)," ")}}function Jt(i,s){if(i&1&&(l(0,"span"),d(1),f(2,"getLocalizedValues"),c()),i&2){let t=m(5);a(),S(" ",_(2,1,"Submit","Submit",t.commonClassKey,t.registerContextChangeDetectionFlag)," ")}}function Xt(i,s){if(i&1){let t=F();l(0,"button",36),y("click",function(){b(t);let n=m(4);return w(n.saveForm(n.commonData==null||n.commonData.forms==null?null:n.commonData.forms.selected))}),C(1,Yt,3,6,"span",17)(2,Jt,3,6,"span",17),c()}if(i&2){let t=m(4);v("background",t.commonData==null||t.commonData.templateSettings==null||t.commonData.templateSettings.ButtonColor==null?null:t.commonData.templateSettings.ButtonColor.Primary)("color","white"),a(),u("ngIf",(t.commonData==null||t.commonData.forms==null||t.commonData.forms.selected==null?null:t.commonData.forms.selected.IsHtmlChanged)&&(t.commonData==null||t.commonData.forms==null||t.commonData.forms.selected==null?null:t.commonData.forms.selected.FormType)==3&&!t.showNewGuestFormClicked),a(),u("ngIf",!(!(t.commonData==null||t.commonData.forms==null||t.commonData.forms.selected==null)&&t.commonData.forms.selected.IsHtmlChanged&&(t.commonData==null||t.commonData.forms==null||t.commonData.forms.selected==null?null:t.commonData.forms.selected.FormType)==3)||t.showNewGuestFormClicked)}}function te(i,s){if(i&1){let t=F();P(0),C(1,Zt,4,6,"div",27)(2,Qt,9,18,"div",27),l(3,"iframe",28,0),y("load",function(){b(t);let n=m(3);return w(n.onLoad())}),c(),I(5,"br"),l(6,"div",22)(7,"div",23),C(8,qt,2,4,"button",29)(9,Xt,3,6,"button",30),c()(),U()}if(i&2){let t=m(3);a(),u("ngIf",(t.commonData==null||t.commonData.forms==null||t.commonData.forms.selected==null?null:t.commonData.forms.selected.IsExpired)&&(t.commonData==null||t.commonData.forms==null||t.commonData.forms.selected==null?null:t.commonData.forms.selected.FormType)==3),a(),u("ngIf",(t.commonData==null||t.commonData.forms==null||t.commonData.forms.selected==null?null:t.commonData.forms.selected.IsHtmlChanged)&&(t.commonData==null||t.commonData.forms==null||t.commonData.forms.selected==null?null:t.commonData.forms.selected.FormType)==3&&!t.showNewGuestFormClicked),a(),u("ngStyle",!(t.commonData==null||t.commonData.forms==null||t.commonData.forms.selected==null)&&t.commonData.forms.selected.IsHtmlChanged&&(t.commonData==null||t.commonData.forms==null||t.commonData.forms.selected==null?null:t.commonData.forms.selected.FormType)==3&&!t.showNewGuestFormClicked?st(6,Bt):"")("src",t.guestFormUrl,ot),a(5),u("ngIf",t.showPrintButton),a(),u("ngIf",!t.showPrintButton&&!t.constants.GUESTFORM_READONLY&&!(!(t.commonData==null||t.commonData.forms==null||t.commonData.forms.selected==null)&&t.commonData.forms.selected.Viewonly)&&!t.isSubmitLocked)}}
1function ee(i,s){if(i&1&&(P(0),C(1,$t,6,3,"ng-container",17)(2,te,10,7,"ng-container",17),U()),i&2){let t=m(2);a(),u("ngIf",t.showGuestDetails),a(),u("ngIf",!t.showGuestDetails)}}function oe(i,s){if(i&1&&(l(0,"div",15),C(1,zt,5,6,"div",16)(2,ee,3,2,"ng-container",17),c()),i&2){let t=m();v("background-color",t.data==null?null:t.data.templateSettings.BackgroundColor.Primary)("color",t.commonData==null||t.commonData.templateSettings==null||t.commonData.templateSettings.TextColor==null?null:t.commonData.templateSettings.TextColor.Primary),a(),u("ngIf",t.commonData==null||t.commonData.forms==null?null:t.commonData.forms.isFetchingUrlParams),a(),u("ngIf",t.showFormDetails)}}var L=(()=>{let s=class s{onload(e){this.el=e.srcElement}constructor(e,n,o,r,p,g,h){this.store=e,this.activatedRoute=n,this.webstoreCommonService=o,this.constantSetterAndGetterService=r,this.zenDialogService=p,this.domSanitizer=g,this.actions$=h,this.unsubscribe$=new B,this.isDealsPageFromUrl=!1,this.showPrintButton=!1,this.showGuestDetails=!1,this.destroyed$=new B,this.expiredLink=!1,this.showFormDetails=!1,this.showGuestDetailsOnForm=!1,this.showNewGuestFormClicked=!1,this.onSaveGuestProfile=new et,this.setCurrencyValueFormat=St,this.showSidebarContent=!1,this.guestDataUpdated=!1,this.classKey=V.WebstoreGuestCustomForm,this.userProfileClassKey=V.WebstoreUserProfile,this.registerContextChangeDetectionFlag=!1,this.commonClassKey=V.WebstoreCommon,this.formsTabLabel="",this.isSubmitLocked=!1,this.setRegisterContextChangeDetectionFlag=()=>{this.registerContextChangeDetectionFlag=!0},this.commonData$=this.store.select("webstoreCommonState"),this.commonData$.pipe(T(this.destroyed$)).subscribe(D=>{this.commonData=D}),this.getLocalizedDataPipe=new O}ngOnInit(){var e,n;Z(this.classKey,this.setRegisterContextChangeDetectionFlag),Z(this.userProfileClassKey,this.setRegisterContextChangeDetectionFlag),window.addEventListener("message",o=>{var r,p,g,h;try{let D=typeof o.data=="string"?JSON.parse(o.data):o.data;D&&D.type==="v3FormMandatedBannerVisible"?(p=(r=this.commonData)==null?void 0:r.forms)!=null&&p.selected&&(this.commonData.forms.selected.Viewonly=!0):D&&D.type==="newFormBannerClick"&&(h=(g=this.commonData)==null?void 0:g.forms)!=null&&h.selected&&(this.commonData.forms.selected.Viewonly=!1)}catch{}},!1),this.actions$.pipe(A(E.SET_CONTEXT_DATA),T(this.unsubscribe$)).subscribe(o=>{this.commonData.guest.isGuestLoggedIn&&this.openGuestFormAndDetails()}),this.actions$.pipe(A(E.GET_CUSTOM_URL_PARAMS_SUCCESS),T(this.unsubscribe$)).subscribe(o=>{let{payload:{guest_id:r,is_link_expired:p,user_token:g}}=o;this.userId=r,!p&&(!this.commonData.guest.isGuestLoggedIn||this.constants.USER_ID&&r&&this.constants.USER_ID.toLowerCase()===r.toLowerCase())?this.initGuestForm(r,g):(this.expiredLink=!0,this.invokeSignIn())}),this.actions$.pipe(A(E.GET_USER_DETAILS_SUCCESS),T(this.unsubscribe$)).subscribe(o=>{this.constants=new G().getConstants()}),this.constants=new G().getConstants(),this.store.dispatch(new bt({fetchToken:!this.constants.ORGANIZATION_SETTINGS.protectGuestData})),this.showPrintButton=vt(this.activatedRoute.snapshot.queryParamMap,"Print")=="true",this.showGuestDetailsOnForm=R((n=(e=this.commonData)==null?void 0:e.templateSettings)==null?void 0:n.Details,"show_guest_details_on_custom_guest_form"),this.setFormsTabLabel()}setFormsTabLabel(){var e,n,o,r,p,g;if(this.formsTabLabel=this.getLocalizedDataPipe.transform("Forms","FormsTab",this.classKey,this.registerContextChangeDetectionFlag),(o=(n=(e=this.constants)==null?void 0:e.ORGANIZATION_SETTINGS)==null?void 0:n.customLabels)!=null&&o.length){let h=(g=(p=(r=this.constants)==null?void 0:r.ORGANIZATION_SETTINGS)==null?void 0:p.customLabels)==null?void 0:g.filter(D=>D.key==="guestCustomDataLabel");h&&h.length&&h[0].text&&(this.formsTabLabel=h[0].text)}}onLoad(){var e,n,o;(o=(n=(e=this.commonData)==null?void 0:e.forms)==null?void 0:n.selected)!=null&&o.FormUrl&&this.injectCustomHtml()}initGuestForm(e,n){if(this.constants=new G().getConstants(),this.userId||(this.userId=e),(!this.commonData.guest.isGuestLoggedIn||this.userId.toLowerCase()!==this.constants.USER_ID.toLowerCase())&&this.constants.ORGANIZATION_SETTINGS.protectGuestData){if(this.showGuestDetails=!1,this.invokeSignIn(),this.constants.USER_ID&&this.userId.toLowerCase()!==this.constants.USER_ID.toLowerCase()){var o=wt("You do not have access to this form, Please use appropriate user credentials","FormAccessFailureMessage",this.commonClassKey[0]);this.store.dispatch(new _t({global:o}))}}
1else this.store.dispatch(new ht({reqdForms:1,AppointmentGroupId:"",UserId:this.userId})),this.commonData.guest.isGuestLoggedIn&&this.constants.USER_ID&&this.constants.USER_ID.toLowerCase()===this.userId.toLowerCase()?this.openGuestFormAndDetails():(new G().setConstants(X(J({},this.constants),{WEB_API_TOKEN:n})),window.globalJson.webApiToken=n,this.openGuestFormAndDetails())}injectCustomHtml(){let e=document.getElementById("v3formChangeDetectionHiddenId");if(e)e.innerHTML="false";else{let n=document.getElementById("iframeform"),o=document.createElement("div");o.id="v3formChangeDetectionHiddenId",o.innerHTML="false",n.insertBefore(o,n.firstChild)}}showOrHideDiscardPopup(){var n,o,r;if(!((r=(o=(n=this.commonData)==null?void 0:n.forms)==null?void 0:o.selected)!=null&&r.FormUrl))return!0;let e=document.getElementById("v3formChangeDetectionHiddenId");return(e==null?void 0:e.innerHTML)=="true"}changeTab(e){!e&&this.showGuestDetailsOnForm&&this.guestDataUpdated||e&&this.showOrHideDiscardPopup()?confirm("Changes are done and will be discarded. Do you wish to proceed?")&&(this.showGuestDetails=e,this.guestDataUpdated=!1):(this.showGuestDetails=e,this.guestDataUpdated=!1),e&&this.showGuestDetailsOnForm&&this.store.dispatch(new $(this.userId))}printForm(){document.getElementById("iframeform").contentWindow.print()}onNewFormClick(e){if(!e)return!1;if((e==null?void 0:e.FormFilledStatus)===1)if(confirm("This form has been only saved as a draft. If you switch to the newer version without submitting this form, your current data will be lost. Do you want to continue?"))this.LoadNewForm();else return!1;else this.LoadNewForm()}LoadNewForm(){this.showNewGuestFormClicked=!0,this.openGuestForm(this.userId,this.showNewGuestFormClicked);var e=document.getElementById("iframeform");e.src=this.guestFormUrl}canSaveAndSubmitForm(e){return!(!e||this.constantSetterAndGetterService.getConstants().GUESTFORM_READONLY||e.Viewonly||e!=null&&e.IsHtmlChanged&&(e==null?void 0:e.FormType)==3&&(e==null?void 0:e.FormFilledStatus)===2&&!this.showNewGuestFormClicked)}openGuestFormAndDetails(){this.showFormDetails=!0,this.actions$.pipe(A(E.GET_USER_FORMS_SUCCESS),T(this.unsubscribe$)).subscribe(e=>{this.openGuestForm(this.userId,this.showNewGuestFormClicked)}),this.store.dispatch(new $(this.userId))}
1getSettingsValues(e,n){return R(e,n)}ngOnDestroy(){this.destroyed$.next(!0)}invokeSignIn(){this.zenDialogService.showDialog(this.commonData.dialog.webstoreAuthDialog),this.store.dispatch(new ft({fromFormsComponent:!0,UserId:this.userId}))}closeAuthDialog(){this.zenDialogService.showDialog(this.commonData.dialog.webstoreAuthDialog)}openGuestForm(e,n=!1){var r,p,g,h,D,Y;let o="";if((g=(p=(r=this.commonData)==null?void 0:r.forms)==null?void 0:p.selected)!=null&&g.FormUrl)o=yt((Y=(D=(h=this.commonData)==null?void 0:h.forms)==null?void 0:D.selected)==null?void 0:Y.FormUrl);else{let Vt="/WebStore/WebstoreV2HtmlForm.aspx?ForProfile=1&fromWebstorev2=true&Header=No&CenterId="+this.constants.CENTER_ID+"&OrgId="+this.constants.ORGANIZATION_ID+"&customFieldType=2&ViewContext=2&HandlerId="+e+"&OwnerId="+e+"&isNewForm="+n;o=xt(Vt,!0)}this.constants.GUESTFORM_READONLY&&(o=o+"&Print=true"),this.guestFormUrl=this.domSanitizer.bypassSecurityTrustResourceUrl(o)}updateUserDetails(e){}saveGuest(){this.commonData.forms.guestDetails.isFormValid?(this.store.dispatch(new Dt({})),this.guestDataUpdated=!1):alert("Guest details are invalid please check")}saveForm(e){var r;this.isSubmitLocked=!0;let n=(r=this.constants)==null?void 0:r.SUBMIT_COOLDOWN_MS,o=typeof n=="number"&&n>0?n:0;if(setTimeout(()=>{this.isSubmitLocked=!1},o),this.canSaveAndSubmitForm(e)){let p=document.getElementById("iframeform"),g={formSaved:!0};p.contentWindow.postMessage(JSON.stringify(g),window.location.origin)}this.guestDataUpdated=!1}goHome(){var e=R(this.commonData.templateSettings.Details,"home_page_url");e.indexOf("http://")===-1&&e.indexOf("https://")===-1&&(e="http://"+e),window.location.href=e}getHTMLAttribute(e,n,o){if(n=="custom_header"){let r=Q(e,n,o)}else return Q(e,n,o)}guestDetailsUpdate(e){this.guestDataUpdated=!0,this.store.dispatch(new Ct(e))}getStates(e){this.store.dispatch(new gt(e))}};s.\u0275fac=function(n){return new(n||s)(x(It),x(Ft),x(Et),x(G),x(Tt),x(pt),x(Gt))},s.\u0275cmp=tt({type:s,selectors:[["webstore-guest-custom-form"]],viewQuery:function(n,o){if(n&1&&(z(Rt,5),z(kt,5)),n&2){let r;j(r=H())&&(o.loginframe=r.first),j(r=H())&&(o.webstoreAuth=r.first)}},inputs:{primarycolor:"primarycolor",service:"service"},outputs:{onSaveGuestProfile:"onSaveGuestProfile"},decls:16,vars:26,consts:[["iframeform",""],["role","main",1,"row",2,"background-color","#ffffff","overflow","auto"],[1,"col-md-1"],["id","container2",1,"col-md-10"],["class","logo","style","padding-left: 5%;",4,"ngIf"],[1,"row"],[1,"p-0"],["tabindex","0","role","button",1,"pointer","soft","flex--row-align-center","push-double--bottom",3,"click","keyup.enter"],[2,"font-size","1em"],["class","col-6 p-0",4,"ngIf"],["style","height: 85vh;",3,"background-color","color",4,"ngIf"],[1,"logo",2,"padding-left","5%"],[1,"navbar-brand",3,"href"],[1,"img-fluid",3,"src","alt","title"],[1,"col-6","p-0"],[2,"height","85vh"],["class","centeralign jumbotron mt-0",4,"ngIf"],[4,"ngIf"],[1,"centeralign","jumbotron","mt-0"],[1,"generic-loader"],["role","alert",1,"text-center","service-loader-message"],[3,"data","commonData","constants","showPrintButton","onGuestDetailsUpdate","onGetStates",4,"ngIf"],[1,"d-flex","flex-row"],[1,"col-12","d-flex","justify-content-center"],["type","button","class","d-flex flex-row btn btn-secondary btn-lg justify-content-center save-button",3,"background","color","click",4,"ngIf"],[3,"onGuestDetailsUpdate","onGetStates","data","commonData","constants","showPrintButton"],["type","button",1,"d-flex","flex-row","btn","btn-secondary","btn-lg","justify-content-center","save-button",3,"click"],["class","row col-12","style","margin: 1%;",4,"ngIf"],["scrolling","auto","frameborder","0","id","iframeform","title","guestCustomForm",1,"iframe-form",2,"margin-left","1%","position","relative","height","80%","width","95%",3,"load","ngStyle","src"],["type","button","id","webstorePrintBtn","class","d-flex flex-row btn btn-secondary btn-lg justify-content-center form-button","tabindex","0",3,"color","background-color","click",4,"ngIf"],["type","button","class","d-flex flex-row btn btn-secondary btn-lg justify-content-center form-button",3,"background","color","click",4,"ngIf"],[1,"row","col-12",2,"margin","1%"],[1,"selected-form",2,"text-align","center","background-color","#fcf8e3","color","#8a6d3b"],[1,"selected-form"],[1,"pointer",2,"color","rgb(96, 178, 243)",3,"click"],["type","button","id","webstorePrintBtn","tabindex","0",1,"d-flex","flex-row","btn","btn-secondary","btn-lg","justify-content-center","form-button",3,"click"],["type","button",1,"d-flex","flex-row","btn","btn-secondary","btn-lg","justify-content-center","form-button",3,"click"]],template:function(n,o){n&1&&(l(0,"div",1),I(1,"div",2),l(2,"div",3),C(3,Wt,5,17,"div",4),l(4,"div",5)(5,"div",6)(6,"div",7),y("click",function(){return o.changeTab(!1)})("keyup.enter",function(){return o.changeTab(!1)}),l(7,"span",8)(8,"b"),d(9),f(10,"getLocalizedValues"),f(11,"titlecase"),c(),d(12,"\xA0 \xA0 "),c()()(),C(13,Mt,7,17,"div",9),c(),C(14,oe,3,6,"div",10),c(),I(15,"div",2),c()),n&2&&(a(3),u("ngIf",!!o.getSettingsValues(o.commonData==null||o.commonData.templateSettings==null?null:o.commonData.templateSettings.Details,"header_img_url")||o.constants.ORGANIZATION_SETTINGS.logoURL),a(2),nt("col-6",o.showGuestDetailsOnForm)("col-12",!o.showGuestDetailsOnForm),a(),v("background-color","white")("color",o.commonData==null||o.commonData.templateSettings==null||o.commonData.templateSettings.ButtonColor==null?null:o.commonData.templateSettings.ButtonColor.Primary)("border-bottom",o.showGuestDetails?"":"solid")("border-bottomcolor",o.showGuestDetails?"":o.commonData==null||o.commonData.templateSettings==null||o.commonData.templateSettings.ButtonColor==null?null:o.commonData.templateSettings.ButtonColor.Primary)("font-weight",o.showGuestDetails?400:700),M("aria-expanded",!o.showGuestDetails),a(3),S(" ",o.formsTabLabel?o.formsTabLabel:at(11,24,_(10,19,"Forms","FormsTab",o.classKey,o.registerContextChangeDetectionFlag))," "),a(4),u("ngIf",o.showGuestDetailsOnForm),a(),u("ngIf",(o.commonData==null||o.commonData.guest==null?null:o.commonData.guest.isGuestLoggedIn)&&(o.userId==null?null:o.userId.toLowerCase())==(o.commonData==null||o.commonData.guest==null||o.commonData.guest.Id==null?null:o.commonData.guest.Id.toLowerCase())||!o.constants.ORGANIZATION_SETTINGS.protectGuestData))},dependencies:[rt,lt,Nt,mt,O],styles:["html[_ngcontent-%COMP%]{overflow-y:hidden;overflow-x:hidden}.selected-form[_ngcontent-%COMP%]{background-color:#f2f2f2;width:95%;text-align:center;padding:5px}.save-button[_ngcontent-%COMP%], .form-button[_ngcontent-%COMP%]{margin-block-end:20px;white-space:normal!important;word-wrap:break-word!important}"]});let i=s;return i})();var ne=[{path:"",pathMatch:"full",component:L},{path:":requestId",pathMatch:"full",component:L}];var Ot=(()=>{let s=class s{};s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=N({type:s}),s.\u0275inj=k({imports:[q.forChild(ne),q]});let i=s;return i})();var Be=(()=>{let s=class s{};s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=N({type:s,bootstrap:[L]}),s.\u0275inj=k({providers:[ut(dt())],imports:[ct,Pt,Ot,At,Lt]});let i=s;return i})();export{Be as WebstoreCustomFormModule};
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.