PageSourceSearch

https://www.progold.eu/chunk-UAGBRNRZ.js

js progold.eu collected 2026-10-09 21:52:43 UTC 33,098 bytes, 1 lines download raw bytes

1import{a as we,b as Oe,c as Le,d as Pe}from"./chunk-XXJ5KP6J.js";import{a as U,b as Ee,c as Re,d as Me,e as Ae}from"./chunk-TNG3WTDY.js";import{h as xe}from"./chunk-B63DOPR3.js";import"./chunk-KJ2DTZTE.js";import"./chunk-EKXRV2PZ.js";import"./chunk-IJVUT4FL.js";import"./chunk-XJNXF36J.js";import"./chunk-OQWTUUQ3.js";import"./chunk-BYUXZABT.js";import{nb as be,w as Ie,wb as ve}from"./chunk-CSKO464Y.js";import{B as Te,C as Se}from"./chunk-RFZ65DFT.js";import"./chunk-ZAELU3GP.js";import"./chunk-KCBWTIVH.js";import"./chunk-Q7LOV5U2.js";import"./chunk-V7OSM6MA.js";import{a as Ce,b as ye}from"./chunk-GSJIPMUW.js";import"./chunk-DIZWDXBB.js";import{$ as he,Q as _e,R as ge,_ as fe}from"./chunk-Q4MTVQC2.js";import{b as J,d as Q}from"./chunk-RRAYDVNW.js";import{$b as ce,Ad as G,Na as l,Wb as le,cc as W,dd as j,hd as Y,id as $,ld as H,od as pe,qd as Z,rd as de,td as ue,xd as me}from"./chunk-WGWIBZ2L.js";import{$b as T,$c as m,Ac as k,Bc as V,Cc as ae,Fa as E,Ga as R,Gb as M,Ib as d,Kb as re,La as ne,Ob as f,Oc as b,Pc as v,Qa as w,Qb as oe,Rb as N,Sb as D,Ta as I,Tb as a,Tc as te,Ub as s,Vb as C,Zb as O,ac as p,ad as q,fd as se,hb as o,pc as u,qc as F,rc as S,tb as A,ua as K,ya as _,zb as g,zc as L}from"./chunk-6LP6WHZQ.js";import"./chunk-5KTCK5IS.js";var h=(function(t){return t.CONTINUE="continue",t.VERIFY_EMAIL="verify-email",t.SUBMIT="submit",t})(h||{}),y=(function(t){return t.LOADING="loading",t.VALID="valid",t.INVALID="invalid",t.EMPTY="empty",t})(y||{});function Ke(t,r){if(t&1&&(a(0,"div",3),C(1,"i",5),a(2,"span"),u(3),s()()),t&2){let e=p();d("id",e.errorId()),o(3),F(r)}}function qe(t,r){if(t&1&&C(0,"ppg-message-indicator",4),t&2){p();let e=V(0);d("message",e.infoMessage)("allowHtml",e.infoMessageAllowHtml)}}var We=new RegExp(le),De=(()=>{class t{constructor(){this.#e=I(0),this.config=w.required(),this.control=w.required(),this.errorId=m(()=>`${this.config().id}-error`),this.errorMessage=m(()=>(this.#e(),this.#n())),this.isInvalid=m(()=>this.control().invalid||!!this.errorMessage()),this.#t=q(e=>{let i=this.control(),n=()=>this.#e.update(x=>x+1),c=i.valueChanges.subscribe(n),P=i.statusChanges.subscribe(n);e(()=>{c.unsubscribe(),P.unsubscribe()})})}#e;#t;#n(){let e=this.config(),i=this.control();return e.errorMessage||i.disabled?e.errorMessage:this.#a(e,i.value?.trim())}#a(e,i){return i?this.#o(e,i):this.#r(e)}#r(e){return e.required?e.requiredMessage:void 0}#o(e,i){return We.test(i)?ce.isPPGEmailRegex.test(i)?e.emailNotAllowedMessage:void 0:e.invalidEmailMessage}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=A({type:t,selectors:[["ppg-email-field"]],inputs:{config:[1,"config"],control:[1,"control"]},decls:6,vars:14,consts:[[3,"for","label","required"],[1,"email-field__content"],["pInputText","","type","email",1,"email-field__input",3,"id","required","formControl","placeholder"],["role","alert",1,"email-field__error",3,"id"],["severity","info","dataTestId","email-field.information",1,"email-field__information",3,"message","allowHtml"],["aria-hidden","true",1,"pi","pi-exclamation-circle"]],template:function(i,n){if(i&1&&(L(0),a(1,"ppg-input-group",0)(2,"div",1),C(3,"input",2),g(4,Ke,4,2,"div",3)(5,qe,1,2,"ppg-message-indicator",4),s()()),i&2){let c,P,x=k(n.config());o(),d("for",x.id)("label",x.label)("required",x.required),o(2),re("ng-invalid",n.isInvalid()),d("id",x.id)("required",x.required)("formControl",n.control())("placeholder",(c=x.placeholder)!==null&&c!==void 0?c:null),M("aria-invalid",n.isInvalid()?"true":null)("aria-describedby",n.errorMessage()?n.errorId():null),o(),f((P=n.errorMessage())?4:-1,P),o(),f(x.infoMessage?5:-1)}},dependencies:[be,he,fe,G,j,Y,ue,Z,ve],styles:["[_nghost-%COMP%]{display:block}.email-field__content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--space-xs)}.email-field__input[_ngcontent-%COMP%]{width:100%}.email-field__error[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--p-pds-p-hint-gap);align-self:stretch;color:var(--p-message-error-simple-color);font-size:var(--p-pds-typography-body-small-size);line-height:var(--p-pds-typography-body-small-line-height)}[_nghost-%COMP%]     .email-field__information .message-indicator__rich-text a:link{color:var(--p-pds-message-colors-on-surface-contained-info)}[_nghost-%COMP%]     .email-field__information .message-indicator__rich-text p{margin:0}"],changeDetection:0})}}return t})();var je=(t,r)=>r.key;function Ye(t,r){if(t&1){let e=O();a(0,"button",5),T("click",function(){let n=E(e).$index,c=p();return R(c.selectState(n))}),u(1),s()}if(t&2){let e=r.$implicit,i=r.$index,n=p();M("data-test-id","demo.state."+e.key)("aria-pressed",n.selectedIndex()===i),o(),S(" ",e.label," ")}}var $e=[{key:"default",label:"Default",errorResource:null,informationalResource:null},{key:"required",label:"Required",errorResource:l.MULTISTEP_REGISTRATION_EMAIL_REQUIRED,informationalResource:null},{key:"validation-error",label:"Validation error",errorResource:l.MULTISTEP_REGISTRATION_EMAIL_INVALID,informationalResource:null},{key:"cannot-register-ppg-account",label:"Cannot register PPG account",errorResource:l.MULTISTEP_REGISTRATION_EMAIL_CAN_T_REGISTER,informationalResource:null},{key:"existing-account",label:"Existing account",errorResource:null,informationalResource:l.MULTISTEP_REGISTRATION_EMAIL_USER_HAVE_ACCOUNT},{key:"registration-in-progress",label:"Registration in progress",errorResource:null,informationalResource:l.MULTISTEP_REGISTRATION_EMAIL_REGISTRATION_STILL_IN_PROGRESS},{key:"no-password-info",label:"No password info",errorResource:null,informationalResource:l.MULTISTEP_REGISTRATION_EMAIL_NO_PASSWORD_NEEDED_TO_FILL}],ke=(()=>{class t{constructor(){this.#e=_(J),this.states=$e,this.control=new H("[email protected]"),this.selectedIndex=I(0),this.isDisabled=I(!1),this.selectedState=m(()=>this.states[this.selectedIndex()]),this.informationalContent=m(()=>this.getResource(this.selectedState().informationalResource)),this.config=m(()=>({errorMessage:this.getResource(this.selectedState().errorResource)?.value,id:"demo-email",infoMessage:this.informationalContent()?.value,infoMessageAllowHtml:this.informationalContent()?.type===Ie,invalidEmailMessage:this.#e.getResourceByKey(l.MULTISTEP_REGISTRATION_EMAIL_INVALID),label:this.#e.getResourceByKey(l.MULTISTEP_REGISTRATION_EMAIL_LABEL)??"",required:!0,requiredMessage:this.#e.getResourceByKey(l.MULTISTEP_REGISTRATION_EMAIL_REQUIRED),emailN
1otAllowedMessage:this.#e.getResourceByKey(l.MULTISTEP_REGISTRATION_EMAIL_CAN_T_REGISTER),placeholder:this.#e.getResourceByKey(l.MULTISTEP_REGISTRATION_EMAIL_PLACEHOLDER)}))}#e;getResource(e){if(e)return this.#e.getResourceItemWithTypeByKey(e)}selectState(e){this.selectedIndex.set(e),this.control.setErrors(this.selectedState().errorResource?{demoState:!0}:null)}toggleDisabled(){this.isDisabled.update(e=>!e),this.isDisabled()?this.control.disable():this.control.enable()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=A({type:t,selectors:[["ppg-email-field-states-demo"]],decls:7,vars:3,consts:[["data-test-id","email-field-states-demo",1,"demo"],[1,"demo__buttons"],["type","button"],["type","button","data-test-id","demo.state.toggle-disabled",3,"click"],[3,"config","control"],["type","button",3,"click"]],template:function(i,n){i&1&&(a(0,"div",0)(1,"div",1),N(2,Ye,2,3,"button",2,je),a(4,"button",3),T("click",function(){return n.toggleDisabled()}),u(5),s()(),C(6,"ppg-email-field",4),s()),i&2&&(o(2),D(n.states),o(3),S(" ",n.isDisabled()?"Enable":"Disable"," control "),o(),d("config",n.config())("control",n.control))},dependencies:[De],styles:["[_nghost-%COMP%]{display:block}.demo[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--space-xl);padding:var(--space-base) var(--space-none)}.demo__buttons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:var(--space-xxs)}"],changeDetection:0})}}return t})();var He=(t,r)=>r.id;function Ze(t,r){t&1&&C(0,"ppg-email-field-states-demo")}function Je(t,r){t&1&&g(0,Ze,1,0,"ppg-email-field-states-demo"),t&2&&f(r.renderer==="email"?0:-1)}function Qe(t,r){if(t&1&&g(0,Je,1,1),t&2){let e,i=r.$implicit,n=p(2);f((e=n.fieldsById()[i])?0:-1,e)}}function Xe(t,r){if(t&1&&(a(0,"div",3),N(1,Qe,1,1,null,null,oe),s()),t&2){let e=r.$implicit;p();let i=V(0);M("aria-label",i.sectionTitles[e.id]),o(),D(e.fieldIds)}}var Ve=(()=>{class t{constructor(){this.#e=_(J),this.definition=w.required(),this.group=w.required(),this.fieldsById=m(()=>Object.fromEntries(this.definition().fields.map(e=>[e.id,e]))),this.resources=m(()=>{let e=this.definition();return{title:this.#e.getResourceByKey(e.titleKey)||e.titleKey,summary:this.#e.getResourceByKey(e.summaryKey)||e.summaryKey,sectionTitles:Object.fromEntries(e.sections.map(i=>[i.id,this.#e.getResourceByKey(i.titleKey)||i.titleKey]))}})}#e;static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=A({type:t,selectors:[["ppg-registration-step"]],inputs:{definition:[1,"definition"],group:[1,"group"]},decls:8,vars:8,consts:[[1,"registration-step",3,"formGroup"],[1,"registration-step__title",3,"id"],[1,"registration-step__summary",3,"id"],["role","group",1,"registration-step__section"]],template:function(i,n){if(i&1&&(L(0),a(1,"section",0)(2,"h2",1),u(3),s(),a(4,"p",2),u(5),s(),N(6,Xe,3,1,"div",3,He),s()),i&2){let c=k(n.resources());o(),d("formGroup",n.group()),M("aria-labelledby","registration-step-title-"+n.definition().id)("aria-describedby","registration-step-summary-"+n.definition().id),o(),d("id","registration-step-title-"+n.definition().id),o(),S(" ",c.title," "),o(),d("id","registration-step-summary-"+n.definition().id),o(),S(" ",c.summary," "),o(),D(n.definition().sections)}},dependencies:[ke,G,$,de],styles:["[_nghost-%COMP%]{display:block}.registration-step[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--p-pds-unit-600, 24px)}.registration-step__title[_ngcontent-%COMP%]{margin:0;font-size:var(--p-pds-typography-headings-h2-size, 32px);line-height:var(--p-pds-typography-headings-h2-line-height, 40px);font-weight:var(--p-pds-typography-weight-bold);color:var(--p-pds-on-surface-neutral-extreme-strong, #081520)}.registration-step__summary[_ngcontent-%COMP%]{margin:0;font-size:var(--p-pds-typography-body-medium-size, 16px);line-height:var(--p-pds-typography-body-medium-line-height, 24px);color:var(--p-pds-on-surface-neutral-extreme-strong, #081520)}.registration-step__section[_ngcontent-%COMP%]{background:var(--card-bg-neutral-default, #fff);border:1px solid var(--card-border-neutral-default, #9facbb);border-radius:var(--card-radius, 8px);padding:var(--p-pds-unit-400, 16px)}"],changeDetection:0})}}return t})();var ze=["text","email","password","phone","checkbox","select","security-code","address-group","store-locator"];
1var z={schemaVersion:"1.0",wizardId:"b2b-account-registration",market:"DK",steps:[{id:"account-credentials",backNavigationEnabled:!1,actionType:h.CONTINUE,actionLabel:l.MULTISTEP_REGISTRATION_CONTINUE_BUTTON_LABEL,titleKey:l.MULTISTEP_REGISTRATION_ACCOUNT_CREDENTIALS_TITLE,summaryKey:l.MULTISTEP_REGISTRATION_ACCOUNT_CREDENTIALS_SUMMARY,fields:[{id:"email",renderer:"email",required:!0,resourceKey:"Email address",submissionPath:"account.email"},{id:"password",renderer:"password",required:!0,resourceKey:"Password",submissionPath:"account.password"},{id:"confirmPassword",renderer:"password",required:!0,resourceKey:"Confirm password",submissionPath:"account.confirmPassword"},{id:"terms",renderer:"checkbox",required:!0,resourceKey:"I agree to the terms and conditions.",submissionPath:"consents.terms"},{id:"privacy",renderer:"checkbox",required:!0,resourceKey:"I agree to the privacy policy.",submissionPath:"consents.privacy"}],sections:[{id:"credentials",titleKey:"Credentials",fieldIds:["email","password","confirmPassword"]},{id:"consents",titleKey:"Consents",fieldIds:["terms","privacy"]}]},{id:"email-verification",backNavigationEnabled:!0,actionType:h.VERIFY_EMAIL,actionLabel:l.MULTISTEP_REGISTRATION_VERIFY_EMAIL_BUTTON_LABEL,titleKey:l.MULTISTEP_REGISTRATION_EMAIL_VERIFICATION_TITLE,summaryKey:l.MULTISTEP_REGISTRATION_EMAIL_VERIFICATION_SUMMARY,fields:[{id:"securityCode",renderer:"security-code",required:!0,resourceKey:"Security code"}],sections:[{id:"verification",titleKey:"Verification",fieldIds:["securityCode"]}]},{id:"contact-details",backNavigationEnabled:!0,actionType:h.CONTINUE,actionLabel:l.MULTISTEP_REGISTRATION_CONTINUE_BUTTON_LABEL,titleKey:l.MULTISTEP_REGISTRATION_CONTACT_DETAILS_TITLE,summaryKey:l.MULTISTEP_REGISTRATION_CONTACT_DETAILS_SUMMARY,fields:[{required:!0,resourceKey:"First name",submissionPath:"contact.firstName",id:"firstName",renderer:"text"},{id:"lastName",renderer:"text",required:!0,resourceKey:"Last name",submissionPath:"contact.lastName"},{id:"phoneNumber",renderer:"phone",required:!0,resourceKey:"Phone number",submissionPath:"contact.phoneNumber"}],sections:[{id:"contact",titleKey:"Contact information",fieldIds:["firstName","lastName","phoneNumber"]}]},{id:"company-details",backNavigationEnabled:!0,titleKey:l.MULTISTEP_REGISTRATION_COMPANY_DETAILS_TITLE,summaryKey:l.MULTISTEP_REGISTRATION_COMPANY_DETAILS_SUMMARY,fields:[{id:"companyName",renderer:"text",required:!0,resourceKey:"Company name"},{id:"vatNumber",renderer:"text",required:!0,resourceKey:"VAT number",submissionPath:"company.vatNumber"},{id:"preferredStore",renderer:"store-locator",required:!0,resourceKey:"Preferred store",submissionPath:"company.preferredStoreId"}],sections:[{id:"company",titleKey:"Company information",fieldIds:["companyName","vatNumber","preferredStore"]}],actionType:h.SUBMIT,actionLabel:l.MULTISTEP_REGISTRATION_SUBMIT_BUTTON_LABEL}]},Jt={schemaVersion:"1.0",wizardId:"b2b-account-registration",steps:[],market:"DK"},Qt={steps:[{id:"",title:"",summary:""}]};var et=new Set(Object.values(h)),tt=new Set([h.VERIFY_EMAIL,h.SUBMIT]),it=new Set(ze),X=(()=>{class t{#e=_(W);load(e=z,i={}){let n=structuredClone(e);return this.#t(n)?{status:y.EMPTY,definition:null}:this.#n(n,i)?{status:y.VALID,definition:n}:(this.#e.error("[RegistrationWizardConfigService] invalid wizard definition"),{status:y.INVALID,definition:null})}#t(e){return this.#l(e)&&Array.isArray(e.steps)&&e.steps.length===0}#n(e,i){return this.#_(e)?this.#a(e)&&this.#p(e.steps.map(n=>n.id))&&this.#r(e.steps)&&this.#c(e.steps)&&this.#s(e.steps,i):!1}#a(e){return[e.schemaVersion,e.wizardId,e.market].every(i=>this.#d(i))}#r(e){return e.every(i=>this.#p(i.fields.map(n=>n.id)))}#o(e){let i=new Set(e.map(n=>n.actionType));return[...tt].every(n=>i.has(n))}#s(e,i){return i.requireActionTypes===!1?!0:this.#o(e)}#c(e){return e.every(i=>i.sections.length>0&&this.#p(i.sections.map(n=>n.id))&&this.#m(i))}#m(e){let i=e.fields.map(c=>c.id),n=e.sections.flatMap(c=>c.fieldIds);return this.#p(n)&&n.length===i.length&&i.every(c=>n.includes(c))}#_(e){return!this.#l(e)||!Array.isArray(e.steps)?!1:this.#i(e.schemaVersion)&&this.#i(e.wizardId)&&this.#i(e.market)&&e.steps.every(i=>this.#g(i))}#g(e){return this.#l(e)&&this.#i(e.id)&&typeof e.backNavigationEnabled=="boolean"&&this.#C(e.actionType)&&this.#i(e.actionLabel)&&this.#i(e.titleKey)&&this.#i(e.summaryKey)&&Array.isArray(e.fields)&&Array.isArray(e.sections)&&e.fields.every(i=>this.#f(i))&&e.sections.every(i=>this.#h(i))}#f(e){return this.#l(e)&&this.#i(e.id)&&this.#y(e.renderer)&&typeof e.required=="boolean"&&this.#u(e.resourceKey)&&this.#u(e.submissionPath)}#h(e){return this.#l(e)&&this.#i(e.id)&&this.#i(e.titleKey)&&Array.isArray(e.fieldIds)&&e.fieldIds.every(i=>this.#i(i))}#C(e){return this.#i(e)&&et.has(e)}#y(e){return this.#i(e)&&it.has(e)}#p(e){return e.every(i=>this.#d(i))&&new Set(e).size===e.length}#d(e){return this.#i(e)&&e.length>0}#u(e){return e===void 0||this.#i(e)}#i(e){return typeof e=="string"}#l(e){return typeof e=="object"&&e!==null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=K({token:t,factory:t.\u0275fac})}}return t})();function Fe(t,r){let e={};for(let i of r.steps)e[i.id]=t.group({});return t.group(e)}var Ge={definition:null,activeIndex:0},ee=Ee(Ae(Ge),Re(({definition:t,activeIndex:r})=>({activeStep:m(()=>
1t()?.steps[r()]??null),canGoBack:m(()=>r()>0&&(t()?.steps[r()]?.backNavigationEnabled??!1))})),Me(t=>({initialize(r){U(t,{definition:r,activeIndex:0})},reset(){U(t,Ge)},next(){let r=t.definition()?.steps.length??0;U(t,{activeIndex:Math.min(t.activeIndex()+1,Math.max(r-1,0))})},back(){t.canGoBack()&&U(t,{activeIndex:Math.max(t.activeIndex()-1,0)})},selectStep(r){let e=t.definition()?.steps.length??0;Number.isInteger(r)&&r>=0&&r<e&&U(t,{activeIndex:r})}})));var ie=(()=>{class t{#e;#t;#n;#a;#r;#o;#s;constructor(){this.#e=_(X),this.#t=_(ee),this.#n=_(W),this.#a=_(me),this.#r=I(z),this.#o=I({requireActionTypes:!0}),this.result=m(()=>this.#e.load(this.#r(),this.#o())),this.definition=this.#t.definition,this.activeIndex=this.#t.activeIndex,this.activeStep=this.#t.activeStep,this.canGoBack=this.#t.canGoBack,this.wizardForm=m(()=>{let e=this.result().definition;return e?Fe(this.#a,e):null}),this.activeGroup=m(()=>{let e=this.wizardForm(),i=this.activeStep();return e&&i?e.controls[i.id]:null}),this.#s=I(!0),this.isActiveStepValid=this.#s.asReadonly(),q(e=>{let i=this.activeGroup();if(!i){this.#s.set(!0);return}this.#s.set(i.status==="VALID");let n=i.statusChanges.subscribe(c=>this.#s.set(c==="VALID"));e(()=>n.unsubscribe())})}initialize(){this.#o.set({requireActionTypes:!0}),this.#c(this.result())}applyDefinitionSource(e){this.#o.set({requireActionTypes:!1}),this.#r.set(e);let i=this.result();return this.#c(i),i}resetDefinitionSource(){return this.applyDefinitionSource(z)}next(){this.#t.next()}back(){this.#t.back()}selectStep(e){this.#t.selectStep(e)}performPrimaryAction(){let e=this.activeGroup();if(!this.isActiveStepValid()){e?.markAllAsTouched();return}switch(this.#t.activeStep()?.actionType){case h.CONTINUE:this.next();return;case h.VERIFY_EMAIL:this.verifyEmail();return;case h.SUBMIT:this.submit();return}}verifyEmail(){this.#n.debug("[RegistrationWizardFacade] verify-email action dispatched"),this.next()}submit(){this.#n.debug("[RegistrationWizardFacade] submit action dispatched")}#c(e){if(e.status==="valid"){this.#t.initialize(e.definition);return}this.#t.reset()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=K({token:t,factory:t.\u0275fac})}}return t})();var nt=(t,r)=>r.id;function rt(t,r){if(t&1&&(a(0,"p-step",2),u(1),b(2,"resourceValue"),s()),t&2){let e=r.$implicit,i=r.$index;d("value",i+1)("disabled",!0),o(),S(" ",v(2,3,e.titleKey)," ")}}var Ue=(()=>{class t{constructor(){this.steps=w.required(),this.currentIndex=w.required(),this.activeStep=m(()=>this.steps()[this.currentIndex()]??null),this.resources=l}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=A({type:t,selectors:[["ppg-registration-stepper"]],inputs:{steps:[1,"steps"],currentIndex:[1,"currentIndex"]},decls:7,vars:5,consts:[[1,"stepper"],[3,"value","linear"],[3,"value","disabled"]],template:function(i,n){if(i&1&&(L(0),a(1,"nav",0),b(2,"resourceValue"),a(3,"p-stepper",1)(4,"p-step-list"),N(5,rt,3,5,"p-step",2,nt),s()()()),i&2){let c=n.currentIndex()+1;o(),M("aria-label",v(2,3,n.resources.MULTISTEP_REGISTRATION_STEPPER_LABEL)),o(2),d("value",c)("linear",!0),o(2),D(n.steps())}},dependencies:[Pe,Le,we,Oe,Q],styles:["[_nghost-%COMP%]{display:block}.stepper[_ngcontent-%COMP%]{margin:0 auto;max-width:var(--page-container-max-width);padding:var(--p-pds-unit-400) 0}p-step-list[_ngcontent-%COMP%]{overflow-inline:visible}@media all and (min-width:1280px){[_nghost-%COMP%]     .p-steplist{justify-content:normal;gap:5px}[_nghost-%COMP%]     .p-step{flex:0 1 auto;gap:var(--p-pds-unit-200);padding:0;width:100%;line-break:anywhere}[_nghost-%COMP%]     .p-step-number{flex:0 0 var(--p-pds-unit-600);height:var(--p-pds-unit-600);width:var(--p-pds-unit-600)}[_nghost-%COMP%]     .p-step-title{flex:0 1 auto;overflow-wrap:break-word;overflow:visible;text-overflow:unset;white-space:normal;text-align:left}[_nghost-%COMP%]     .p-stepper-separator{flex:1 1 auto;min-width:8px;max-width:20%}}@media all and (min-width:768px)and (max-width:1280px){[_nghost-%COMP%]     .p-step-title{max-width:68px;overflow-wrap:break-word;overflow:visible;text-overflow:unset;white-space:normal;text-align:left}[_nghost-%COMP%]     .p-step{padding:0 0 0 4px;gap:4px}[_nghost-%COMP%]     .p-stepper-separator{flex:1 1 auto;min-width:8px}}@media all and (max-width:767px){[_nghost-%COMP%]     .p-step-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}}"],changeDetection:0})}}return t})();function ot(t,r){if(t&1){let e=O();a(0,"p-button",12),b(1,"resourceValue"),b(2,"resourceValue"),T("onClick",function(){E(e);let n=p(2);return R(n.backToPreviousPage())}),a(3,"span",13),u(4),b(5,"resourceValue"),s()()}if(t&2){let e=p(2);d("label",v(1,7,e.resources.MULTISTEP_REGISTRATION_BACK_TO_LOGIN))("ariaLabel",v(2,9,e.resources.MULTISTEP_REGISTRATION_BACK_TO_LOGIN))("icon","pi pi-arrow-left")("iconPos","left")("severity","primary")("text",!0),o(4),F(v(5,11,e.resources.MULTISTEP_REGISTRATION_BACK_TO_LOGIN))}}function at(t,r){if(t&1){let e=O();a(0,"p-button",20),b(1,"resourceValue"),b(2,"resourceValue"),T("onClick",function(){E(e);let n=p(4);return R(n.back())}),s()}if(t&2){let e=p(4);d("label",v(1,3,e.resources.MULTISTEP_REGISTRATION_BACK_BUTTON_LABEL))("ariaLabel",v(2,5,e.resources.MULTISTEP_REGISTRATION_BACK_BUTTON_LABEL))("outlined",!0)}}function st(t,r){if(t&1){let e=O();a(0,"form",15),T("ngSubmit",function(){E(e);let n=p(3);return R(n.onPrimaryAction())}),C(1,"ppg-registration-step",16),a(2,"div",17),g(3,at,3,7,"p-button",18),a(4,"p-button",19),b(5,"resourceValue"),b(6,"resourceValue"),T("onClick",function(){E(e);let n=p(3);return R(n.onPrimaryAction())}),s()()()}if(t&2){let e=p(),i=p(2);o(),d("definition",e)("group",r),o(2),f(i.canGoBack()?3:-1),o(),d("label",v(5,6,e.actionLabel))("ariaLabel",v(6,8,e.actionLabel))("disabled",!i.isActiveStepValid())}}function lt(t,r){if(t&1&&g(0,st,7,10,"form",14),t&2){let e,i=p(2);f((e=i.activeGroup())?0:-1,e)}}function ct(t,r){if(t&1&&(a(0,"div",7),g(1,ot,6,13,"p-button",8),s(),a(2,"div",9)(3,"section",10),C(4,"ppg-registration-stepper",11),g(5,lt,1,1),s()()),t&2){let e,i=p(),n=V(0);o(),f(n===0?1:-1),o(3),d("steps",r.steps)("currentIndex",n),o(),f((e=i.activeStep())?5:-1,e)}}function pt(t,r){t&1&&(a(0,"p"),u(1,"Invalid wizard configuration"),s())}function dt(t,r){t&1&&(a(0,"p"),u(1,"Empty wizard configuration"),s())}function ut(t,r){t&1&&(a(0,"p"),u(1,"Wizard configuration loading..."),s())}function mt(t,r){if(t&1&&(a(0,"section",4),g(1,pt,2,0,"p")(2,dt,2,0,"p")(3,ut,2,0,"p"),s()),t&2){let e=p(),i=V(1);o(),f(i.status===e.registrationWizardStatus.INVALID?1:i.status===e.registrationWizardStatus.EMPTY?2:3)}}function _t(t,r){if(t&1&&(a(0,"h2",21),u(1),s()),t&2){let e=p();o(),S(" ",e.wizardConfigurationDrawerTitle," ")}}function gt(t,r){t&1&&(a(0,"p",27),u(1),s()),t&2&&(o(),S(" ",r," "))}function ft(t,r){if(t&1){let e=O();a(0,"form",22),T("ngSubmit",function(){E(e);let n=p();return R(n.applyWizardConfiguration())}),a(1,"p",23),u(2),s(),a(3,"label",24),u(4),s(),C(5,"textarea",25),a(6,"p",26),u(7," Paste a complete wizard definition object to test valid and invalid step configurations. "),s(),g(8,gt,2,1,"p",27),a(9,"div",28)(10,"p-button",29),T("onClick",function(){E(e);let n=p();return R(n.applyWizardConfiguration())}),s(),a(11,"p-button",30),T("onClick",function(){E(e);let n=p();return R(n.resetWizardConfiguration())}),s()()()}if(t&2){let e,i=p();o(2),F(i.wizardConfigurationHint),o(2),S(" ",i.wizardConfigurationLabel," "),o(),d("formControl",i.wizardConfigurationControl),o(3),f((e=i.qaConfigurationFeedback())?8:-1,e),o(2),d("label",i.wizardConfigurationApplyLabel),o(),d("label",i.wizardConfigurationResetLabel)("outlined",!0)}}var Be=(()=>{class t{constructor(){this.#e=_(ie),this.#t=_(ne),this.#n=_(xe),this.#a=_(se),this.result=this.#e.result,this.activeIndex=this.#e.activeIndex,this.activeStep=this.#e.activeStep,this.canGoBack=this.#e.canGoBack,this.activeGroup=this.#e.activeGroup,this.isActiveStepValid=this.#e.isActiveStepValid,this.registrationWizardStatus=y,this.isConfigDrawerVisible=I(!1),this.qaConfigurationFeedback=I(null),this.wizardConfigurationControl
1=new H("",{nonNullable:!0}),this.wizardConfigurationDrawerTitle="Wizard configuration",this.wizardConfigurationLabel="Wizard definition JSON",this.wizardConfigurationHint="Edit the wizard configuration JSON and apply it to test alternate step flows.",this.wizardConfigurationApplyLabel="Apply configuration",this.wizardConfigurationResetLabel="Reset to default",this.wizardConfigurationOpenLabel="Edit configuration",this.resources=l}#e;#t;#n;#a;ngOnInit(){this.#e.initialize(),this.#n.setAction({label:this.wizardConfigurationOpenLabel,severity:"info",outlined:!0,dataTestId:"minimum-header-wizard-config-button",onClick:()=>this.openWizardConfigurationDrawer()}),this.#t.onDestroy(()=>this.#n.clearAction()),this.wizardConfigurationControl.setValue(this.#r(this.result().definition))}next(){this.#e.next()}back(){this.#e.back()}onPrimaryAction(){this.#e.performPrimaryAction()}backToPreviousPage(){this.#a.back()}selectStep(e){this.#e.selectStep(e)}openWizardConfigurationDrawer(){this.qaConfigurationFeedback.set(null),this.isConfigDrawerVisible.set(!0)}applyWizardConfiguration(){let e=this.wizardConfigurationControl.getRawValue();try{let i=JSON.parse(e),n=this.#e.applyDefinitionSource(i);if(n.status===y.VALID){this.wizardConfigurationControl.setValue(this.#r(n.definition)),this.qaConfigurationFeedback.set("Configuration applied.");return}this.qaConfigurationFeedback.set(this.#o(n))}catch{this.qaConfigurationFeedback.set("Configuration is not valid JSON.")}}resetWizardConfiguration(){let e=this.#e.resetDefinitionSource();if(e.status===y.VALID){this.wizardConfigurationControl.setValue(this.#r(e.definition)),this.qaConfigurationFeedback.set("Configuration reset to the default wizard definition.");return}this.qaConfigurationFeedback.set(this.#o(e))}#r(e){return JSON.stringify(e,null,2)}#o(e){switch(e.status){case y.EMPTY:return"Configuration is empty.";case y.INVALID:return"Configuration does not match the wizard definition schema.";case y.LOADING:return"Configuration is still loading.";case y.VALID:return"Configuration applied."}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=A({type:t,selectors:[["ppg-registration-shell"]],features:[ae([X,ie,ee])],decls:14,vars:11,consts:[["header",""],["content",""],["id","main","role","main","aria-labelledby","registration-shell-title",1,"registration-shell"],["id","registration-shell-title",1,"sr-only"],["aria-live","polite","aria-atomic","true",1,"registration-shell__state"],["aria-hidden","true",1,"registration-shell__column","registration-shell__column--spacer"],[3,"visibleChange","visible","position","blockScroll","showCloseIcon"],[1,"registration-shell__column","registration-shell__column--navigation"],["data-test-id","multistep-registration-shell-back-link","styleClass","p-1",1,"pl-0","xl:pl-6",3,"label","ariaLabel","icon","iconPos","severity","text"],[1,"registration-shell__column","registration-shell__column--content"],["id","registration-shell-content",1,"registration-shell__content"],[1,"registration-shell__stepper",3,"steps","currentIndex"],["data-test-id","multistep-registration-shell-back-link","styleClass","p-1",1,"pl-0","xl:pl-6",3,"onClick","label","ariaLabel","icon","iconPos","severity","text"],[1,"sr-only"],[1,"registration-shell__step-form"],[1,"registration-shell__step-form",3,"ngSubmit"],[3,"definition","group"],[1,"registration-shell__actions"],["type","button","severity","secondary","styleClass","w-full",3,"label","ariaLabel","outlined"],["styleClass","w-full",3,"onClick","label","ariaLabel","disabled"],["type","button","severity","secondary","styleClass","w-full",3,"onClick","label","ariaLabel","outlined"],["id","registration-shell-config-title",1,"registration-shell__config-title"],[1,"registration-shell__config-form",3,"ngSubmit"],[1,"registration-shell__config-hint"],["for","registration-shell-config-textarea",1,"registration-shell__config-label"],["pTextarea","","id","registration-shell-config-textarea","rows","24","aria-describedby","registration-shell-config-help registration-shell-config-feedback",1,"registration-shell__config-textarea",3,"formControl"],["id","registration-shell-config-help",1,"registration-shell__config-help"],["id","registration-shell-config-feedback","aria-live","polite",1,"registration-shell__config-feedback"],[1,"registration-shell__config-actions"],["type","button","styleClass","w-full","data-test-id","multistep-registration-shell-apply-config-button",3,"onClick","label"],["type","button","severity","secondary","styleClass","w-full",3,"onClick","label","outlined"]],template:function(i,n){if(i&1){let c=O();L(0)(1),a(2,"main",2)(3,"h1",3),u(4),b(5,"resourceValue"),s(),g(6,ct,6,4)(7,mt,4,1,"section",4),C(8,"div",5),s(),a(9,"p-drawer",6),T("visibleChange",function(x){return E(c),R(n.isConfigDrawerVisible.set(x))}),g(10,_t,2,1,"ng-template",null,0,te)(12,ft,12,7,"ng-template",null,1,te),s()}if(i&2){let c;k(n.activeIndex()),o();let P=k(n.result());o(3),F(v(5,9,n.resources.MULTISTEP_REGISTRATION_TITLE)),o(2),f((c=P.definition)?6:7,c),o(3),d("visible",n.isConfigDrawerVisible())("position","right")("blockScroll",!0)("showCloseIcon",!0),M("aria-labelledby","registration-shell-config-title")}},dependencies:[ge,_e,Se,Te,G,pe,j,Y,$,Z,Ve,Ue,ye,Ce,Q],styles:["[_nghost-%COMP%]{display:block}.registration-shell[_ngcontent-%COMP%]{align-items:start;column-gap:0;display:flex;padding:var(--p-pds-unit-800) 0}.registration-shell__column[_ngcontent-%COMP%]{flex:1 1 0;min-width:0}.registration-shell__column--navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;padding-top:var(--p-pds-unit-400)}.registration-shell__column--content[_ngcontent-%COMP%]{width:100%;flex-direction:column;gap:var(--p-pds-unit-600)}.registration-shell__column--spacer[_ngcontent-%COMP%]{min-height:100%}.registration-shell__content[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:var(--p-pds-unit-600)}.registration-shell__content[_ngcontent-%COMP%], .registration-shell__state[_ngcontent-%COMP%]{width:100%}.registration-shell__stepper[_ngcontent-%COMP%]{display:block;width:100%}.registration-shell__step-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--p-pds-unit-600);width:100%}.registration-shell__actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--p-pds-unit-400)}.registration-shell__config-title[_ngcontent-%COMP%]{margin:0;font-size:var(--p-pds-typography-headings-h5-size);font-weight:var(--p-pds-typography-weight-semi-bold)}.registration-shell__config-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--p-pds-unit-300)}.registration-shell__config-label[_ngcontent-%COMP%], .registration-shell__config-hint[_ngcontent-%COMP%], .registration-shell__config-help[_ngcontent-%COMP%], .registration-shell__config-feedback[_ngcontent-%COMP%]{margin:0}.registration-shell__config-label[_ngcontent-%COMP%]{font-size:var(--p-pds-typography-body-small-size);font-weight:var(--p-pds-typography-weight-semi-bold)}.registration-shell__config-hint[_ngcontent-%COMP%], .registration-shell__config-help[_ngcontent-%COMP%], .registration-shell__config-feedback[_ngcontent-%COMP%]{color:var(--p-pds-on-surface-neutral-medium);font-size:var(--p-pds-typography-body-small-size)}.registration-shell__config-textarea[_ngcontent-%COMP%]{width:100%;resize:vertical;font-family:ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace;font-size:var(--p-pds-typography-body-small-size)}.registration-shell__config-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--p-pds-unit-200)}@media all and (max-width:767px){.registration-shell[_ngcontent-%COMP%]{flex-direction:column;padding:var(--p-pds-unit-600) var(--p-pds-unit-400)}.registration-shell__column--navigation[_ngcontent-%COMP%]{padding-top:0;margin-bottom:var(--p-pds-unit-400)}.registration-shell__column--spacer[_ngcontent-%COMP%]{display:none}.registration-shell__actions[_ngcontent-%COMP%]{gap:var(--p-pds-unit-200)}}@media all and (min-width:768px)and (max-width:1279px){[_nghost-%COMP%]{display:flex;flex:1;justify-content:center}.registration-shell[_ngcontent-%COMP%]{flex-direction:column;width:100%;max-width:440px;padding:var(--p-pds-unit-600) var(--p-pds-unit-400);row-gap:var(--p-pds-unit-600)}.registration-shell__column--navigation[_ngcontent-%COMP%]{padding-top:0;flex:0}.registration-shell__column--spacer[_ngcontent-%COMP%]{display:none}.registration-shell__actions[_ngcontent-%COMP%]{gap:var(--p-pds-unit-200)}}"],changeDetection:0})}}return t})();var ht=[{path:"",component:Be}];var Xi=()=>structuredClone(z);export{Jt as EMPTY_REGISTRATION_WIZARD,Qt as MALFORMED_REGISTRATION_WIZARD,ze as REGISTRATION_FIELD_RENDERERS,X as RegistrationWizardConfigService,ie as RegistrationWizardFacade,ee as RegistrationWizardStore,z as VALID_REGISTRATION_WIZARD,ht as registrationRoutes,Xi as registrationWizardDefinitionMock};

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.