import{r as s,h as i,H as a,g as o}from"./p-c1e62c18.js";import"./p-eb6e2a8b.js";import"./p-35c7f358.js";import"./p-3c3b4f3f.js";import"./p-04ac75cf.js";import"./p-d66fb38c.js";import"./p-22a0eb5c.js";import"./p-552063c3.js";import"./p-a9eda644.js";import"./p-7c81e200.js";import"./p-0f7a11a0.js";import"./p-e8956308.js";import"./p-a8682d9e.js";import"./p-d343a062.js";import"./p-6f59f79b.js";import"./p-f944fe09.js";import"./p-8d093bbd.js";import"./p-6cf8ecf7.js";import"./p-b673f44e.js";import"./p-67db8424.js";import"./p-edad6c3d.js";import"./p-15022e50.js";import"./p-92f74b0b.js";import"./p-0fb5fd0d.js";import{a as t,b as p,c as r,e as m,I as e,v as n,f as d,g as c,h as v,i as h}from"./p-a750de32.js";const w=class{constructor(i){s(this,i),this.isCreateDomainFormShown=!1,this.isMoveDomainFormShown=!1,this.isDeleteDomainFormShown=!1,this.isUpdateDomainFormShown=!1}onAction(s){const i=s.detail;if("navigation"===i.type){const s=i;if("back"===s.direction)this.isCreateDomainFormShown=!1,this.isUpdateDomainFormShown=!1,this.isMoveDomainFormShown=!1,this.isDeleteDomainFormShown=!1;else if("forward"===s.direction){const s=i;s.viewId===t?this.isCreateDomainFormShown=!0:s.viewId===p?(this.isUpdateDomainFormShown=!0,this.updateDomainFormParams=s.params):s.viewId===r?(this.isMoveDomainFormShown=!0,this.moveDomainFormParams=s.params):s.viewId===m&&(this.isDeleteDomainFormShown=!0,this.deleteDomainFormParams=s.params)}}}onInvalidation(s){var i;null===(i=this.el.querySelector("#"+s.detail.targetViewId))||void 0===i||i.invalidate(s)}render(){const{apiDamga:s,apiData:o,isCreateDomainFormShown:t,isDeleteDomainFormShown:p,isMoveDomainFormShown:r,isUpdateDomainFormShown:m,product:w,products:f,updateDomainFormParams:j,workspaceOwnerships:l,moveDomainFormParams:b,deleteDomainFormParams:D}=this;return i(a,{class:"container d-block"},i("div",{class:"row justify-content-md-center"},i("div",{class:"col-sm-12"},i("dvn-app-view-list-view-table",{id:e,apiData:o,view:n(w._id)}),t&&i("dvn-dialog",{raw:!0,shown:!0,onDismiss:()=>this.isCreateDomainFormShown=!1},i("dvn-app-view-form-view",{params:{productId:w._id},view:d(s)})),m&&i("dvn-dialog",{raw:!0,shown:!0,onDismiss:()=>this.isUpdateDomainFormShown=!1},i("dvn-app-view-form-view",{params:j,view:c(s)})),r&&i("dvn-dialog",{raw:!0,shown:!0,onDismiss:()=>this.isMoveDomainFormShown=!1},i("dvn-app-view-form-view",{params:b,view:v(s,f,l)})),p&&i("dvn-dialog",{raw:!0,shown:!0,onDismiss:()=>this.isDeleteDomainFormShown=!1},i("dvn-app-view-form-view",{params:D,view:h(s)})))))}get el(){return o(this)}};export{w as devingen_product_damga_domains}