import{k as K,l as le}from"./chunk-UCR7BMVG.js";import{k as R,l as ne}from"./chunk-BMM7QLM2.js";import{a as J,b as ae}from"./chunk-3GENWMIL.js";import{c as Q,d as se}from"./chunk-7VQWDBOW.js";import{a as G,b as re}from"./chunk-PNRZ5ALL.js";import{a as W,b as oe}from"./chunk-6EWCQHA4.js";import{a as L,b as te}from"./chunk-4T5NQCD4.js";import{a as H,b as ie}from"./chunk-LK2BF24O.js";import{a as A,b as j,c as E}from"./chunk-CMCRHNFU.js";import{B as F,g as O,i as V,n as k,z}from"./chunk-A32B57A4.js";import{g as q,h as ee}from"./chunk-QX4MTOR7.js";import{oc as N,pc as $}from"./chunk-XBRJZCAD.js";import{n as B,s as Y}from"./chunk-KADRYNDC.js";import{a as M,b as Z}from"./chunk-PM3MTE6X.js";import{Ac as r,Dc as D,Eb as l,Gd as X,Ja as n,Ka as a,Ob as C,Pc as y,Sb as _,Tb as b,Xc as S,Yc as P,Zc as T,cd as I,ec as s,hc as h,lc as x,md as v,nd as f,qc as p,rc as c,sc as g,wc as w,zb as m,zc as u}from"./chunk-JSJB5BKT.js";import{e as U}from"./chunk-SZAW6ZBW.js";function de(o,ce){if(o&1){let t=w();p(0,"p-dialog",2),v(1,"translate"),T("visibleChange",function(i){n(t);let d=r();return P(d.displayDialog,i)||(d.displayDialog=i),a(i)}),u("onHide",function(){n(t);let i=r();return a(i.cancel())})("visibleChange",function(){n(t);let i=r();return a(i.cancel())}),g(2,"sd-loading-bar"),p(3,"form",3,0),g(5,"dvl-provider-details",4),c(),p(6,"p-footer")(7,"sd-submit-button",5),v(8,"translate"),u("onClick",function(){n(t);let i=r();return a(i.save())}),c(),p(9,"sd-cancel-button",5),v(10,"translate"),u("onClick",function(){n(t);let i=r();return a(i.cancel())}),c()()()}if(o&2){let t=y(4),e=r();h(I(22,pe)),D("header",f(1,16,"lblProvider")),S("visible",e.displayDialog),s("draggable",!1)("maximizable",!0)("modal",!0)("focusOnShow",!1),m(5),s("allowAddScanConfigurationOnCreate",e.allowAddScanConfigurationOnCreate)("providerTemplate",e.providerTemplate)("form",t)("provider",e.item),m(2),s("label",f(8,18,"lblSave"))("parent",t),m(2),s("label",f(10,20,"lblCancel"))("parent",t)}}var pe,Ve,me=U(()=>{ae();$();E();Z();re();F();le();oe();te();X();se();ne();ee();ie();E();Y();F();pe=()=>({width:"800px",height:"650px"});Ve=(()=>{class o extends J{constructor(t,e,i,d){super(t,e,d),this.repositoryService=i,this.allowAddScanConfigurationOnCreate=!1,this.credentialType=N}afterCreate(){let t=this.requestParams;return this.allowAddScanConfigurationOnCreate=t.allowAddScanConfigurationOnCreate,this.requestParams?.options?.providerTemplate&&(this.providerTemplate=this.requestParams.options.providerTemplate,this.item.providerTemplateId=this.providerTemplate?.id),super.afterCreate()}afterSave(){return super.afterSave()}static{this.\u0275fac=function(e){return new(e||o)(l(Q),l(R),l(q),l(H))}}static{this.\u0275cmp=C({type:o,selectors:[["dvl-provider-dialog"]],inputs:{key:"key"},features:[_],decls:1,vars:1,consts:[["currentForm","ngForm"],["closeIcon","di dvl-icon-close","minimizeIcon","di dvl-icon-minimize","maximizeIcon","di dvl-icon-expand",3,"header","visible","style","draggable","maximizable","modal","focusOnShow"],["closeIcon","di dvl-icon-close","minimizeIcon","di dvl-icon-minimize","maximizeIcon","di dvl-icon-expand",3,"visibleChange","onHide","header","visible","draggable","maximizable","modal","focusOnShow"],["autocomplete","off","novalidate","",1,"full-height"],[3,"allowAddScanConfigurationOnCreate","providerTemplate","form","provider"],[3,"onClick","label","parent"]],template:function(e,i){e&1&&b(0,de,11,23,"p-dialog",1),e&2&&x(i.item&&i.displayDialog?0:-1)},dependencies:[j,A,B,M,G,z,k,O,V,K,W,L],styles:["[_nghost-%COMP%]     .p-dialog .p-dialog-content{overflow:auto}@supports not selector(::-webkit-scrollbar){[_nghost-%COMP%]     .p-dialog .p-dialog-content{scrollbar-width:thin;scrollbar-color:var(--scrollbar-color) var(--scrollbar-background-color)}}"]})}}return o})()});export{Ve as a,me as b};
