1"use strict";(self.webpackChunkDigitalServicesHub=self.webpackChunkDigitalServicesHub||[]).push([[1459],{11459:(se,O,n)=>{n.r(O),n.d(O,{AccreditVetProductModule:()=>ne});var m=n(69808),f=n(63151),R=n(27221),J=n(25031),t=n(5e3),N=n(40520);let y=(()=>{class o extends J.j{constructor(e){super(e),this.basePath="AccreditationOfVetProduct",this.GET_PRODUCT_FORMS="GetPharmaceuticalFormByProductId",this.GET_UNITS="GetUnitsByPharmformID"}GetPharmaceuticalFormByProductId(e){const r=this.buildUrl(this.GET_PRODUCT_FORMS+"?productId="+e);return this.httpClient.get(r).pipe((0,R.K)(this.handleError))}GetUnitsByPharmformID(e){const r=this.buildUrl(this.GET_UNITS+"?pharmformId="+e);return this.httpClient.get(r).pipe((0,R.K)(this.handleError))}}return o.\u0275fac=function(e){return new(e||o)(t.LFG(N.eN))},o.\u0275prov=t.Yz7({token:o,factory:o.\u0275fac}),o})();var V=n(2571),Q=n(75856),L=n(71946),G=n(11650),j=n(70701),q=n(63288),U=n(66893),E=n(13475),M=n(55429),d=n(70655),a=n(93075),Y=n(591),B=n(48440),x=n(34964),z=n(89832),u=n(42909),C=n(66908),K=n(77984),W=n(21991),H=n(75828);let A=(()=>{class o extends W.S{constructor(e,r,i){super(e,i),this.sharedMapper=r}mapGetServiceConfigurationResponse(e){const r=super.mapBasicServiceConfigurationResponse(e);return r.mainLookups.productTypes=this.mapLookup(e.Data.Products),r.mainLookups.companies=this.mapLookup(e.Data.Companies),r.mainLookups.countries=this.mapLookup(e.Data.RefrenceCountries),r.mainLookups.targetAnimals=this.mapLookup(e.Data.TargetAnimals),r}mapUltimate(e){let r=new x.VZ;return r=super.mapBasic(e),r.serviceRequestTransactionData=this.mapGetServiceRequestDetailsResponse(e.ProcedureInstanceObject),r.serviceTransaction=this.mapServiceInstanceRequest(e.RequestData),e.SecondPaymentFees&&e.SecondPaymentFees.Fees&&(r.secondPaymentFees=this.mapFees(e.SecondPaymentFees.Fees)),e.InitiatorActions&&(r.initiatorActions=this.mapLookup(e.InitiatorActions)),r}mapServiceInstanceRequest(e){return this.sharedMapper.mapServiceInstanceRequest(e)}toDto(e){var r,i,c;return{Id:e.id,ProcedureInstanceId:e.procedureInstanceId,ProductTypeId:null===(r=e.productType)||void 0===r?void 0:r.id,PharmaceuticalFormId:null===(i=e.pharmaceuticalForm)||void 0===i?void 0:i.id,Composition:e.composition,ProductName:e.productName,SaftyPeriod:e.saftyPeriod,ShelfLife:e.shelfLife,CompanyId:null===(c=e.manufacturingCompany)||void 0===c?void 0:c.id,IsInternationalCoopCertified:e.isInternationalCoopCertified,IsRefrenceCountiresRegistered:e.isRefrenceCountiresRegistered,RequestUnits:this.toPackageItemDto(e.items),TargetAnimals:this.toTargetAnimalItemDto(e.targetAnimals),RefrenceCountries:e.referenceCountries?this.toReferenceCountryItemDto(e.referenceCountries):null}}toReferenceCountryItemDto(e){return e.map(r=>{var i,c,l;return{CountryID:null===(i=r.country)||void 0===i?void 0:i.id,CountryAr:null===(c=r.country)||void 0===c?void 0:c.nameAr,CountryEn:null===(l=r.country)||void 0===l?void 0:l.nameEn}})}toInitiatorActionRequestDto(e){var r;return{RequestId:e.id,Action:null===(r=e.action)||void 0===r?void 0:r.code}}mapUltimateDraftResponse(e){const r=super.mapUltimateDraftResponse(e);var i=JSON.parse(e.DraftRequestDetails);return r.serviceTransaction.items=(null==i?void 0:i.units)||[],r.serviceTransaction.targetAnimals=(null==i?void 0:i.animals)||[],r.serviceTransaction.referenceCountries=(null==i?void 0:i.countries)||[],r}}return o.\u0275fac=function(e){return new(e||o)(t.LFG(m.uU),t.LFG(K.d),t.LFG(H.v))},o.\u0275prov=t.Yz7({token:o,factory:o.\u0275fac}),o})();var X=n(54091);class $ extends X.h{}var tt=n(49996),et=n(99147),b=n(85836),rt=n(35741),ot=n(39258),it=n(64383),nt=n(14565),g=n(42466);let I=(()=>{class o extends rt.W{constructor(e,r,i,c,l,p,v,h,ae,P,D){super(p,r,e,i,l,c,ae,!0,v,h,P,D),this.apiService=v,this.mapper=P,this.metadataService=D,this.initializeObservables()}getServiceUrlKeyWord(){return"AccreditVetProduct"}initializeObservables(){this.subscribeToServiceDetails(),this.subscribeToFieldsOptionsChanges(),this.subscribeToServiceConfiguration(),this.subscribeToMetadata()}subscribeToServiceDetails(){const e=this.store,r=new x.VZ;r.serviceTransaction=new x.w_,r.serviceTransaction.items=[],r.serviceTransaction.targetAnimals=[],r.serviceTransaction.referenceCountries=[],e.serviceDetails$=new Y.X(r),e.serviceDetails$.subscribe(i=>this.onServiceDetailsLoad(i))}onServiceDetailsLoad(e){return(0,d.mG)(this,void 0,void 0,function*(){this.isNotInitialized()||(this.store.serviceDetails=e)})}onServiceConfigurationLoad(e){super.onServiceConfigurationLoad(e)}initializeServiceDetailForm(){const e=new $;
1return e.url=`/services/${this.getServiceUrlKeyWord()}/requestDetails`,e.form=new a.cw({productType:new a.NI(null,a.kI.required),pharmaceuticalForm:new a.NI(null,a.kI.required),productName:new a.NI(null,a.kI.required),composition:new a.NI(null,[a.kI.required,a.kI.pattern(ot.u.Composition)]),shelfLife:new a.NI(null,[a.kI.required,a.kI.min(1),a.kI.max(99999)]),saftyPeriod:new a.NI(null,a.kI.required),manufacturingCompany:new a.NI(null,a.kI.required),isInternationalCoopCertified:new a.NI(null,a.kI.required),isRefrenceCountiresRegistered:new a.NI(null,a.kI.required)}),e.initiatorActionForm=new a.cw({action:new a.NI(null,a.kI.required)}),e.formItem=new a.cw({packageSize:new a.NI(null,[a.kI.required,a.kI.min(1),a.kI.max(99999)]),unit:new a.NI(null,a.kI.required)}),e.itemInstance={},e.formItemStatus={mode:u.h.NEW},e.formTargetAnimalItem=new a.cw({targetAnimal:new a.NI(null,a.kI.required)}),e.formTargetAnimalItemStatus={mode:u.h.NEW},e.targetAnimalItemInstance=new tt.C,e.formReferenceCountryItem=new a.cw({country:new a.NI(null,a.kI.required)}),e.referenceCountryItemInstance=new x.K0,e.formReferenceCountryItemStatus={mode:u.h.NEW},e.flowButtons=this.buildServiceConfigurationFlowButtons(),e}bindMainFormTransaction(){this.assignForm(this.store.form,this.store.serviceDetails.serviceTransaction)}loadServiceRequest(){return(0,d.mG)(this,void 0,void 0,function*(){const e=this.store.id.toString(),r=yield this.apiService.getRequest(e).toPromise();this.setApplicant(r.Data),this.globalObject.AttachmentsConfiguration.attachments=this.mapper.mapAttachmentsInstances(r.Data.AttachmentDetails),this.store.serviceDetails$.next(this.mapper.mapUltimate(r.Data))})}createRequestData(){let r=this.fromFormGroup(this.store.form);r.items=this.store.serviceDetails.serviceTransaction.items,r.targetAnimals=this.store.serviceDetails.serviceTransaction.targetAnimals,r.referenceCountries=this.store.serviceDetails.serviceTransaction.referenceCountries;const i=this.mapper.toDto(r);return i.ProcedureInstanceId=this.store.id,i}changeProduct(e,r){return(0,d.mG)(this,void 0,void 0,function*(){const i=yield this.apiService.GetPharmaceuticalFormByProductId(e).toPromise();this.store.serviceConfig.mainLookups.pharmaceuticalForms=this.mapLookup(i.Data),this.store.form.controls.pharmaceuticalForm.reset()})}changeProductForm(e){return(0,d.mG)(this,void 0,void 0,function*(){this.store.serviceDetails.serviceTransaction.items=[];const r=yield this.apiService.GetUnitsByPharmformID(e).toPromise();this.store.serviceConfig.mainLookups.quantityUnits=this.mapLookup(r.Data)})}changeTargetAnimal(e){let r=e.ServiceDetailsConfiguration.formTargetAnimalItem;"Other"==r.controls.targetAnimal.value.code?r.addControl("otherTargetType",new a.NI(null,a.kI.required)):r.removeControl("otherTargetType")}changeReferenceCountryAnswer(){return(0,d.mG)(this,void 0,void 0,function*(){this.store.serviceDetails.serviceTransaction.isRefrenceCountiresRegistered=this.store.form.controls.isRefrenceCountiresRegistered.value})}validateReferenceCountry(e){let r=!1;const i=e.ServiceDetailsConfiguration.formReferenceCountryItem,c=e.ServiceDetailsConfiguration.formReferenceCountryItem.getRawValue();return r=0==e.ServiceDetailsConfiguration.serviceDetails.serviceTransaction.referenceCountries.filter(p=>p.country.id==c.country.id).length,i.setErrors(r?null:{duplicateItem:!0}),r}validateTargetAnimal(e){var r;let i=!1;const c=e.ServiceDetailsConfiguration.formTargetAnimalItem,l=e.ServiceDetailsConfiguration.formTargetAnimalItem.getRawValue(),p=e.ServiceDetailsConfiguration.serviceDetails.serviceTransaction.targetAnimals,v=null===(r=e.ServiceDetailsConfiguration.formTargetAnimalItemStatus)||void 0===r?void 0:r.mode;return v==u.h.NEW?i=0==p.filter(h=>h.targetAnimal.id==l.targetAnimal.id&&h.otherTargetType==l.otherTargetType).length:v==u.h.EDITING&&(i=0==p.filter(h=>h.id!=e.ServiceDetailsConfiguration.targetAnimalItemInstance.id&&h.targetAnimal.id==l.targetAnimal.id&&h.otherTargetType==l.otherTargetType).length),c.setErrors(i?null:{duplicateItem:!0}),i}push(e=this.store.formItem,r=this.store.formItemStatus,i=this.store.itemInstance,c=this.store.serviceDetails.serviceTransaction.items,l){const p=this.fromFormGroup(e);(null==l||l(this.globalObject))&&(r.mode===u.h.EDITING?(Object.keys(i).forEac
1h(v=>delete i[v]),Object.assign(i,p)):r.mode===u.h.NEW&&c.push(p),this.resetItemForm(e,r),this.emitFieldsChange())}resetItemForm(e=this.store.formItem,r=this.store.formItemStatus){r.mode=u.h.NEW,Object.keys(e.controls).forEach(i=>{e.controls[i].reset()})}startItemEditing(e,r=this.store.formItem,i=this.store.formItemStatus,c="itemInstance",l){this.store[c]=e.item,i.mode=u.h.EDITING,this.fillItemForm(e,r),null!=l&&(l(this.globalObject),this.fillItemForm(e,r))}fillItemForm(e,r=this.store.formItem){this.assignForm(r,e.item)}deleteItem(e,r=this.store.serviceDetails.serviceTransaction.items){const i=r.indexOf(e.item);r.splice(i,1)}validateFlow(){return(0,d.mG)(this,void 0,void 0,function*(){let e=C.x.ApplicantConfiguration;this.isPendingOnSecondPayment()&&(this.globalObject.ReviewConfiguration.enableStep=!0,this.globalObject.ReviewConfiguration.flowButtons.isShowPay=!0,this.globalObject.ReviewConfiguration.flowButtons.next=null,this.globalObject.ReviewConfiguration.flowButtons.back=null,this.getSecondPaymentFees(),e=C.x.ReviewConfiguration),this.isPendingOnInitiatorAction()&&(this.globalObject.ReviewConfiguration.enableStep=!0,this.globalObject.ReviewConfiguration.flowButtons.isShowInitiatorAction=!0,this.globalObject.ReviewConfiguration.flowButtons.next=null,this.globalObject.ReviewConfiguration.flowButtons.back=null,this.store.serviceConfig.mainLookups.initiatorActions=this.store.serviceDetails.initiatorActions,e=C.x.ReviewConfiguration),e!=this.currentStep&&this.goToStep(e,this.router)})}getSecondPaymentFees(){this.store.fees$.next(this.store.serviceDetails.secondPaymentFees)}createInitiatorActionRequest(){let r=this.fromFormGroup(this.store.initiatorActionForm);return r.id=this.store.id,this.mapper.toInitiatorActionRequestDto(r)}isWaitingForCustomerAction(){return this.isPendingOnInitiatorAction()}onMainFormChange(e){return(0,d.mG)(this,void 0,void 0,function*(){e.type==b.O.ProductChange?yield this.changeProduct(e.id,e.code):e.type==b.O.ProductFormChange?yield this.changeProductForm(e.id):e.type==b.O.referenceCountriesChange&&this.changeReferenceCountryAnswer()})}createDraftRequestDetailsData(){return{animals:this.globalObject.ServiceDetailsConfiguration.serviceDetails.serviceTransaction.targetAnimals||[],units:this.globalObject.ServiceDetailsConfiguration.serviceDetails.serviceTransaction.items||[],countries:this.globalObject.ServiceDetailsConfiguration.serviceDetails.serviceTransaction.referenceCountries}}}return o.\u0275fac=function(e){return new(e||o)(t.LFG(f.F0),t.LFG(f.gz),t.LFG(it._W),t.LFG(nt.t4),t.LFG(z.f),t.LFG(g.sK),t.LFG(y),t.LFG(et.G),t.LFG(m.K0),t.LFG(A),t.LFG(B.o))},o.\u0275prov=t.Yz7({token:o,factory:o.\u0275fac}),o})();var at=n(76737),st=n(89047),_=n(96184),ct=n(47352),lt=n(91805),mt=n(5257),pt=n(38611);function dt(o,s){if(1&o){const e=t.EpF();t.TgZ(0,"div",1)(1,"div",2)(2,"div",3),t._UZ(3,"app-breadcrumbs",4),t.ALo(4,"async"),t.ALo(5,"async"),t.qZA(),t.TgZ(6,"div",3),t._UZ(7,"app-progress-bar",5),t.qZA()(),t.TgZ(8,"div",6)(9,"app-steps-flow",7),t.NdJ("move",function(i){return t.CHM(e),t.oxw().moveFlow(i)}),t.ALo(10,"async"),t.qZA()(),t.TgZ(11,"div",8),t._UZ(12,"es-service-title",9),t.qZA(),t.TgZ(13,"div",6)(14,"router-outlet",10),t.NdJ("activate",function(i){return t.CHM(e),t.oxw().onActivate(i)}),t.qZA()()()}if(2&o){const e=s.ngIf,r=t.oxw();
1t.xp6(2),t.Q6J("colOptions",r.breadcrumbsColumnOptions),t.xp6(1),t.Q6J("breadcrumbsDetails",t.lcZ(4,13,r.breadcrumbsDetails$))("serviceMetaData",t.lcZ(5,15,r.serviceMetaData$))("serviceKey",r.serviceKey),t.xp6(3),t.Q6J("colOptions",r.progressBarColumnOptions),t.xp6(1),t.Q6J("currentStep",r.workflowService.currentStep)("steps",r.workflowService.steps),t.xp6(1),t.Q6J("colOptions",r.mainColOptions),t.xp6(1),t.Q6J("flow",t.lcZ(10,17,r.flow$))("showBackArrow",!r.workflowService.isPendingOnSecondPayment()&&!r.workflowService.isPendingOnInitiatorAction()),t.xp6(2),t.Q6J("colOptions",r.mainColOptions),t.xp6(1),t.Q6J("metadata",e),t.xp6(1),t.Q6J("colOptions",r.mainColOptions)}}let ut=(()=>{class o extends at.V{constructor(e,r,i){super(e,r,i)}get formMode(){return u.h.EDITING}moveFlow(e){this.workflowService.moveFlow(e)}ngOnInit(){this.subscribeToSizeSettings()}}return o.\u0275fac=function(e){return new(e||o)(t.Y36("WorkflowService"),t.Y36(f.gz),t.Y36(g.sK))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-accredit-vet-product"]],features:[t._Bn([{provide:"WorkflowService",useClass:I}]),t.qOj],decls:3,vars:3,consts:[["class","container mb-4 scroll-to arabic-styling next-design",4,"ngIf"],[1,"container","mb-4","scroll-to","arabic-styling","next-design"],[1,"row","justify-content-center"],["dsCol","",3,"colOptions"],[3,"breadcrumbsDetails","serviceMetaData","serviceKey"],[3,"currentStep","steps"],["dsCol","",1,"row","justify-content-center",3,"colOptions"],[3,"flow","showBackArrow","move"],["dsCol","",1,"row","justify-content-center","title-container",3,"colOptions"],[3,"metadata"],[3,"activate"]],template:function(e,r){1&e&&(t._UZ(0,"app-loader"),t.YNc(1,dt,15,19,"div",0),t.ALo(2,"async")),2&e&&(t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,r.serviceMetaData$)))},directives:[st.R,m.O5,_.JY,ct.n,lt.R,mt.t,pt.o,f.lC],pipes:[m.Ov],styles:['div#containerDivId{width:auto;padding:0}.using-bootstrap legend{border:none;color:var(--golden-primary);margin-bottom:15px}.form-group.form-group-required:after{content:"*";color:var(--danger)}.form-group label{font-weight:inherit}html{overflow-anchor:none;scroll-behavior:smooth}.scroll-to{scroll-margin-top:110px}#progressbar{gap:5%;align-items:center;margin-bottom:0;width:100%;justify-content:space-between}#progressbar li{z-index:10;max-width:60px}#progressbar li:first-child{width:20%!important}#progressbar li:before{z-index:10;padding:8px!important;line-height:1em;margin:0 auto}#progressbar li:after{content:unset}#progressbar li.ds-step.ds-step-line:after{content:""}html[lang=ar] #progressbar{text-align:right;float:right}html[lang=ar] #progressbar li{float:right}html[lang=ar] #progressbar li:after{right:78%;left:0}#progressbar li:last-of-type:after{content:none}#progressbar li#ReviewConfiguration:after{content:none}.back-arrow{transform:rotateY(180deg)}html[lang=ar] .back-arrow{transform:rotateY(0)}html[lang=ar] .back-arrow a{float:left}html[lang=ar] .next-arrow{transform:rotateY(180deg)}.using-bootstrap .btn.btn-primary{background-color:var(--golden-primary);border-color:var(--golden-primary)}.using-bootstrap .btn.btn-rounded{border-radius:20px}.breadcrumbs-link,a.breadcrumbs-link{color:var(--gray)}.breadcrumbs-link:after{content:"\\e933";color:var(--dark);font-family:fi-icons!important;font-size:.7em;margin:0 16px}html[lang=ar] .breadcrumbs-link:after{content:"\\e932"}.breadcrumbs-link:nth-last-of-type(1){content:"";color:var(--golden-dark)}.breadcrumbs-link:nth-last-of-type(1):after{content:""}html[lang=ar] .breadcrumbs-link:nth-last-of-type(1):after{content:"\\e932"}html[lang=ar] .breadcrumbs-link:nth-last-of-type(1):after{content:""}html[lang=ar] .col-form-label{text-align:right}.forms-container{box-shadow:1px 1px 5px 3px var(--light-shadow);border-radius:10px}.form-section{padding:1.2em;border:solid 1px var(--light-shadow);margin-bottom:-1px;position:relative;overflow:hidden;max-height:99999px;transition:ease 2.5s;transition-property:max-height,height}.form-section.form-section-collapsed{max-height:70px;transition:ease .5s}.form-section.form-section-collapsible .form-section-collapsing{cursor:pointer}.form-section.form-section-collapsible .form-section-collapsing:hover{color:var(--golden-primary)}.form-section legend{color:var(--dark);font-size:1.5em}.title-container{margin-top:1em;margin-bottom:1em}html[lang=ar] .title-container,html[lang=ar] .forms-container form{text-align:right;direction:rtl}.form-section-valid-indicator{position:absolute;font-size:1.4rem;color:var(--gray);right:15px}html[lang=ar] .form-section-valid-indicator{right:initial;left:15px}.form-section-invalid{color:var(--danger)}.form-section-valid{color:var(--success)}.form-section-divider{display:block;margin:10px -19px;border:solid 1px var(--light-shadow)}html[lang=ar] .alignmet_left{text-align:right!important}.align-right{text-align:right}html[lang=ar] .align-right{text-align:left}html[lang=ar] .align-left{text-align:right}html[lang=ar] .float-left{float:right!important}html[lang=ar] .float-right{float:left!important}html[lang=ar] .en_text_right{text-align:left}html[lang=ar] .bred_crumb .breadcrumbs-link{float:right}.actions-container{width:100%;display:flex;justify-content:space-between}.licence-attachment-view label{color:var(--gray)}app-bs-map-display .form-group label{color:var(--gray)}.ng-invalid.highlight .ng-select-container,.is-invalid.highlight{animation:highlight .5s cubic-bezier(.68,-.55,.27,1.55)}.form-section-valid-indicator.highlight{animation:highlight-scale .5s cubic-bezier(.68,-.55,.27,1.55)}@keyframes highlight{0%{border-color:var(--danger);transform:scale(105%)}}@keyframes highlight-scale{0%{transform:scale(105%)}}ng-select{position:initial!important}app-progress-bar svg{max-width:100px;max-height:100px}app-progress-bar{float:right}html[lang=ar] app-progress-bar{float:left}.progress-bar-container{text-align:right}html[lang=ar] .progress-bar-container{text-align:left}.breadcrumb-content{display:flex;align-items:flex-start;flex-direction:column;gap:15px}.view_info{margin:0}.view_info:nth-of-type(1){margin:0}html[lang=en] .btn+.btn{margin-left:.25rem!important}html[lang=ar] .btn+.btn{margin-right:.25rem!important}.input-group>.form-control,.input-group>.form-control-plaintext,.input-group>.custom-select,.input-group>.custom-file{width:1%}html[lang=ar] .input-group:not(.has-validation)>.form-control:not(:last-child),html[lang=ar] .input-group:not(.has-validation)>.custom-select:not(:last-child),html[lang=ar] .input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label:after{border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:.25rem;border-bottom-right-radius:.25rem;border-left:0}html[lang=ar] .input-group>.input-group-append>.btn,html[lang=ar] .input-group>.input-group-append>.input-group-text,html[lang=ar] .input-group>.input-group-prepend:not(:first-child)>.btn,html[lang=ar] .input-group>.input-group-prepend:not(:first-child)>.input-group-text,html[lang=ar] .input-group>.input-group-prepend:first-child>.btn:not(:first-child),html[lang=ar] .input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child){border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.input-group-text{height:34px}.sections-indexer{background-color:transparent;width:100%;position:sticky;border-top-right-radius:10px;border-bottom-right-radius:10px;z-index:1;padding:0}.indexer-item{cursor:pointer;width:100%;padding:1em 0 1em .5em;transition:.5s border,box-shadow,color}html[lang=ar] .indexer-item{padding:1em .5em 1em 0}.indexer-item:hover{color:var(--golden-primary)}html[lang=ar] .indexer-item{text-align:right}.indexer-item-active{color:var(--golden-dark);box-shadow:-4px 0 4px 1px var(--light-shadow);border-left:5px solid var(--golden-primary);border-right:initial}html[lang=ar] .indexer-item-active{box-shadow:4px 0 4px 1px var(--light-shadow);border-right:5px solid var(--golden-primary);border-left:initial}.sections-indexer.sticky-sections-indexer{position:fixed;top:50px;width:10%;max-width:125px}.help-bar{display:flex;justify-content:flex-start;gap:1em;width:100%}.help-item .tooltip{left:5px!important}.help-item .tooltip .arrow:before{left:37px}.help-item a{width:30px;display:flex;border:1px solid;border-radius:50%;padding:6px;height:30px;justify-content:center;align-items:center;color:var(--golden-primary)}.help-item a img{width:100%}.pt-2.pb-1.button_container.mb-2.flex_flow.flex_between{flex-flow:initial}.width-2.applicant_info_comp{width:100%!important}.uplaoded_file{margin:auto}.dash-bor{text-align:center}.custom-checkbox-required-start{padding:0 .2em;color:var(--danger)}.custom-control{padding-right:0;padding-left:1.5rem}html[lang=ar] .custom-control{padding-right:1.5rem;padding-left:0}html[lang=ar] .custom-control-input{right:0}.custom-control-label:before{left:-1.5rem;right:unset}html[lang=ar] .custom-control-label:before{left:unset;right:-1.5rem}.custom-control-label:after{left:-1.5rem;right:unset}html[lang=ar] .custom-control-label:after{left:unset;right:-1.5rem}.custom-control.custom-radio input[type=radio],.custom-control.custom-radio .custom-control-label,.custom-control.custom-radio .custom-control-label *{cursor:pointer;margin-bottom:10px}.custom-control.custom-checkbox,.custom-control.custom-checkbox *{curs
1or:pointer}.text-decoration-underline{text-decoration:underline}.attachment-section .ngx-file-drop__drop-zone{border:none!important}.attachment-section .attachment-upload{display:flex;justify-content:space-between;padding:20px 30px;background-color:var(--height-light);border-radius:10px}.attachment-section .attachment-group{margin-top:20px}.attachment-group .attachment-uploaded{width:80px;height:80px;background:#f1f1f1;padding:10px;border-radius:6px;position:relative;display:flex;justify-content:center;align-items:center;border:1px solid #f1f2f4;margin-bottom:15px}.attachment-group .attachment-uploaded a{position:absolute;right:10px;top:3px;width:10px}.attachment-group .attachment-uploaded a img{width:100%}.attachment-group .attachment-uploaded span{font-size:40px;color:var(--golden-primary)}.attachment-instance{display:flex;flex-flow:column;justify-content:center;align-items:center}.commenting .form-group{margin:0;height:100%}.commenting .ngx-file-drop__drop-zone{border:none!important;margin:0!important;height:unset!important;min-height:100px!important}.commenting .ngx-file-drop__content{display:block!important;height:unset!important;min-height:100px!important}.container.scroll-to{margin-bottom:8rem!important}.mt-30-px{margin-top:30px}.ng-dropdown-panel.breakSpaces .ng-dropdown-panel-items .ng-option{white-space:break-spaces}input[type=date]{display:block;-webkit-appearance:textfield;-moz-appearance:textfield;min-height:1.2em}@media (max-width: 480px){.progress-bar-container{text-align:center}}@media (max-width: 480px){.attachment-section .attachment-upload{flex-direction:column}}@media (min-width: 768px){html[lang=ar] .offset-md-3{margin-right:25%;margin-left:initial}html[lang=ar] .offset-md-2{margin-right:16.666667%;margin-left:initial}.col-12 #progressbar li:after,.col-sm-12 #progressbar li:after,.col-md-12 #progressbar li:after{width:300%}.col-md-8 #progressbar li:after{width:200%}}.attachment-required{border:1px solid red}\n'],encapsulation:2}),o})();var w=n(7119),gt=n(23448),ft=n(109),ht=n(61247),vt=n(86397),bt=n(96086),T=n(34187),xt=n(67468),Ct=n(61799),wt=n(99302),yt=n(65138);function At(o,s){if(1&o&&(t.TgZ(0,"div",3)(1,"div",4),t._UZ(2,"app-es-service-disclaimers",18),t.qZA()()),2&o){const e=t.oxw();
1t.xp6(1),t.Q6J("colOptions",e.fo.fullCol),t.xp6(1),t.Q6J("alerts",e.alerts)}}let It=(()=>{class o extends vt.E{constructor(e){super(e)}onProductChange(e){this.MainFormchange.emit({type:b.O.ProductChange,id:e.new.id,code:e.new.code})}onProductFormChange(e){this.MainFormchange.emit({type:b.O.ProductFormChange,id:e.new.id})}onReferenceCountryAnswerChange(e){this.MainFormchange.emit({type:b.O.referenceCountriesChange})}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(g.sK))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-accredit-vet-product-request-form"]],inputs:{transaction:"transaction",customAlerts:"customAlerts"},features:[t.qOj],decls:43,vars:35,consts:[[3,"formGroup"],[1,"col-form-label",3,"innerText"],["class","row",4,"ngIf"],[1,"row"],["dsCol","",3,"colOptions"],["formControlName","productType","identifier","productType","key","trAccreditVeterinaryEquipmentProductTypeFld","name","productType",3,"items","bindLabel","templateOptions","change"],["formControlName","pharmaceuticalForm","identifier","pharmaceuticalForm","key","trAccreditVeterinaryEquipmentPharmaceuticalFormFld","name","pharmaceuticalForm",3,"items","bindLabel","templateOptions","change"],["formControlName","productName","identifier","productName","key","trAccreditVeterinaryEquipmentProductNameFld","name","productName",3,"templateOptions"],["formControlName","composition","identifier","composition","key","trAccreditCompositionFld","name","composition","maxlength","500",3,"templateOptions"],["formControlName","saftyPeriod","identifier","commercialName","key","trAccreditSaftyPeriodFld","name","saftyPeriod","maxLength","500",3,"templateOptions"],["formControlName","shelfLife","identifier","shelfLife","key","trAccreditShelfLifeFld","name","shelfLife",3,"templateOptions"],["formControlName","manufacturingCompany","identifier","manufacturingCompany","key","trRegisterCompanyNameFld","name","manufacturingCompany",3,"items","bindLabel","templateOptions"],[1,"col-md-8","col-sm-12"],[1,"col-md-2","col-sm-12"],["formControlName","isInternationalCoopCertified","identifier","isInternationalCoopCertified","key","yes","name","isInternationalCoopCertified",3,"set"],["formControlName","isInternationalCoopCertified","identifier","isNotInternationalCoopCertified","key","no","name","isInternationalCoopCertified",3,"set"],["formControlName","isRefrenceCountiresRegistered","identifier","isRefrenceCountiresRegistered","key","yes","name","isRefrenceCountiresRegistered",3,"set","change"],["formControlName","isRefrenceCountiresRegistered","identifier","isNotRefrenceCountiresRegistered","key","no","name","isRefrenceCountiresRegistered",3,"set","change"],[3,"alerts"]],template:function(e,r){1&e&&(t.TgZ(0,"form",0),t._UZ(1,"legend",1),t.ALo(2,"translate"),t.YNc(3,At,3,2,"div",2),t.TgZ(4,"div",3)(5,"div",4)(6,"bs-ng-dropdown",5),t.NdJ("change",function(c){return r.onProductChange(c)}),t.qZA()()(),t.TgZ(7,"div",3)(8,"div",4)(9,"bs-ng-dropdown",6),t.NdJ("change",function(c){return r.onProductFormChange(c)}),t.qZA()(),t.TgZ(10,"div",4),t._UZ(11,"bs-ng-text",7),t.qZA()(),t.TgZ(12,"div",3)(13,"div",4),t._UZ(14,"bs-ng-textarea",8),t.qZA()(),t.TgZ(15,"div",3)(16,"div",4),t._UZ(17,"bs-ng-textarea",9),t.qZA()(),t.TgZ(18,"div",3)(19,"div",4)(20,"div"),t._UZ(21,"bs-ng-number",10),t.qZA()()(),t.TgZ(22,"div",3)(23,"div",4),t._UZ(24,"bs-ng-dropdown",11),t.qZA()(),t.TgZ(25,"div",3)(26,"div",12)(27,"span"),t._uU(28),t.ALo(29,"translate"),t.qZA()(),t.TgZ(30,"div",13),t._UZ(31,"bs-ng-radiobox",14),t.qZA(),t.TgZ(32,"div",13),t._UZ(33,"bs-ng-radiobox",15),t.qZA()(),t.TgZ(34,"div",3)(35,"div",12)(36,"span"),t._uU(37),t.ALo(38,"translate"),t.qZA()(),t.TgZ(39,"div",13)(40,"bs-ng-radiobox",16),t.NdJ("change",function(c){return r.onReferenceCountryAnswerChange(c)}),t.qZA()(),t.TgZ(41,"div",13)(42,"bs-ng-radiobox",17),t.NdJ("change",function(c){return r.onReferenceCountryAnswerChange(c)}),t.qZA()()()()),2&e&&(t.Q6J("formGroup",r.formGroup),t.xp6(1),t.Q6J("innerText",t.lcZ(2,29,"ViewServiceInformation")),t.xp6(2),t.Q6J("ngIf",r.alerts.length),t.xp6(2),t.Q6J("colOptions",r.fo.fullCol),t.xp6(1),t.Q6J("items",r.lookups.productTypes)("bindLabel",r.defaultLookupDisplayProperty)("templateOptions",r.fo.inputsTemplateOptions),t.xp6(2),t.Q6J("colOptions",r.fo.halfCol),t.xp6(1),t.Q6J("items",r.lookups.pharmaceuticalForms)("bindLabel",r.defaultLookupDisplayProperty)("templateOptions",r.fo.inputsTemplateOptions),t.xp6(1),t.Q6J("colOptions",r.fo.halfCol),t.xp6(1),t.Q6J("templateOptions",r.fo.inputsTemplateOptions),t.xp6(2),t.Q6J("colOptions",r.fo.fullCol),t.xp6(1),t.Q6J("templateOptions",r.fo.inputsTemplateOptions),t.xp6(2),t.Q6J("colOptions",r.fo.fullCol),t.xp6(1),t.Q6J("templateOptions",r.fo.inputsTemplateOptions),t.xp6(2),t.Q6J("colOptions",r.fo.halfCol),t.xp6(2),t.Q6J("templateOptions",r.fo.inputsTemplateOptions),t.xp6(2),t.Q6J("colOptions",r.fo.fullCol),t.xp6(1),t.Q6J("items",r.lookups.companies)("bindLabel",r.defaultLookupDisplayProperty)("templateOptions",r.fo.inputsTemplateOptions),t.xp6(4),t.Oqu(t.lcZ(29,31,"trAccreditIsInternationalCoopCertified").labelText),t.xp6(3),t.Q6J("set",!0),t.xp6(2),t.Q6J("set",!1),t.xp6(4),t.Oqu(t.lcZ(38,33,"trAccreditIsRefrenceCountiresRegistered").labelText),t.xp6(3),t.Q6J("set",!0),t.xp6(2),t.Q6J("set",!1))},directives:[a._Y,a.JL,a.sg,m.O5,_.JY,bt.w,T.z,a.JJ,a.u,xt.e,Ct.T,a.nD,wt.n,yt.
1LC],pipes:[g.X$],encapsulation:2}),o})();var _t=n(65780),S=n(44457),Tt=n(39465),k=n(47268),St=n(63190),kt=n(76410),Ft=n(90135);function Zt(o,s){1&o&&(t.TgZ(0,"div",1)(1,"div",8),t._UZ(2,"span",9),t.ALo(3,"translate"),t.qZA()()),2&o&&(t.xp6(2),t.Q6J("innerText",t.lcZ(3,1,"trAccreditDuplicateCountryMsg")))}let Ot=(()=>{class o extends St.b{constructor(e){super(e),this.lookups={},this.itemFormChange=new t.vpe}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(g.sK))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-accredit-reference-country-item-form"]],inputs:{lookups:"lookups"},outputs:{itemFormChange:"itemFormChange"},features:[t.qOj],decls:12,vars:10,consts:[["appInputComponentsInvalidScroller","",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-12"],[1,"col-form-label",3,"innerText"],["dsCol","",3,"colOptions"],["formControlName","country","identifier","country","key","trAccreditReferenceCountryFld","name","country",3,"items","bindLabel","templateOptions"],["class","row",4,"ngIf"],[3,"mode","action"],[1,"col-md-12","col-sm-12"],[1,"text-danger",3,"innerText"]],template:function(e,r){1&e&&(t.TgZ(0,"form",0),t.NdJ("ngSubmit",function(){return r.submit()}),t.TgZ(1,"div",1)(2,"div",2),t._UZ(3,"legend",3),t.ALo(4,"translate"),t.qZA()(),t.TgZ(5,"div",1)(6,"div",4),t._UZ(7,"bs-ng-dropdown",5),t.qZA()(),t.YNc(8,Zt,4,3,"div",6),t.TgZ(9,"div",1)(10,"div",2)(11,"app-es-main-item-form-buttons",7),t.NdJ("action",function(c){return r.handleItemFormAction(c)}),t.qZA()()()()),2&e&&(t.Q6J("formGroup",r.formGroup),t.xp6(3),t.Q6J("innerText",t.lcZ(4,8,"Reference Country Data")),t.xp6(3),t.Q6J("colOptions",r.fo.fullCol),t.xp6(1),t.Q6J("items",r.lookups.countries)("bindLabel",r.defaultLookupDisplayProperty)("templateOptions",r.fo.inputsTemplateOptions),t.xp6(1),t.Q6J("ngIf",null==r.formGroup.errors?null:r.formGroup.errors.duplicateItem),t.xp6(3),t.Q6J("mode",r.mode))},directives:[a._Y,a.JL,kt.O,a.sg,_.JY,T.z,a.JJ,a.u,m.O5,Ft.U],pipes:[g.X$],encapsulation:2}),o})();var F=n(19924),Z=n(53750);function Rt(o,s){if(1&o){const e=t.EpF();t.TgZ(0,"div",6),t._UZ(1,"app-form-validation-indicator",7),t.TgZ(2,"app-accredit-vet-product-request-form",8,9),t.NdJ("MainFormchange",function(i){return t.CHM(e),t.oxw(2).mainFormChange(i)}),t.qZA()()}if(2&o){const e=t.oxw().ngIf,r=t.oxw();
1t.xp6(1),t.Q6J("formGroup",r.form),t.xp6(1),t.Q6J("lookups",e.config.mainLookups)("formGroup",r.form)("alerts",e.config.alerts)("customAlerts",e.config.customAlerts)("transaction",e.transaction)("formOptions",r.formOptions)}}function Pt(o,s){if(1&o){const e=t.EpF();t.TgZ(0,"div",10),t._UZ(1,"app-form-validation-indicator",7),t.TgZ(2,"app-accredit-package-item-form",11,12),t.NdJ("push",function(i){return t.CHM(e),t.oxw(2).pushItem(i)}),t.qZA(),t.TgZ(4,"app-accredit-package-item-list",13),t.NdJ("edit",function(i){return t.CHM(e),t.oxw(2).edit(i)})("delete",function(i){return t.CHM(e),t.oxw(2).deleteItem(i)}),t.qZA()()}if(2&o){const e=t.oxw().ngIf,r=t.oxw();t.xp6(1),t.Q6J("formGroup",r.formItem),t.xp6(1),t.Q6J("lookups",e.config.mainLookups)("formGroup",r.formItem)("mode",r.formItemStatus.mode)("formOptions",r.formOptions),t.xp6(2),t.Q6J("formGroup",r.form)("items",e.transaction.serviceTransaction.items)}}function Dt(o,s){if(1&o){const e=t.EpF();t.TgZ(0,"div",14),t._UZ(1,"app-form-validation-indicator",7),t.TgZ(2,"app-accredit-target-animal-item-form",15,12),t.NdJ("push",function(i){return t.CHM(e),t.oxw(2).pushTargetAnimalItem(i)})("itemFormChange",function(i){return t.CHM(e),t.oxw(2).itemFormChange(i)}),t.qZA(),t.TgZ(4,"app-accredit-target-animal-item-list",13),t.NdJ("edit",function(i){return t.CHM(e),t.oxw(2).editTargetAnimalItem(i)})("delete",function(i){return t.CHM(e),t.oxw(2).deleteTargetAnimalItem(i)}),t.qZA()()}if(2&o){const e=t.oxw().ngIf,r=t.oxw();
1t.xp6(1),t.Q6J("formGroup",r.formTargetAnimalItem),t.xp6(1),t.Q6J("lookups",e.config.mainLookups)("formGroup",r.formTargetAnimalItem)("mode",r.formTargetAnimalItemStatus.mode)("formOptions",r.formOptions),t.xp6(2),t.Q6J("formGroup",r.form)("items",e.transaction.serviceTransaction.targetAnimals)}}function Jt(o,s){if(1&o){const e=t.EpF();t.TgZ(0,"div",16),t._UZ(1,"app-form-validation-indicator",7),t.TgZ(2,"app-accredit-reference-country-item-form",11,12),t.NdJ("push",function(i){return t.CHM(e),t.oxw(2).pushReferenceCountryItem(i)}),t.qZA(),t.TgZ(4,"app-accredit-reference-country-item-list",13),t.NdJ("edit",function(i){return t.CHM(e),t.oxw(2).editReferenceCountryItem(i)})("delete",function(i){return t.CHM(e),t.oxw(2).deleteReferenceCountryItem(i)}),t.qZA()()}if(2&o){const e=t.oxw().ngIf,r=t.oxw();t.xp6(1),t.Q6J("formGroup",r.formReferenceCountryItem),t.xp6(1),t.Q6J("lookups",e.config.mainLookups)("formGroup",r.formReferenceCountryItem)("mode",r.formReferenceCountryItemStatus.mode)("formOptions",r.formOptions),t.xp6(2),t.Q6J("formGroup",r.form)("items",e.transaction.serviceTransaction.referenceCountries)}}function Nt(o,s){if(1&o&&(t.TgZ(0,"div",6),t._UZ(1,"app-accredit-vet-product-review-details",17),t.qZA()),2&o){const e=t.oxw().ngIf;t.xp6(1),t.Q6J("transaction",e.transaction.serviceTransaction)}}function Vt(o,s){if(1&o&&(t.TgZ(0,"div",18),t._UZ(1,"app-accredit-package-item-list",19),t.qZA()),2&o){const e=t.oxw().ngIf;t.xp6(1),t.Q6J("items",e.transaction.serviceTransaction.items)("enableEditing",!1)}}function Qt(o,s){if(1&o&&(t.TgZ(0,"div",18),t._UZ(1,"app-accredit-target-animal-item-list",19),t.qZA()),2&o){const e=t.oxw().ngIf;t.xp6(1),t.Q6J("items",e.transaction.serviceTransaction.targetAnimals)("enableEditing",!1)}}function Lt(o,s){if(1&o&&(t.TgZ(0,"div",18),t._UZ(1,"app-accredit-reference-country-item-list",19),t.qZA()),2&o){const e=t.oxw().ngIf;t.xp6(1),t.Q6J("items",e.transaction.serviceTransaction.referenceCountries)("enableEditing",!1)}}function Gt(o,s){if(1&o&&(t.ynx(0),t.YNc(1,Rt,4,7,"div",1),t.YNc(2,Pt,5,7,"div",2),t.YNc(3,Dt,5,7,"div",3),t.YNc(4,Jt,5,7,"div",4),t.YNc(5,Nt,2,1,"div",1),t.YNc(6,Vt,2,2,"div",5),t.YNc(7,Qt,2,2,"div",5),t.YNc(8,Lt,2,2,"div",5),t.BQk()),2&o){const e=s.ngIf,r=t.oxw();
1t.xp6(1),t.Q6J("ngIf",!r.workflowService.isSendBack),t.xp6(1),t.Q6J("ngIf",!r.workflowService.isSendBack),t.xp6(1),t.Q6J("ngIf",!r.workflowService.isSendBack),t.xp6(1),t.Q6J("ngIf",!r.workflowService.isSendBack&&e.transaction.serviceTransaction.isRefrenceCountiresRegistered),t.xp6(1),t.Q6J("ngIf",r.workflowService.isSendBack),t.xp6(1),t.Q6J("ngIf",r.workflowService.isSendBack),t.xp6(1),t.Q6J("ngIf",r.workflowService.isSendBack),t.xp6(1),t.Q6J("ngIf",r.workflowService.isSendBack&&(null==e.transaction.serviceTransaction.referenceCountries?null:e.transaction.serviceTransaction.referenceCountries.length)>0)}}const jt=function(o,s){return{transaction:o,config:s}};let qt=(()=>{class o extends ft.s{constructor(e,r,i){super(e,r,i),this.workflowService=e,this.formTargetAnimalItem=this.workflowService.globalObject.ServiceDetailsConfiguration.formTargetAnimalItem,this.formTargetAnimalItemStatus=this.workflowService.globalObject.ServiceDetailsConfiguration.formTargetAnimalItemStatus,this.targetAnimals=this.workflowService.globalObject.ServiceDetailsConfiguration.serviceDetails.serviceTransaction.targetAnimals,this.formReferenceCountryItem=this.workflowService.globalObject.ServiceDetailsConfiguration.formReferenceCountryItem,this.formReferenceCountryItemStatus=this.workflowService.globalObject.ServiceDetailsConfiguration.formReferenceCountryItemStatus,this.referenceCountries=this.workflowService.globalObject.ServiceDetailsConfiguration.serviceDetails.serviceTransaction.referenceCountries}ngOnInit(){this.subscribeToFormsTemplatesSettings(),this.workflowService.setCurrentStep(C.x.ServiceDetailsConfiguration)}mainFormChange(e){return(0,d.mG)(this,void 0,void 0,function*(){yield this.workflowService.onMainFormChange(e)})}itemFormChange(e){e.type==gt.r.TargetAnimalChange&&this.workflowService.changeTargetAnimal(this.workflowService.globalObject)}pushTargetAnimalItem(e){e.action==w.p.push?this.workflowService.push(this.workflowService.globalObject.ServiceDetailsConfiguration.formTargetAnimalItem,this.workflowService.globalObject.ServiceDetailsConfiguration.formTargetAnimalItemStatus,this.workflowService.globalObject.ServiceDetailsConfiguration.targetAnimalItemInstance,this.workflowService.globalObject.ServiceDetailsConfiguration.serviceDetails.serviceTransaction.targetAnimals,this.workflowService.validateTargetAnimal):e.action===w.p.cancel&&this.workflowService.resetItemForm(this.workflowService.globalObject.ServiceDetailsConfiguration.formTargetAnimalItem,this.workflowService.globalObject.ServiceDetailsConfiguration.formTargetAnimalItemStatus)}editTargetAnimalItem(e){this.workflowService.globalObject.ServiceDetailsConfiguration.targetAnimalItemInstance=e.item,this.workflowService.startItemEditing(e,this.workflowService.globalObject.ServiceDetailsConfiguration.formTargetAnimalItem,this.workflowService.globalObject.ServiceDetailsConfiguration.formTargetAnimalItemStatus,"targetAnimalItemInstance",this.workflowService.changeTargetAnimal)}deleteTargetAnimalItem(e){this.workflowService.deleteItem(e,this.workflowService.globalObject.ServiceDetailsConfiguration.serviceDetails.serviceTransaction.targetAnimals)}pushReferenceCountryItem(e){e.action==w.p.push?this.workflowService.push(this.workflowService.globalObject.ServiceDetailsConfiguration.formReferenceCountryItem,this.workflowService.globalObject.ServiceDetailsConfiguration.formReferenceCountryItemStatus,this.workflowService.globalObject.ServiceDetailsConfiguration.referenceCountryItemInstance,this.workflowService.globalObject.ServiceDetailsConfiguration.serviceDetails.serviceTransaction.referenceCountries,this.workflowService.validateReferenceCountry):e.action===w.p.cancel&&this.workflowService.resetItemForm(this.workflowService.globalObject.ServiceDetailsConfiguration.formReferenceCountryItem,this.workflowService.globalObject.ServiceDetailsConfiguration.formReferenceCountryItemStatus)}editReferenceCountryItem(e){this.workflowService.startItemEditing(e,this.workflowService.globalObject.ServiceDetailsConfiguration.formReferenceCountryItem,this.workflowService.globalObject.ServiceDetailsConfiguration.formReferenceCountryItemStatus,"referenceCountryItemInstance")}deleteReferenceCountryItem(e){this.workflowService.deleteItem(e,this.workflowService.globalObject.ServiceDetailsConfiguration.serviceDetails.serviceTransaction.referenceCountries)}}return o.\u0275fac=function(e){return new(e||o)(t.Y36("WorkflowService"),t.Y36(f.F0),t.Y36(g.sK))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-accredit-vet-product-request"]],features:[t.qOj],decls:3,vars:8,consts:[[4,"ngIf"],["class","form-section main-form",4,"ngIf"],["class","form-section consignment-item-form",4,"ngIf"],["class","form-section targetAnimal-item-form",4,"ngIf"],["class","form-section referenceCountry-item-form",4,"ngIf"],["class","form-section",4,"ngIf"],[1,"form-section","main-form"],[3,"formGroup"],[3,"lookups","formGroup","alerts","customAlerts","transaction","formOptions","MainFormchange"],["mainFormDir","ngForm"],[1,"form-section","consignment-item-form"],[3,"lookups","formGroup","mode","formOptions","push"],["consignmentFormDir","ngForm"],[3,"formGroup","items","edit","delete"],[1,"form-section","targetAnimal-item-form"],[3,"lookups","formGroup","mode","formOptions","push","itemFormChange"],[1,"form-section","referenceCountry-item-form"],["titleKey","ViewServiceInformation",3,"transaction"],[1,"form-section"],[3,"items","enableEditing"]],template:function(e,r){1&e&&(t.YNc(0,Gt,9,8,"ng-container",0),t.ALo(1,"async"),t.ALo(2,"async")),2&e&&t.Q6J("ngIf",t.WLB(5,jt,t.lcZ(1,1,r.transaction$),t.lcZ(2,3,r.serviceConfig$)))},directives:[m.O5,ht.$,a.JL,a.sg,It,_t._,S.M,Tt._,k.y,Ot,F.E,Z.N],pipes:[m.Ov],encapsulation:2}),o})();var Ut=n(27359),Et=n(27418),Mt=n(51601);let Yt=(()=>{class o extends Mt.o{constructor(){super(...arguments),this.lookups={}}}return o.\u0275fac=function(){let s;return function(r){return(s||(s=t.n5z(o)))(r||o)}}(),o.\u0275cmp=t.Xpm({type:o,selectors:[["app-accredit-vet-product-initiator-action-form"]],inputs:{lookups:"lookups"},features:[t.qOj],decls:8,vars:6,consts:[[3,"formGroup"],[1,"row"],[1,"col-12"],[1,"col-form-label",3,"innerText"],[1,"col-md-12","col-sm-12"],["formControlName","action","identifier","action","key","trAccreditInitiatorActionFld","name","action",3,"items","bindLabel"]],template:function(e,r){1&e&&(t.TgZ(0,"form",0)(1,"div",1)(2,"div",2),t._UZ(3,"legend",3),t.ALo(4,"translate"),t.qZA()(),t.TgZ(5,"div",1)(6,"div",4),t._UZ(7,"bs-ng-dropdown",5),t.qZA()()()),2&e&&(t.Q6J("formGroup",r.formGroup),t.xp6(3),t.Q6J("innerText",t.lcZ(4,4,"Initiator Actions")),t.xp6(4),t.Q6J("items",r.lookups.initiatorActions)("bindLabel",r.defaultLookupDisplayProperty))},directives:[a._Y,a.JL,a.sg,T.z,a.JJ,a.u],pipes:[g.X$],encapsulation:2}),o})();function Bt(o,s){if(1&o&&(t.TgZ(0,"div",2),t._UZ(1,"app-accredit-vet-product-review-details",6),t.qZA()),2&o){const e=t.oxw().ngIf;t.xp6(1),t.Q6J("transaction",e.serviceTransaction)}}function zt(o,s){if(1&o&&(t.TgZ(0,"div",2),t._UZ(1,"app-accredit-reference-country-item-list",3),t.qZA()),2&o){const e=t.oxw().ngIf;t.xp6(1),t.Q6J("items",e.serviceTransaction.referenceCountries)("enableEditing",!1)}}function Kt(o,s){if(1&o&&(t.TgZ(0,"div"),t._UZ(1,"app-accredit-vet-product-initiator-action-form",7),t.qZA()),2&o){const e=t.oxw().ngIf,r=t.oxw(2);t.xp6(1),t.Q6J("lookups",e.mainLookups)("formGroup",r.initiatorActionForm)}}function Wt(o,s){if(1&o&&(t.TgZ(0,"div"),t.YNc(1,Kt,2,2,"div",0),t.qZA()),2&o){const e=t.oxw(2);t.ekj("form-section",e.workflowService.isPendingOnInitiatorAction()),t.xp6(1),t.Q6J("ngIf",e.workflowService.isPendingOnInitiatorAction())}}function Ht(o,s){if(1&o&&(t.ynx(0),t.YNc(1,Bt,2,1,"div",1),t.TgZ(2,"div",2),t._UZ(3,"app-accredit-package-item-list",3),t.qZA(),t.TgZ(4,"div",2),t._UZ(5,"app-accredit-target-animal-item-list",3),t.qZA(),t.YNc(6,zt,2,2,"div",4),t.YNc(7,Wt,2,3,"div",5),t.ALo(8,"async"),t.BQk()),2&o){const e=s.ngIf,r=t.oxw();
1t.xp6(1),t.Q6J("appFormSection",r.requestDetailsFormSection),t.xp6(2),t.Q6J("items",e.serviceTransaction.items)("enableEditing",!1),t.xp6(2),t.Q6J("items",e.serviceTransaction.targetAnimals)("enableEditing",!1),t.xp6(1),t.Q6J("ngIf",e.serviceTransaction.referenceCountries&&e.serviceTransaction.referenceCountries.length>0),t.xp6(1),t.Q6J("ngIf",t.lcZ(8,7,r.config$))}}let Xt=(()=>{class o extends Ut.D{constructor(e,r,i){super(e,i,r),e.isPendingOnSecondPayment()?setTimeout(()=>{e.getSecondPaymentFees()}):e.isPendingOnInitiatorAction&&(this.initiatorActionForm=e.globalObject.ServiceDetailsConfiguration.initiatorActionForm)}ngOnInit(){return(0,d.mG)(this,void 0,void 0,function*(){})}ngAfterViewInit(){return(0,d.mG)(this,void 0,void 0,function*(){})}}return o.\u0275fac=function(e){return new(e||o)(t.Y36("WorkflowService"),t.Y36(g.sK),t.Y36(f.F0))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-accredit-vet-product-request-review"]],features:[t.qOj],decls:2,vars:3,consts:[[4,"ngIf"],["class","form-section",4,"appFormSection"],[1,"form-section"],[3,"items","enableEditing"],["class","form-section",4,"ngIf"],[3,"form-section",4,"ngIf"],["titleKey","ViewServiceInformation",3,"transaction"],[3,"lookups","formGroup"]],template:function(e,r){1&e&&(t.YNc(0,Ht,9,9,"ng-container",0),t.ALo(1,"async")),2&e&&t.Q6J("ngIf",t.lcZ(1,1,r.transaction$))},directives:[m.O5,Et.A,Z.N,S.M,k.y,F.E,Yt,a.JL,a.sg],pipes:[m.Ov],encapsulation:2}),o})();var $t=n(40226);function te(o,s){if(1&o&&(t.TgZ(0,"div",1),t._UZ(1,"app-accredit-reference-country-item-list",3),t.qZA()),2&o){const e=t.oxw().ngIf;t.xp6(1),t.Q6J("items",e.serviceTransaction.referenceCountries)("enableEditing",!1)}}function ee(o,s){if(1&o&&(t.ynx(0),t.TgZ(1,"div",1),t._UZ(2,"app-accredit-vet-product-review-details",2),t.qZA(),t.TgZ(3,"div",1),t._UZ(4,"app-accredit-package-item-list",3),t.qZA(),t.TgZ(5,"div",1),t._UZ(6,"app-accredit-target-animal-item-list",3),t.qZA(),t.YNc(7,te,2,2,"div",4),t.BQk()),2&o){const e=s.ngIf;t.xp6(2),t.Q6J("transaction",e.serviceTransaction),t.xp6(2),t.Q6J("items",e.serviceTransaction.items)("enableEditing",!1),t.xp6(2),t.Q6J("items",e.serviceTransaction.targetAnimals)("enableEditing",!1),t.xp6(1),t.Q6J("ngIf",e.serviceTransaction.referenceCountries)}}let re=(()=>{class o extends $t.M{constructor(e,r,i){super(e,r,i)}ngOnInit(){this.subscribeToSizeSettings()}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(g.sK),t.Y36(f.gz),t.Y36("WorkflowService"))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-accredit-vet-product-request-view"]],features:[t.qOj],decls:2,vars:3,consts:[[4,"ngIf"],[1,"form-section"],["titleKey","ViewServiceInformation",3,"transaction"],[3,"items","enableEditing"],["class","form-section",4,"ngIf"]],template:function(e,r){1&e&&(t.YNc(0,ee,8,6,"ng-container",0),t.ALo(1,"async")),2&e&&t.Q6J("ngIf",t.lcZ(1,1,r.transaction$))},directives:[m.O5,Z.N,S.M,k.y,F.E],pipes:[m.Ov],styles:['div#containerDivId{width:auto;padding:0}.using-bootstrap legend{border:none;color:var(--golden-primary);margin-bottom:15px}.form-group.form-group-required:after{content:"*";color:var(--danger)}.form-group label{font-weight:inherit}html{overflow-anchor:none;scroll-behavior:smooth}.scroll-to{scroll-margin-top:110px}#progressbar{gap:5%;align-items:center;margin-bottom:0;width:100%;justify-content:space-between}#progressbar li{z-index:10;max-width:60px}#progressbar li:first-child{width:20%!important}#progressbar li:before{z-index:10;padding:8px!important;line-height:1em;margin:0 auto}#progressbar li:after{content:unset}#progressbar li.ds-step.ds-step-line:after{content:""}html[lang=ar] #progressbar{text-align:right;float:right}html[lang=ar] #progressbar li{float:right}html[lang=ar] #progressbar li:after{right:78%;left:0}#progressbar li:last-of-type:after{content:none}#progressbar li#ReviewConfiguration:after{content:none}.back-arrow{transform:rotateY(180deg)}html[lang=ar] .back-arrow{transform:rotateY(0)}html[lang=ar] .back-arrow a{float:left}html[lang=ar] .next-arrow{transform:rotateY(180deg)}.using-bootstrap .btn.btn-primary{background-color:var(--golden-primary);border-color:var(--golden-primary)}.using-bootstrap .btn.btn-rounded{border-radius:20px}.breadcrumbs-link,a.breadcrumbs-link{color:var(--gray)}.breadcrumbs-link:after{content:"\\e933";color:var(--dark);font-family:fi-icons!important;font-size:.7em;margin:0 16px}html[lang=ar] .breadcrumbs-link:after{content:"\\e932"}.breadcrumbs-link:nth-last-of-type(1){content:"";color:var(--golden-dark)}.breadcrumbs-link:nth-last-of-type(1):after{content:""}html[lang=ar] .breadcrumbs-link:nth-last-of-type(1):after{content:"\\e932"}html[lang=ar] .breadcrumbs-link:nth-last-of-type(1):after{content:""}html[lang=ar] .col-form-label{text-align:right}.forms-container{box-shadow:1px 1px 5px 3px var(--light-shadow);border-radius:10px}.form-section{padding:1.2em;border:solid 1px var(--light-shadow);margin-bottom:-1px;position:relative;overflow:hidden;max-height:99999px;transition:ease 2.5s;transition-property:max-height,height}.form-section.form-section-collapsed{max-height:70px;transition:ease .5s}.form-section.form-section-collapsible .form-section-collapsing{cursor:pointer}.form-section.form-section-collapsible .form-section-collapsing:hover{color:var(--golden-primary)}.form-section legend{color:var(--dark);font-size:1.5em}.title-container{margin-top:1em;margin-bottom:1em}html[lang=ar] .title-container,html[lang=ar] .forms-container form{text-align:right;direction:rtl}.form-section-valid-indicator{position:absolute;font-size:1.4rem;color:var(--gray);right:15px}html[lang=ar] .form-section-valid-indicator{right:initial;left:15px}.form-section-invalid{color:var(--danger)}.form-section-valid{color:var(--success)}.form-section-divider{display:block;margin:10px -19px;border:solid 1px var(--light-shadow)}html[lang=ar] .alignmet_left{text-align:right!important}.align-right{text-align:right}html[lang=ar] .align-right{text-align:left}html[lang=ar] .align-left{text-align:right}html[lang=ar] .float-left{float:right!important}html[lang=ar] .float-right{float:left!important}html[lang=ar] .en_text_right{text-align:left}html[lang=ar] .bred_crumb .breadcrumbs-link{float:right}.actions-container{width:100%;display:flex;justify-content:space-between}.licence-attachment-view label{color:var(--gray)}app-bs-map-display .form-group label{color:var(--gray)}.ng-invalid.highlight .ng-select-container,.is-invalid.highlight{animation:highlight .5s cubic-bezier(.68,-.55,.27,1.55)}.form-section-valid-indicator.highlight{animation:highlight-scale .5s cubic-bezier(.68,-.55,.27,1.55)}@keyframes highlight{0%{border-color:var(--danger);transform:scale(105%)}}@keyframes highlight-scale{0%{transform:scale(105%)}}ng-select{position:initial!important}app-progress-bar svg{max-width:100px;max-height:100px}app-progress-bar{float:right}html[lang=ar] app-progress-bar{float:left}.progress-bar-container{text-align:right}html[lang=ar] .progress-bar-container{text-align:left}.breadcrumb-content{display:flex;align-items:flex-start;flex-direction:column;gap:15px}.view_info{margin:0}.view_info:nth-of-type(1){margin:0}html[lang=en] .btn+.btn{margin-left:.25rem!important}html[lang=ar] .btn+.btn{margin-right:.25rem!important}.input-group>.form-control,.input-group>.form-control-plaintext,.input-group>.custom-select,.input-group>.custom-file{width:1%}html[lang=ar] .input-group:not(.has-validation)>.form-control:not(:last-child),html[lang=ar] .input-group:not(.has-validation)>.custom-select:not(:last-child),html[lang=ar] .input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label:after{border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:.25rem;border-bottom-right-radius:.25rem;border-left:0}html[lang=ar] .input-group>.input-group-append>.btn,html[lang=ar] .input-group>.input-group-append>.input-group-text,html[lang=ar] .input-group>.input-group-prepend:not(:first-child)>.btn,html[lang=ar] .input-group>.input-group-prepend:not(:first-child)>.input-group-text,html[lang=ar] .input-group>.input-group-prepend:first-child>.btn:not(:first-child),html[lang=ar] .input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child){border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.input-group-text{height:34px}.sections-indexer{background-color:transparent;width:100%;position:sticky;border-top-right-radius:10px;border-bottom-right-radius:10px;z-index:1;padding:0}.indexer-item{cursor:pointer;width:100%;padding:1em 0 1em .5em;transition:.5s border,box-shadow,color}html[lang=ar] .indexer-item{padding:1em .5em 1em 0}.indexer-item:hover{color:var(--golden-primary)}html[lang=ar] .indexer-item{text-align:right}.indexer-item-active{color:var(--golden-dark);box-shadow:-4px 0 4px 1px var(--light-shadow);border-left:5px solid var(--golden-primary);border-right:initial}html[lang=ar] .indexer-item-active{box-shadow:4px 0 4px 1px var(--light-shadow);border-right:5px solid var(--golden-primary);border-left:initial}.sections-indexer.sticky-sections-indexer{position:fixed;top:50px;width:10%;max-width:125px}.help-bar{display:flex;justify-content:flex-start;gap:1em;width:100%}.help-item .tooltip{left:5px!important}.help-item .tooltip .arrow:before{left:37px}.help-item a{width:30px;display:flex;border:1px solid;border-radius:50%;padding:6px;height:30px;justify-content:center;align-items:center;color:var(--golden-primary)}.help-item a img{width:100%}.pt-2.pb-1.button_container.mb-2.flex_flow.flex_between{flex-flow:initial}.width-2.applicant_info_comp{width:100%!important}.uplaoded_file{margin:auto}.dash-bor{text-align:center}.custom-checkbox-required-start{padding:0 .2em;color:var(--danger)}.custom-control{padding-right:0;padding-left:1.5rem}html[lang=ar] .custom-control{padding-right:1.5rem;padding-left:0}html[lang=ar] .custom-control-input{right:0}.custom-control-label:before{left:-1.5rem;right:unset}html[lang=ar] .custom-control-label:before{left:unset;right:-1.5rem}.custom-control-label:after{left:-1.5rem;right:unset}html[lang=ar] .custom-control-label:after{left:unset;right:-1.5rem}.custom-control.custom-radio input[type=radio],.custom-control.custom-radio .custom-control-label,.custom-control.custom-radio .custom-control-label *{cursor:pointer;margin-bottom:10px}.custom-control.custom-checkbox,.custom-control.custom-checkbox *{curs
1or:pointer}.text-decoration-underline{text-decoration:underline}.attachment-section .ngx-file-drop__drop-zone{border:none!important}.attachment-section .attachment-upload{display:flex;justify-content:space-between;padding:20px 30px;background-color:var(--height-light);border-radius:10px}.attachment-section .attachment-group{margin-top:20px}.attachment-group .attachment-uploaded{width:80px;height:80px;background:#f1f1f1;padding:10px;border-radius:6px;position:relative;display:flex;justify-content:center;align-items:center;border:1px solid #f1f2f4;margin-bottom:15px}.attachment-group .attachment-uploaded a{position:absolute;right:10px;top:3px;width:10px}.attachment-group .attachment-uploaded a img{width:100%}.attachment-group .attachment-uploaded span{font-size:40px;color:var(--golden-primary)}.attachment-instance{display:flex;flex-flow:column;justify-content:center;align-items:center}.commenting .form-group{margin:0;height:100%}.commenting .ngx-file-drop__drop-zone{border:none!important;margin:0!important;height:unset!important;min-height:100px!important}.commenting .ngx-file-drop__content{display:block!important;height:unset!important;min-height:100px!important}.container.scroll-to{margin-bottom:8rem!important}.mt-30-px{margin-top:30px}.ng-dropdown-panel.breakSpaces .ng-dropdown-panel-items .ng-option{white-space:break-spaces}input[type=date]{display:block;-webkit-appearance:textfield;-moz-appearance:textfield;min-height:1.2em}@media (max-width: 480px){.progress-bar-container{text-align:center}}@media (max-width: 480px){.attachment-section .attachment-upload{flex-direction:column}}@media (min-width: 768px){html[lang=ar] .offset-md-3{margin-right:25%;margin-left:initial}html[lang=ar] .offset-md-2{margin-right:16.666667%;margin-left:initial}.col-12 #progressbar li:after,.col-sm-12 #progressbar li:after,.col-md-12 #progressbar li:after{width:300%}.col-md-8 #progressbar li:after{width:200%}}.attachment-required{border:1px solid red}\n'],encapsulation:2}),o})();var oe=n(69461);const ie=[{path:"",component:ut,children:[{path:"applicantinformation",component:V.W,data:{breadcrumb:{useBreadcrumbKey:"serviceName"}}},{path:"requestDetails",component:oe.c,children:[{path:"",component:qt}],data:{breadcrumb:{useBreadcrumbKey:"serviceName"}}},{path:"attachments",component:Q.D,data:{breadcrumb:{useBreadcrumbKey:"serviceName"}}},{path:"review",component:L.D,children:[{path:"",component:Xt}]},{path:"payment",component:U.p},{path:"congrats",component:q.v}]},{path:"view",component:j.G,children:[{path:"",component:re}]}];let ne=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({providers:[{provide:"WorkflowService",useClass:I},{provide:"apiService",useClass:y},{provide:"mapperService",useClass:A},I,y,A],imports:[[m.ez,G.N,E.i,M.r,f.Bz.forChild(ie)]]}),o})()}}]);
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.