import{r as registerInstance,h,H as Host,g as getElement}from"./index-55faf181.js";import{a as ID,b as ID$1,c as ID$2,e as ID$3,I as ID$4,v as viewConfig,f as config,g as config$1,h as config$2,i as config$3}from"./table-list-view-domain-391279b6.js";import"./index-da37d89d.js";import"./index-403e215e.js";import"./BaseField-461b6d0c.js";import"./nested-395a4cd4.js";import"./data-transfer-field-918730a3.js";import"./app-config-d490f9ae.js";import"./data-model-f5160369.js";import"./filter-cbaa3d7d.js";import"./table-list-view-config-8e775e94.js";import"./index-ebde6a66.js";import"./attachment-32decf79.js";import"./index-6a1cf9c1.js";import"./date-ce777316.js";import"./index-083a6906.js";import"./membership-config-a51a5232.js";import"./table-config-5c917348.js";import"./FieldModelGenerator-1ee7fda2.js";import"./index-fa1db470.js";import"./string-3065a411.js";import"./spaces-460b4232.js";import"./InterceptorHandler-6474bcf4.js";import"./view-config-39fd369a.js";import"./services-fc4ce8f3.js";import"./form-view-config-00abddd1.js";import"./actions-b9a0f808.js";var DevingenProductRootDamga=function(){function i(i){registerInstance(this,i);this.isCreateDomainFormShown=false;this.isMoveDomainFormShown=false;this.isDeleteDomainFormShown=false;this.isUpdateDomainFormShown=false}i.prototype.onAction=function(i){var e=i.detail;if(e.type==="navigation"){var o=e;if(o.direction==="back"){this.isCreateDomainFormShown=false;this.isUpdateDomainFormShown=false;this.isMoveDomainFormShown=false;this.isDeleteDomainFormShown=false}else if(o.direction==="forward"){var a=e;if(a.viewId===ID){this.isCreateDomainFormShown=true}else if(a.viewId===ID$1){this.isUpdateDomainFormShown=true;this.updateDomainFormParams=a.params}else if(a.viewId===ID$2){this.isMoveDomainFormShown=true;this.moveDomainFormParams=a.params}else if(a.viewId===ID$3){this.isDeleteDomainFormShown=true;this.deleteDomainFormParams=a.params}}}};i.prototype.onInvalidation=function(i){var e;(e=this.el.querySelector("#"+i.detail.targetViewId))===null||e===void 0?void 0:e.invalidate(i)};i.prototype.render=function(){var i=this;var e=this,o=e.apiDamga,a=e.apiData,t=e.isCreateDomainFormShown,r=e.isDeleteDomainFormShown,s=e.isMoveDomainFormShown,n=e.isUpdateDomainFormShown,m=e.product,d=e.products,p=e.updateDomainFormParams,f=e.workspaceOwnerships,c=e.moveDomainFormParams,l=e.deleteDomainFormParams;return h(Host,{class:"container d-block"},h("div",{class:"row justify-content-md-center"},h("div",{class:"col-sm-12"},h("dvn-app-view-list-view-table",{id:ID$4,apiData:a,view:viewConfig(m._id)}),t&&h("dvn-dialog",{raw:true,shown:true,onDismiss:function(){return i.isCreateDomainFormShown=false}},h("dvn-app-view-form-view",{params:{productId:m._id},view:config(o)})),n&&h("dvn-dialog",{raw:true,shown:true,onDismiss:function(){return i.isUpdateDomainFormShown=false}},h("dvn-app-view-form-view",{params:p,view:config$1(o)})),s&&h("dvn-dialog",{raw:true,shown:true,onDismiss:function(){return i.isMoveDomainFormShown=false}},h("dvn-app-view-form-view",{params:c,view:config$2(o,d,f)})),r&&h("dvn-dialog",{raw:true,shown:true,onDismiss:function(){return i.isDeleteDomainFormShown=false}},h("dvn-app-view-form-view",{params:l,view:config$3(o)})))))};Object.defineProperty(i.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return i}();export{DevingenProductRootDamga as devingen_product_damga_domains};