import{r as s,h as i,H as a,g as o}from"./p-cb5076d4.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-2f5caa4e.js";import"./p-3bdf4c50.js";import"./p-0db2169b.js";import"./p-eebad85b.js";import"./p-f97ba04a.js";import"./p-944da115.js";import"./p-a2aae1b0.js";import"./p-d50d0ec8.js";import"./p-d343a062.js";import"./p-7f474e9b.js";import"./p-b0970d03.js";import"./p-234c1f97.js";import"./p-8a308033.js";import"./p-3b35e507.js";import"./p-1c5c6afa.js";import"./p-c705c477.js";import"./p-4f99fb23.js";import"./p-0e4ae084.js";import"./p-97c18602.js";import"./p-d27cb594.js";import"./p-cd2f59dd.js";import"./p-35c7f358.js";import"./p-27da9105.js";import"./p-b673f44e.js";import"./p-61301881.js";import"./p-6cf8ecf7.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:j,updateDomainFormParams:f,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:f,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,j,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}