PageSourceSearch

https://antrag.akkreditierungsrat.de/static/chunk.FoerderorganisationDetails.DPqcdFf6.js

js akkreditierungsrat.de collected 2026-10-02 04:07:57 UTC 42,546 bytes, 7 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="dd4c9df4-503a-5dfe-99ee-5d52005cf476")}catch(e){}}();
3const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["chunk.AnalysenStatus.CZ02h33X.js","chunk.node_modules-aloha-vue.DbNMYnza.js","chunk.node_modules-moment.BRP5vwyL.js","chunk.node_modules.DvGpP_Tt.js","assets/node_modules-Dqszr6bn.css","chunk.FormstepDetail.DDvhUJLJ.js","chunk.FormElement.CDUEs6Qr.js","chunk.node_modules-lodash.QgrmGia7.js","chunk.node_modules-@popperjs/core.CqjjvLx0.js","chunk.node_modules-tinymce.D4GGYgQW.js","assets/node_modules-tinymce-DheqHiQe.css","assets/FormElement-BsnOsGGt.css","chunk.FormElementReadOnly.ChSfzRW4.js","chunk.NotizenIcon.B93F-rKT.js","chunk.PuxRequired.D7nAAW_H.js","bundle.index.CPN1QbTx.js","chunk.node_modules-js-cookie.Cz0CWeBA.js","chunk.node_modules-pux-table.DC7zdi8H.js","chunk.node_modules-@sentry/vue.RPPCkTps.js","chunk.node_modules-aloha-svg.BrtAEGlE.js","chunk.node_modules-jquery.ClOwCpM0.js","chunk.node_modules-axios.B9ygI19o.js","assets/index-BhIprQqo.css","chunk.ContextPanel.DxmLUYnb.js"])))=>i.map(i=>d[i]);
4import{d as S,l as K,q,c as _e,e as de,_ as ce}from"./chunk.FormElement.CDUEs6Qr.js";import{A as ue}from"./chunk.AsideRightBox.BWpUkH1B.js";import{C as pe}from"./chunk.ContextPanel.DxmLUYnb.js";import{F as Ee}from"./chunk.FoerderorganisationKontaktBox.DLG2dA8G.js";import{v as L,T as h,d as w,Z as oe,B as H,j as ge,e as se,L as te,M}from"./chunk.node_modules-aloha-vue.DbNMYnza.js";import{F as V}from"./chunk.FormstepDetail.DDvhUJLJ.js";import{g as C,f as ne,c as Q,b as ee,L as Ae,a as Oe,a6 as Te}from"./chunk.node_modules-lodash.QgrmGia7.js";import{z as E,c as u,r as g,a as d,f as b,o as m,w as O,l as R,d as _,b as U,D,g as $,F as Re,i as me,j as J,ao as fe,e as Ie}from"./chunk.node_modules.DvGpP_Tt.js";import{P as G}from"./bundle.index.CPN1QbTx.js";import{a as x}from"./chunk.node_modules-pux-table.DC7zdi8H.js";import{M as ae}from"./chunk.ModalGlobalAPI.Cf7N1QHT.js";import{T as j}from"./chunk.TableUrlAPI.DCI12e7T.js";import{h as B}from"./chunk.node_modules-moment.BRP5vwyL.js";import{P as be}from"./chunk.PuxPageDetails.Ci8637pv.js";import{C as De}from"./chunk.ClientAPI.CDLBGJUz.js";import"./chunk.node_modules-@popperjs/core.CqjjvLx0.js";import"./chunk.node_modules-tinymce.D4GGYgQW.js";import"./chunk.NotizenIcon.B93F-rKT.js";import"./chunk.FormElementReadOnly.ChSfzRW4.js";import"./chunk.PuxRequired.D7nAAW_H.js";import"./chunk.node_modules-js-cookie.Cz0CWeBA.js";import"./chunk.node_modules-@sentry/vue.RPPCkTps.js";import"./chunk.node_modules-aloha-svg.BrtAEGlE.js";import"./chunk.node_modules-jquery.ClOwCpM0.js";import"./chunk.node_modules-axios.B9ygI19o.js";import"./chunk.TableApis.BxDpSSNd.js";import"./chunk.PageTabTitle.DmrMpN-i.js";function ve(e,{open:o=()=>{},save:t=()=>{}}){const a=E(e,"organisation"),i=u(()=>({label:"_TXT_FOERDERORGANISATION_DETAILS_AFFILIATION_HEADER_",required:!0,saveC
4allback:t,openCallback:o,list:[{id:"typ_pk",htmlId:"foerderorganisation_details_org_type",label:"_TXT_FOERDERORGANISATION_DETAILS_ORGANISATION_TYPE_",type:"select",view:"v-alt",keyId:"pk",keyLabel:"ot_kbez",url:"katalog/?key=foerderorgtyp",editonly:!0,required:!0},{id:"uebergeordnete_org_pk",htmlId:"foerderorganisation_details_parent_org",label:"_TXT_FOERDERORGANISATION_DETAILS_PARENT_ORGANISATION_",type:"select",disabled:!0,view:"v-alt",keyId:"pk",keyLabel:"o_name",search:!0,searchList:["o_name"],url:"foerderorganisationen/?eigene=True&serializer=minimal",editonly:!0,required:!1,placeholder:"_TXT_FOERDERORGANISATION_DETAILS_PARENT_ORGANISATION_PLACEHOLDER_"}]})),s=u(()=>C(a.value,"typ.ot_kbez","")),n=u(()=>C(a.value,"uebergeordnete_org.o_name",""));return{organisationAffiliationOptions:i,organisationType:s,parentOrganisationName:n}}function Ne(e){const o=E(e,"organisation"),t=g({});return{organisationAffiliationModel:t,setModel:()=>{t.value.typ_pk=o.value.typ_pk}}}function k({organisation:e=g({})}={}){const{hasPermission:o}=G({permission:"foerderorg.update"}),{hasPermission:t}=G({permission:"foerderorg.basicdata_update"}),a=u(()=>o.value||t.value),i=u(()=>C(e.value,"user_permissions",[])),{hasPermissionFromObject:s}=G({permission:"foerderorg.budgetkonto.update",object:e}),{hasPermissionFromObject:n}=G({permission:"foerderorg.saldo.view",object:e}),{hasPermissionFromObject:r}=G({permission:"foerderorgrollen.freigabe.create",object:e});return{hasPermissionOrganisationAndBasicDataUpdate:a,hasPermissionOrganisationUpdate:o,hasWFPermissionOrganisationBudgetUpdate:s,hasWFPermissionOrganisationRoleApprovalCreate:r,hasWFPermissionOrganisationSaldoView:n,organisationUserPermissions:i}}function Se(e,{emit:o}){const t=E(e,"organisation"),{patchHttp:a}=L(),{addNotification:i}=h();return{save:({model:n})=>a({url:`foerderorganisationen/${t.value.pk}/`,data:n}).then(r=>{o("onUpdate",{data:r}),i({text:"_MSG_ORGANISATION_DETAILS_SAVE_SUCCESS_"})})}}const Le={name:"OrganisationAffiliation",components:{ALink:oe,ATranslation:w,FormstepDetail:V},props:{organisation:{type:Object,required:!0}},emits:["onUpdate"],setup(e,o){const{filterDefaultForEmpty:t}=H(),{hasPermissionOrganisationUpdate:a}=k(),{save:i}=Se(e,o),{organisationAffiliationModel:s,setModel:n}=Ne(e),{organisationAffiliationOptions:r,organisationType:l,parentOrganisationName:c}=ve(e,{open:n,save:i});return{filterDefaultForEmpty:t,hasPermissionOrganisationUpdate:a,organisationAffiliationModel:s,organisationAffiliationOptions:r,organisationType:l,parentOrganisationName:c}}},Ce={class:"dl-horizontal"},he={key:0};function ke(e,o,t,a,i,s){const n=d("a-translation"),r=d("a-link"),l=d("formstep-detail");return m(),b(l,{"html-id":"foerderorganisation_details_affiliation",editable:e.hasPermissionOrganisationUpdate,model:e.organisationAffiliationModel,options:e.organisationAffiliationOptions},{readonly:O(()=>[R("dl",Ce,[_(n,{tag:"dt",text:"_TXT_FOERDERORGANISATION_DETAILS_ORGANISATION_TYPE_"}),R("dd",null,D(e.filterDefaultForEmpty(e.organisationType)),1),_(n,{tag:"dt",text:"_TXT_FOERDERORGANISATION_DETAILS_PARENT_ORGANISATION_"}),e.organisation.uebergeordnete_org_pk?(m(),U("dd",he,[_(r,{to:{name:"root.foerderorganisationen.details",params:{id:e.organisation.uebergeordnete_org_pk}},text:e.parentOrganisationName},null,8,["to","text"])])):(m(),b(n,{key:1,tag:"dd",text:"_TXT_FOERDERORGANISATION_DETAILS_NO_PARENT_"}))])]),_:1},8,["editable","model","options"])}const ye=S(Le,[["render",ke],["__file","OrganisationAffiliation.vue"]]);function Fe(e){const o=g(!1),t=g({}),a=E(e,"organisation"),{getHttp:i}=L();return{budget:t,loadData:()=>{o.value=!0,i({url:`foerderorganisationen/${a.value.pk}/budget/`}).then(n=>{t.value=n}).finally(()=>o.value=!1)},loading:o}}function Ge({open:e=()=>{},save:o=()=>{}}){return{organisationBudgetOptions:u(()=>({label:"_LBL_FOERDERORGANISATION_DETAILS_KONTO_",required:!0,openCallback:e,saveCallback:o,list:[{id:"budgetkonto",htmlId:"foerderorganisation_details_bugdet_konto",type:"select",label:"_LBL_FOERDERORGANISATION_BUDGET_RUBRIK_SELECT_KONTO_LABEL_",placeholder:"_LBL_FOERDERORGANISATION_BUDGET_RUBRIK_SELECT_KONTO_PLACEHOLDER_",url:"/katalog/?key=fibu_konto",required:!0,editonly:!0,view:"v-alt",keyId:"pk",keyLabel:"bez"}]}))}}function Be({budget:e={}}){const o=g({});return{organisationBudgetModel:o,setModel:()=>{o.value.budgetkonto=e.value.budgetkonto}}}function $e({budget:e={}}){const{filterDefaultForEmpty:o}=H(),t=u(()=>o(e.value.budgetkonto_bez,{emptyValue:K("_TXT_KEINE_ANGABE_")})),a=u(()=>C(e.value,"budgetkonto_saldo.haben",K("_TXT_KEINE_ANGABE_"))),i=u(()=>C(e.value,"budgetkonto_saldo.soll",K("_TXT_KEINE_ANGABE_"))),s=u(()=>C(e.value,"budgetkonto_saldo.diff",K("_TXT_KEINE_ANGABE_")));return{budgetKontoDescription:t,budgetKontoSaldoDiff:s,budgetKontoSaldoHaben:a,budgetKontoSaldoSoll:i}}function Pe(e,{budget:o}){const t=E(e,"organisation"),{putHttp:a}=L(),{addNotification:i}=h();return{save:({model:n})=>a({url:`foerderorganisationen/${t.value.pk}/budget_update/`,data:n}).then(r=>{o.value=r,i({text:"_MSG_UPDATE_SUCCESS_"})})}}const Me={name:"OrganisationBudget",components:{ATranslation:w,FormstepDetail:V},props:{organisation:{type:Object,required:!0}},setup(e){const o=E(e,"organisation"),{hasWFPermissionOrganisationBudgetUpdate:t,hasWFPermissionOrganisationSaldoView:a}=k({organisation:o}),{budget:i,loadData:s,loading:n}=Fe(e);s();const{save:r}=Pe(e,{budget:i}),{organisationBudgetModel:l,setModel:c}=Be({budget:i}),{budgetKontoDescription:p,budgetKontoSaldoDiff:A,budgetKontoSaldoHaben:f,budgetKontoSaldoSoll:v}=$e({budget:i}),{organisationBudgetOptions:T}=Ge({open:c,save:r});return{budget:i,budgetKontoDescription:p,budgetKontoSaldoDiff:A,budgetKontoSaldoHaben:f,budgetKontoSaldoSoll:v,hasWFPermissionOrganisationBudgetUpdate:t,hasWFPermissionOrganisationSaldoView:a,loading:n,organisationBudgetModel:l,organisationBudgetOptions:T}}},Ue={class:"dl-horizontal"};function Xe(e,o,t,a,i,s){const n=d("a-translation"),r=d("formstep-detail");return m(),b(r,{"html-id":"foerderorganisation_details_budget_konto",editable:e.hasWFPermissionOrganisationBudgetUpdate,loading:e.loading,model:e.organisationBudgetModel,options:e.organisationBudgetOptions},{readonly:O(()=>[R("dl",Ue,[_(n,{tag:"dt",text:"_TXT_FOERDERORGANISATION_BUDGET_RUBRIK_KONTO_BEZEICHNUNG_"}),R("dd",null,D(e.budgetKontoDescription),1),e.hasWFPermissionOrganisationSaldoView?(m(),U(Re,{key:0},[_(n,{tag:"dt",text:"_TXT_FOERDERORGANISATION_BUDGET_RUBRIK_KONTO_SALDO_HABEN_"}),R("dd",null,D(e.budgetKontoSaldoHaben),1),_(n,{tag:"dt",text:"_TXT_FOERDERORGANISATION_BUDGET_RUBRIK_KONTO_SALDO_SOLL_"}),R("dd",null,D(e.budgetKontoSaldoSoll),1),_(n,{tag:"dt",text:"_TXT_FOERDERORGANISATION_BUDGET_RUBRIK_KONTO_SALDO_DIFF_"}),R("dd",null,D(e.budgetKontoSaldoDiff),1)],64)):$("",!0)])]),_:1},8,["editable","loading","model","options"])}const we=S(Me,[["render",Xe],["__file","OrganisationBudget.vue"]]);function He(){const e=g([]),o=g(!0),{getListHttp:t}=L(),a=()=>t({url:"kommunikationstypen/"}).then(n=>{e.value=n,o.value=!1}),i=u(()=>{if(o.value)return[];
4const n=[{id:"fas_name",type:"text",label:"_LBL_FOERDERORGANISATION_CONTACT_CREATE_NAME_",required:!0,maxlength:200,view:"v"},{id:"fas_funktion",type:"text",label:"_LBL_FOERDERORGANISATION_CONTACT_CREATE_FUNKTION_",maxlength:200,view:"v"}];return ne(e.value,(r,l)=>{n.push({id:`communication_${l}`,type:"text",label:r.kot_bez,name:r.kot_id,required:!1,maxlength:250,view:"v"})}),n}),s=u(()=>({showCloseButton:!0,list:i.value,required:!0}));return{communicationTypes:e,isCommunicationTypesLoading:o,loadCommunicationTypes:a,optionsModal:s}}function Ve(){return{model:g({})}}function ze(e,{emit:o},{communicationTypes:t=g([]),model:a=g({})}){const i=E(e,"organisation"),s=g(void 0),n=g(void 0),r=g(!1),{postHttp:l}=L(),{addNotification:c}=h(),p=()=>{const T=Q(a.value);return T.kommunikationsdaten=[],ne(t.value,(y,I)=>{T[`communication_${I}`]&&T.kommunikationsdaten.push({fak_wert:T[`communication_${I}`],typ:y,typ_id:y.kot_id})}),T},A=({error:T})=>{s.value=T,n.value=T},f=({response:T}={})=>{o("close",{response:T})};return{close
4:f,errors:s,errorsClone:n,loading:r,save:()=>{r.value=!0,l({url:`foerderorganisationen/${i.value.pk}/ansprechpartner/`,data:p()}).then(T=>{c({text:"_MSG_FOERDERORGANISATION_CREATE_CONTACT_SUCCESS_"}),f({response:T})},T=>{A({error:T.data})}).finally(()=>r.value=!1)}}}const Ke={name:"OrganisationContactModalCreate",components:{AButton:se,ACloak:ge,PuxModal:q},props:{organisation:{type:Object,required:!0},selectorCloseIds:{type:[String,Array],required:!0}},emits:["close"],setup(e,o){const{communicationTypes:t,isCommunicationTypesLoading:a,loadCommunicationTypes:i,optionsModal:s}=He(),{model:n}=Ve(),{close:r,errors:l,errorsClone:c,loading:p,save:A}=ze(e,o,{communicationTypes:t,model:n});return i(),{close:r,errors:l,errorsClone:c,isCommunicationTypesLoading:a,loading:p,model:n,optionsModal:s,save:A}}};function qe(e,o,t,a,i,s){const n=d("a-cloak"),r=d("a-button"),l=d("pux-modal");return m(),b(l,{close:e.close,errors:e.errors,"errors-clone":e.errorsClone,loading:e.loading,model:e.model,options:e.optionsModal,"selector-close-ids":e.selectorCloseIds,header:"_TXT_FOERDERORGANISATION_CONTACT_CREATE_HEADER_"},{body:O(()=>[e.isCommunicationTypesLoading?(m(),b(n,{key:0})):$("",!0)]),footer:O(()=>[_(r,{class:"a_btn a_btn_primary test_contact_modal_save",id:"foerderorganisation_contact_create",text:"_BTN_SAVE_",disabled:e.loading,onClick:e.save},null,8,["disabled","onClick"])]),_:1},8,["close","errors","errors-clone","loading","model","options","selector-close-ids"])}const xe=S(Ke,[["render",qe],["__file","OrganisationContactModalCreate.vue"]]);function je({organisation:e=g({}),tableId:o=""}){const{changeConfirmOptions:t,closeConfirm:a,openConfirm:i}=te(),{deleteHttp:s}=L(),{addNotification:n}=h(),r=({row:c})=>(t({disabled:!0}),s({url:`foerderorganisationen/${e.value.pk}/ansprechpartner/${c.pk}/`}).then(()=>{n({text:"_MSG_FOERDERORGANISATION_CONTACT_DELETE_SUCCESS_"}),t({disabled:!1}),M.$emit(`updateTable${o}`),a()},()=>{n({text:"_MSG_FOERDERORGANISATION_CONTACT_DELETE_ERROR_",type:"error"})}));return{openConfirmDelete:({row:c,ids:p,rowIndex:A})=>{i({bodyHtml:"_TXT_FOERDERORGANISATION_CONTACTS_CONFIRM_DELETE_BODY_{{name}}_",selectorCloseIds:p,save:()=>r({row:c}),headerText:"_TXT_FOERDERORGANISATION_CONTACTS_CONFIRM_DELETE_HEADER_",extra:{name:c.fas_name},saveButtonText:"_BTN_DELETE_",saveButtonId:`#${o}_action_${A}`})}}}function Ye(e,{tableId:o}){const t=E(e,"organisation"),{hasPermissionOrganisationAndBasicDataUpdate:a}=k(),{openConfirmDelete:i}=je({organisation:t,tableId:o});return{rowActions:u(()=>[{to:{name:"root.foerderorganisationen.details.ansprechpartner",paramsDynamic:{ap_id:"pk",id:"foerderorganisation_id"}},text:"_LBL_FOERDERORGANISATION_CONTACTS_TABLE_ROW_ACTIONS_DETAILS_",type:"link"},{text:"_LBL_FOERDERORGANISATION_CONTACTS_TABLE_ROW_ACTIONS_DELETE_",callback:i,isHidden:!a.value,type:"button"}])}}function We({tableId:e=""}){const o="foerderorganisation_details_create_contact",{hasPermissionOrganisationAndBasicDataUpdate:t}=k(),{isModalVisible:a,openModal:i,closeModal:s}=ae({callbackAfter:()=>M.$emit(`updateTable${e}`)}),n=u(()=>[{text:"_LBL_FOERDERORGANISATION_CONTACTS_ACTIONS_CREATE_",callback:i,type:"button",class:"a_btn a_btn_primary",iconLeft:"plus",id:o,isHidden:!t.value}]);return{closeModalCreate:s,idForBtnCreate:o,isModalCreateContactVisible:a,tableActions:n}}const Ze={name:"OrganisationContacts",components:{ALink:oe,PuxModal:q,OrganisationContactModalCreate:xe,PuxTable:x},props:{organisation:{type:Object,required:!0}},setup(e){const o="ContactListInFoerderorganisation",t=E(e,"organisation"),{tableUrl:a}=j({tableId:o,params:{orgPk:t.value.pk}}),{rowActions:i}=Ye(e,{tableId:o}),{closeModalCreate:s,idForBtnCreate:n,isModalCreateContactVisible:r,tableActions:l}=We({tableId:o});return{closeModalCreate:s,idForBtnCreate:n,isModalCreateContactVisible:r,rowActions:i,tableActions:l,tableId:o,tableUrl:a}}},Je={class:"formstep_detail"};function Qe(e,o,t,a,i,s){const n=d("a-link"),r=d("pux-table"),l=d("organisation-contact-modal-create");return m(),U("div",Je,[_(r,{id:e.tableId,"has-config-from-api":!0,url:e.tableUrl,"row-actions":e.rowActions,"column-actions-view":"onePlusDropdown","table-actions":e.tableActions,"label-tag":"h4"},{name:O(({row:c})=>[_(n,{to:{name:"root.foerderorganisationen.details.ansprechpartner",params:{id:e.organisation.pk,ap_id:c.pk}},text:c.fas_name},null,8,["to","text"])]),_:1},8,["id","url","row-actions","table-actions"]),e.isModalCreateContactVisible?(m(),b(l,{key:0,organisation:e.organisation,"selector-close-ids":[e.idForBtnCreate,e.tableId],onClose:e.closeModalCreate},null,8,["organisation","selector-close-ids","onClose"])):$("",!0)])}const eo=S(Ze,[["render",Qe],["__file","OrganisationContacts.vue"]]);function oo({open:e=()=>{},save:o=()=>{}}){return{organisationDataOptions:u(()=>({label:"_TXT_FOERDERORGANISATION_DETAILS_BASISDATA_HEADER_",required:!0,openCallback:e,saveCallback:o,list:[{id:"o_name",htmlId:"foerderorganisation_details_name",type:"text",view:"v",label:"_TXT_FOERDERORGANISATION_DETAILS_BASISDATA_NAME_",maxlength:400,required:!0,editonly:!0},{id:"o_kbez",htmlId:"foerderorganisation_details_kbez",type:"text",view:"v",label:"_TXT_FOERDERORGANISATION_DETAILS_BASISDATA_KBEZ_",maxlength:400,required:!1,editonly:!0},{id:"o_strasse",htmlId:"foerderorganisation_details_street",type:"text",view:"v",label:"_TXT_FOERDERORGANISATION_DETAILS_BASISDATA_STREET_",maxlength:100,required:!1,editonly:!0},{id:"o_hsnr",htmlId:"foerderorganisation_details_num",type:"text",view:"v",label:"_TXT_FOERDERORGANISATION_DETAILS_BASISDATA_NUM_",maxlength:10,required:!1,editonly:!0},{id:"o_plz",htmlId:"foerderorganisation_details_zipcode",type:"text",view:"v",label:"_TXT_FOERDERORGANISATION_DETAILS_BASISDATA_ZIPCODE_",maxlength:10,required:!1,editonly:!0},{id:"o_ort",htmlId:"foerderorganisation_details_city",type:"text",view:"v",label:"_TXT_FOERDERORGANISATION_DETAILS_BASISDATA_CITY_",maxlength:100,required:!1,editonly:!0}]}))}}function to(e){const o=E(e,"organisation"),t=g({});return{organisationDataModel:t,setModel:()=>{t.value.o_name=o.value.o_name,t.value.o_kbez=o.value.o_kbez,t.value.o_ort=o.value.o_ort,t.value.o_plz=o.value.o_plz,t.value.o_
4strasse=o.value.o_strasse,t.value.o_hsnr=o.value.o_hsnr}}}function no(e,{emit:o}){const t=E(e,"organisation"),{patchHttp:a}=L(),{addNotification:i}=h();return{save:({model:n})=>a({url:`foerderorganisationen/${t.value.pk}/`,data:n}).then(r=>{o("onUpdate",{data:r}),i({text:"_MSG_ORGANISATION_DETAILS_SAVE_SUCCESS_"})})}}const ao={name:"OrganisationData",components:{ATranslation:w,FormstepDetail:V},props:{organisation:{type:Object,required:!0}},emits:["onUpdate"],setup(e,o){const{organisationDataModel:t,setModel:a}=to(e),{save:i}=no(e,o),{organisationDataOptions:s}=oo({open:a,save:i}),{hasPermissionOrganisationAndBasicDataUpdate:n}=k();return{hasPermissionOrganisationAndBasicDataUpdate:n,organisationDataModel:t,organisationDataOptions:s}}},io={class:"dl-horizontal"},ro={class:"box"};function so(e,o,t,a,i,s){const n=d("a-translation"),r=d("formstep-detail");return m(),b(r,{"html-id":"foerderorganisation_details_basic_data",editable:e.hasPermissionOrganisationAndBasicDataUpdate,options:e.organisationDataOptions,model:e.organisationDataModel},{readonly:O(()=>[R("dl",io,[_(n,{tag:"dt",text:"_TXT_FOERDERORGANISATION_DETAILS_BASISDATA_NAME_"}),R("dd",null,D(e.organisation.o_name),1),_(n,{tag:"dt",text:"_TXT_FOERDERORGANISATION_DETAILS_BASISDATA_KBEZ_"}),R("dd",null,D(e.organisation.o_kbez),1),_(n,{tag:"dt",text:"_TXT_FOERDERORGANISATION_DETAILS__BASISDATA_ADRESS_"}),R("dd",null,[R("div",ro,[R("span",null,D(e.organisation.o_strasse)+" "+D(e.organisation.o_hsnr),1),o[0]||(o[0]=R("br",null,null,-1)),R("span",null,D(e.organisation.o_plz)+" "+D(e.organisation.o_ort),1)])])])]),_:1},8,["editable","options","model"])}const lo=S(ao,[["render",so],["__file","OrganisationData.vue"]]);function _o({open:e=()=>{},save:o=()=>{}}){return{organisationDescriptionOptions:u(()=>({label:"_TXT_FOERDERORGANISATION_DETAILS_DESCRIPTION_HEADER_",openCallback:e,saveCallback:o,list:[{id:"o_beschreibung",htmlId:"foerderorganisation_details_org_description",type:"richtext",view:"v-alt",label:"_TXT_FOERDERORGANISATION_DETAILS_DESCRIPTION_",required:!1,editonly:!0},{id:"o_konzept_titel",htmlId:"foerderorganisation_details_concept_title",type:"text",maxlength:200,view:"v-alt",label:"_TXT_FOERDERORGANISATION_DETAILS_CONCEPT_TITLE_",required:!1,editonly:!0},{id:"o_konzept_kbez",htmlId:"foerderorganisation_details_org_concept_kbez",type:"richtext",view:"v-alt",label:"_TXT_FOERDERORGANISATION_DETAILS_CONCEPT_KBEZ_",required:!1,editonly:!0},{id:"o_konzept_bez",htmlId:"foerderorganisation_details_org_concept_description",type:"richtext",view:"v-alt",label:"_TXT_FOERDERORGANISATION_DETAILS_CONCEPT_DESCRIPTION_",required:!1,editonly:!0}]}))}}function co(e){const o=E(e,"organisation"),t=g({});return{organisationDescriptionModel:t,setModel:()=>{t.value.o_beschreibung=o.value.o_beschreibung,t.value.o_konzept_titel=o.value.o_konzept_titel,t.value.o_konzept_kbez=o.value.o_konzept_kbez,t.value.o_konzept_bez=o.value.o_konzept_bez}}}function uo(e,{emit:o}){const t=E(e,"organisation"),{patchHttp:a}=L(),{addNotification:i}=h();return{save:({model:n})=>a({url:`foerderorganisationen/${t.value.pk}/`,data:n}).then(r=>{o("onUpdate",{data:r}),i({text:"_MSG_ORGANISATION_DETAILS_SAVE_SUCCESS_"})})}}const po={name:"OrganisationDescription",components:{ATranslation:w,FormstepDetail:V},props:{organisation:{type:Object,required:!0}},emits:["onUpdate"],setup(e,o){const{filterDefaultForEmpty:t}=H(),{organisationDescriptionModel:a,setModel:i}=co(e),{save:s}=uo(e,o),{organisationDescriptionOptions:n}=_o({open:i,save:s}),{hasPermissionOrganisationUpdate:r}=k();return{filterDefaultForEmpty:t,hasPermissionOrganisationUpdate:r,organisationDescriptionModel:a,organisationDescriptionOptions:n}}},Eo={class:"dl-horizontal"};function go(e,o,t,a,i,s){const n=d("a-translation"),r=d("formstep-detail"),l=me("safe-html");return m(),b(r,{"html-id":"foerderorganisation_details_description",editable:e.hasPermissionOrganisationUpdate,model:e.organisationDescriptionModel,options:e.organisationDescriptionOptions},{readonly:O(()=>[R("dl",Eo,[_(n,{tag:"dt",text:"_TXT_FOERDERORGANISATION_DETAILS_DESCRIPTION_"}),J(R("dd",null,null,512),[[l,e.organisation.o_beschreibung]]),_(n,{tag:"dt",text:"_TXT_FOERDERORGANISATION_DETAILS_CONCEPT_TITLE_"}),R("dd",null,D(e.filterDefaultForEmpty(e.organisation.o_konzept_titel)),1),_(n,{tag:"dt",text:"_TXT_FOERDERORGANISATION_DETAILS_CONCEPT_KBEZ_"}),J(R("dd",null,null,512),[[l,e.organisation.o_konzept_kbez]]),_(n,{tag:"dt",text:"_TXT_FOERDERORGANISATION_DETAILS_CONCEPT_DESCRIPTION_"}),J(R("dd",null,null,512),[[l,e.organisation.o_konzept_bez]])])]),_:1},8,["editable","model","options"])}const Ao=S(po,[["render",go],["__file","OrganisationDescription.vue"]]);function Oo(e){const o=E(e,"isCreate"),t=E(e,"organisation"),a=E(e,"role"),i=u(()=>!o.value&&!ee(a.value.frf_gueltig_ab)&&B().isSameOrAfter(a.value.frf_gueltig_ab)),s=u(()=>!o.value&&!ee(a.value.frf_gueltig_bis)&&B().isSameOrAfter(a.value.frf_gueltig_bis)),n=u(()=>
4[{id:"rolle",type:"select",label:"_LBL_FOERDERORGROLLEN_FREIGABE_ROLLE_",helpText:"_TXT_FOERDERORGROLLEN_FREIGABE_ROLLE_HELP_TEXT_",required:!0,url:`foerderorganisationen/${t.value.pk}/rollenfreigaben/moegliche_rollen/`,apiSaveId:`rollenfreigaben__moegliche_rollen__${t.value.pk}`,showLabel:!0,search:!0,searchList:["fro_kbez"],selectAll:!0,deselectAll:!0,view:"v-alt",keyId:"pk",keyLabel:"fro_kbez",menuWidthAll:!0,translate:!0,disabled:!o.value},{id:"gueltigkeit",type:"daterange",label:"_LBL_FOERDERORGROLLEN_FREIGABE_GUELTIGKEIT_",helpText:"_TXT_FOERDERORGROLLEN_FREIGABE_GUELTIGKEIT_HELP_TEXT_",view:"v-alt",placeholderMin:"_LBL_DATERANGE_AB_HEUTE_",placeholderMax:"_LBL_DATERANGE_UNEINGESCHRAENKT_",disabledMin:i.value,disabledMax:s.value},{id:"frf_verwenden",type:"boolean",label:"_LBL_FOERDERORGROLLEN_FREIGABE_VERWENDEN_",helpText:"_TXT_FOERDERORGROLLEN_FREIGABE_VERWENDEN_HELP_TEXT_",required:!1,view:"v-alt"},{id:"frf_weiterreichen",type:"boolean",label:"_LBL_FOERDERORGROLLEN_FREIGABE_WEITERREICHEN_",helpText:"_TXT_FOERDERORGROLLEN_FREIGABE_WEITERREICHEN_HELP_TEXT_",required:!1,view:"v-alt"}]),r=u(()=>({showCloseButton:!0,required:!0,list:n.value}));return{isDisabledValidFrom:i,isDisabledValidTo:s,optionsModal:r}}function To(e){const o=E(e,"role"),t=E(e,"isCreate"),a=g({});return{initModel:()=>{t.value?(a.value.frf_verwenden=!0,a.value.frf_weiterreichen=!1):(a.value.rolle=o.value.rolle,a.value.frf_verwenden=o.value.frf_verwenden,a.value.frf_weiterreichen=o.value.frf_weiterreichen,a.value.gueltigkeit={gueltigkeit_after:o.value.frf_gueltig_ab,gueltigkeit_before:o.value.frf_gueltig_bis})},model:a}}function Ro(e){const o=E(e,"isCreate"),t=E(e,"organisation"),a=E(e,"role"),i=u(()=>o.value?"_HTML_FOERDERORGROLLEN_FREIGABE_MODAL_CREATE_HEADER_{{organisation}}_":"_HTML_FOERDERORGROLLEN_FREIGABE_MODAL_UPDATE_HEADER_{{organisation}}_{{rolle}}_");return{headerExtra:u(()=>{const n={organisation:t.value.o_name};return o.value||(n.rolle=a.value.rolle_bez||"_TXT_KEINE_ANGABE_"),n}),headerText:i}}function mo(e,{emit:o},{model:t=g({}),isDisabledValidFrom:a=g(!1),isDisabledValidTo:i=g(!1)}){const s=E(e,"isCreate"),n=E(e,"organisation"),r=E(e,"role"),l=g(void 0),c=g(void 0),p=g(!1),{addNotification:A}=h(),{postHttp:f,putHttp:v}=L(),T=({response:N}={})=>{o("close",{response:N})},y=u(()=>`foerderorganisationen/${n.value.pk}/rollenfreigaben/`),I=u(()=>s.value?f:v),z=u(()=>s.value?y.value:`${y.value}${r.value.pk}/`),Y=u(()=>s.value?"_MSG_FOERDERORGROLLEN_FREIGABE_MODAL_CREATE_SUCCESS_":"_MSG_FOERDERORGROLLEN_FREIGABE_MODAL_UPDATE_SUCCESS_"),W=()=>{A({text:Y.value})},Z=()=>{const N=Q(t.value);N.organisation=n.value.pk;const F=C(t.value,"gueltigkeit.gueltigkeit_after"),X=C(t.value,"frf_gueltig_ab"),P=B().isSame(F,"day"),ie=!B().isSame(X,"day");!ee(F)&&P&&!a.value&&(s.value||ie)?N.frf_gueltig_ab=null:N.frf_gueltig_ab=F;const re=C(t.value,"gueltigkeit.gueltigkeit_before");return re&&!i.value&&(N.frf_gueltig_bis=B(re).endOf("day").format()),Ae(N,["gueltigkeit"])},le=({error:N})=>{const F={};ne(N,(X,P)=>{Oe(X)||(P==="frf_gueltig_ab"||P==="frf_gueltig_bis"?Te(F,`gueltigkeit.${P}`,X):F[P]=X)}),l.value=F,c.value=Q(F)};return{close:T,errors:l,errorsClone:c,loading:p,save:()=>{p.value=!0,I.value({url:z.value,data:Z()}).then(N=>{W(),T({response:N})},N=>{le({error:N.data})}).finally(()=>p.value=!1)}}}const fo={name:"RoleApprovalModalCreateOrUpdate",components:{AButton:se,PuxModal:q},props:{role:{type:Object,required:!1,default:void 0},organisation:{type:Object,required:!0},isCreate:{type:Boolean,required:!0},selectorCloseIds:{type:[String,Array],required:!1,default:void 0}},emits:["close"],setup(e,o){const{headerExtra:t,headerText:a}=Ro(e),{initModel:i,model:s}=To(e),{isDisabledValidFrom:n,isDisabledValidTo:r,optionsModal:l}=Oo(e),{close:c,errors:p,errorsClone:A,loading:f,save:v}=mo(e,o,{model:s,isDisabledValidFrom:n,isDisabledValidTo:r});return i(),{close:c,errors:p,errorsClone:A,headerExtra:t,headerText:a,loading:f,model:s,optionsModal:l,save:v}}};function Io(e,o,t,a,i,s){const n=d("a-button"),r=d("pux-modal");return m(),b(r,{options:e.optionsModal,model:e.model,"selector-close-ids":e.selectorCloseIds,close:e.close,errors:e.errors,"errors-clone":e.errorsClone,loading:e.loading,header:e.headerText,extra:e.headerExtra},{footer:O(()=>[_(n,{class:"a_btn a_btn_primary test_modal_create_or_update",id:"foerderorganisation_role_approval_create_or_update",disabled:e.loading,text:"_BTN_SAVE_",onClick:e.save},null,8,["disabled","onClick"])]),_:1},8,["options","model","selector-close-ids","close","errors","errors-clone","loading","header","extra"])}const bo=S(fo,[["render",Io],["__file","RoleApprovalModalCreateOrUpdate.vue"]]),Do={name:"StatusIcon",components:{PuxIcon:_e},props:{value:{type:Boolean,required:!1,default:!1}}};function vo(e,o,t,a,i,s){const n=d("pux-icon");return e.value?(m(),b(n,{key:0,icon:"ok","icon-class":"text-success","icon-tooltip":"_TXT_JA_","icon-aria-label":"_TXT_JA_"})):(m(),b(n,{key:1,icon:"close","icon-class":"text-danger","icon-tooltip":"_TXT_NEIN_","icon-aria-label":"_TXT_NEIN_"}))}const No=S(Do,[["render",vo],["__file","StatusIcon.vue"]]);function So(){const{filterDate:e}=H();
4return{columns:[{label:"_LBL_FOERDERORGROLLEN_FREIGABE_GUELTIG_AB_",id:"frf_gueltig_ab",sortId:"frf_gueltig_ab",filter:"date",titleCallback:({row:t})=>e(t.frf_gueltig_ab,{format:"DD.MM.YY HH:mm [Uhr]"}),priority:30},{label:"_LBL_FOERDERORGROLLEN_FREIGABE_GUELTIG_BIS_",id:"frf_gueltig_bis",sortId:"frf_gueltig_bis",sortable:!0,filter:"date",titleCallback:({row:t})=>e(t.frf_gueltig_bis,{format:"DD.MM.YY HH:mm [Uhr]"}),priority:40}]}}function Lo({organisation:e=g({}),tableId:o=""}){const{changeConfirmOptions:t,closeConfirm:a,openConfirm:i}=te(),{postHttp:s}=L(),{addNotification:n}=h(),{hasPermissionCallback:r}=G({permission:"foerderorgrollen.freigabe.delete"}),l=({row:p})=>(t({disabled:!0}),s({url:`foerderorganisationen/${e.value.pk}/rollenfreigaben/${p.pk}/deactivate/`}).then(()=>{n({text:"_MSG_FOERDERORGROLLEN_FREIGABE_DEACTIVATE_SUCCESS_"}),t({disabled:!1}),M.$emit(`updateTable${o}`),a()},()=>{n({text:"_ERR_FOERDERORGROLLEN_FREIGABE_DEACTIVATE_",type:"error"})}));return{hasPermissionDeactivateCallback:r,openConfirmDeactivate:({row:p,ids:A,rowIndex:f})=>{i({bodyHtml:"_HTML_FOERDERORGROLLEN_FREIGABE_MODAL_DEACTIVATE_BODY_{{organisation}}_{{rolle}}_",selectorCloseIds:A,save:()=>l({row:p}),headerText:"_HTML_FOERDERORGROLLEN_FREIGABE_MODAL_DEACTIVATE_HEADER_{{organisation}}_{{rolle}}_",extra:{organisation:e.value.o_name,rolle:p.rolle_bez||"_TXT_KEINE_ANGABE_"},saveButtonText:"_BTN_DELETE_",saveButtonId:`#${o}_action_${f}`})}}}function Co({organisation:e=g({}),tableId:o=""}){const{changeConfirmOptions:t,closeConfirm:a,openConfirm:i}=te(),{deleteHttp:s}=L(),{addNotification:n}=h(),{hasPermissionCallback:r}=G({permission:"foerderorgrollen.freigabe.delete"}),l=({row:p})=>(t({disabled:!0}),s({url:`foerderorganisationen/${e.value.pk}/rollenfreigaben/${p.pk}/`}).then(()=>{n({text:"_MSG_FOERDERORGROLLEN_FREIGABE_DELETE_SUCCESS_"}),t({disabled:!1}),M.$emit(`updateTable${o}`),a()},()=>{n({text:"_ERR_FOERDERORGROLLEN_FREIGABE_DELETE_",type:"error"})}));return{hasPermissionDeleteCallback:r,openConfirmDelete:({row:p,ids:A,rowIndex:f})=>{i({bodyHtml:"_HTML_FOERDERORGROLLEN_FREIGABE_MODAL_DELETE_BODY_{{organisation}}_{{rolle}}_",selectorCloseIds:A,save:()=>l({row:p}),headerText:"_HTML_FOERDERORGROLLEN_FREIGABE_MODAL_DELETE_HEADER_{{organisation}}_{{rolle}}_",extra:{organisation:e.value.o_name,rolle:p.rolle_bez||"_TXT_KEINE_ANGABE_"},saveButtonText:"_BTN_DELETE_",saveButtonId:`#${o}_action_${f}`})}}}function ho(e,{tableId:o}){const t=E(e,"organisation"),a=g(void 0),i=g(void 0),{hasPermissionDeactivateCallback:s,openConfirmDeactivate:n}=Lo({organisation:t,tableId:o}),{hasPermissionDeleteCallback:r,openConfirmDelete:l}=Co({organisation:t,tableId:o}),c=({row:I})=>B().isSameOrAfter(I.frf_gueltig_bis,"second"),p=({row:I})=>B().isSameOrAfter(I.frf_gueltig_ab,"second"),{hasPermissionCallback:A,isModalVisible:f,openModal:v,closeModal:T}=ae({permission:"foerderorgrollen.freigabe.update",callbackAfter:()=>M.$emit(`updateTable${o}`),currentObject:a,selectorCloseIds:i});return{closeModalUpdate:T,currentRole:a,isModalEditRoleApprovalVisible:f,rowActions:[{text:"_BTN_EDIT_",isHiddenCallback:({row:I})=>c({row:I})||!A({row:I}),callback:v,type:"button"},{text:"_BTN_DEACTIVATE_",isHiddenCallback:({row:I})=>!I.is_active||!s({row:I}),callback:n,type:"button"},{text:"_BTN_DELETE_",isHiddenCallback:({row:I})=>p({row:I})||!r({row:I}),callback:l,type:"button"}],selectorCloseIds:i}}function ko(e,{tableId:o=""}){const t="foerderorganisation_details_create_role_approval",a=E(e,"organisation"),{hasWFPermissionOrganisationRoleApprovalCreate:i}=k({organisation:a}),{isModalVisible:s,openModal:n,closeModal:r}=ae({callbackAfter:()=>M.$emit(`updateTable${o}`)}),l=[{text:"_BTN_FOERDERORGROLLEN_FREIGABE_CREATE_",callback:n,type:"button",class:"a_btn a_btn_primary",iconLeft:"plus",id:t,isHidden:!i.value}];return{closeModalCreate:r,idForBtnCreate:t,isModalCreateRoleApprovalVisible:s,tableActions:l}}const yo={name:"OrganisationRoleApprovalList",components:{PuxModal:q,PuxTable:x,RoleApprovalModalCreateOrUpdate:bo,StatusIcon:No},props:{organisation:{type:Object,required:!0}},setup(e){const o="rollenfreigabeListInFoerderorg",t=E(e,"organisation"),{tableUrl:a}=j({tableId:o,params:{pk:t.value.pk}}),{columns:i}=So(),{closeModalUpdate:s,currentRole:n,isModalEditRoleApprovalVisible:r,rowActions:l,selectorCloseIds:c}=ho(e,{tableId:o}),{closeModalCreate:p,idForBtnCreate:A,isModalCreateRoleApprovalVisible:f,tableActions:v}=ko(e,{tableId:o});return{closeModalCreate:p,closeModalUpdate:s,columns:i,currentRole:n,idForBtnCreate:A,isModalCreateRoleApprovalVisible:f,isModalEditRoleApprovalVisible:r,rowActions:l,selectorCloseIds:c,tableActions:v,tableId:o,tableUrl:a}}},Fo={class:"formstep_detail"};function Go(e,o,t,a,i,s){const n=d("status-icon"),r=d("pux-table"),l=d("role-approval-modal-create-or-update");return m(),U("div",Fo,[_(r,{id:e.tableId,"has-config-from-api":!0,columns:e.columns,url:e.tableUrl,"row-actions":e.rowActions,"column-actions-view":"onePlusDropdown","table-actions":e.tableActions,"label-tag":"h4"},{aktiv:O(({row:c})=>[_(n,{value:c.is_active},null,8,["value"])]),_:1},8,["id","columns","url","row-actions","table-actions"]),e.isModalCreateRoleApprovalVisible?(m(),b(l,{key:0,"is-create":!0,organisation:e.organisation,"selector-close-ids":[e.idForBtnCreate,e.tableId],onClose:e.closeModalCreate},null,8,["organisation","selector-close-ids","onClose"])):$("",!0),e.isModalEditRoleApprovalVisible?(m(),b(l,{key:1,"is-create":!1,organisation:e.organisation,role:e.currentRole,"selector-close-ids":e.selectorCloseIds,onClose:e.closeModalUpdate},null,8,["organisation","role","selector-close-ids","onClose"])):$("",!0)])}const Bo=S(yo,[["render",Go],["__file","OrganisationRoleApprovalList.vue"]]);function $o(){return{rowActions:[{to:{name:"root.foerderorganisationen.details",paramsDynamic:{id:"pk"}}
4,text:"_LBL_FOERDERORGANISATION_SUBORGANISATIONS_TABLE_ROW_ACTIONS_DETAILS_",type:"link"}]}}const Po={name:"OrganisationSuborganisations",components:{ALink:oe,PuxTable:x},props:{organisation:{type:Object,required:!0}},setup(e){const o="SuborganisationListInFoerderorganisation",t=E(e,"organisation"),{tableUrl:a}=j({tableId:o,params:{orgPk:t.value.pk}}),{rowActions:i}=$o();return{rowActions:i,tableId:o,tableUrl:a}}},Mo={class:"formstep_detail"};function Uo(e,o,t,a,i,s){const n=d("a-link"),r=d("pux-table");return m(),U("div",Mo,[_(r,{id:e.tableId,"has-config-from-api":!0,url:e.tableUrl,"row-actions":e.rowActions,"column-actions-view":"onePlusDropdown","is-label-visible":!1},{name:O(({row:l})=>[_(n,{to:{name:"root.foerderorganisationen.details",params:{id:l.pk}},text:l.o_name},null,8,["to","text"])]),_:1},8,["id","url","row-actions"])])}const Xo=S(Po,[["render",Uo],["__file","OrganisationSuborganisations.vue"]]),wo={name:"OrganisationUsers",components:{PuxTable:x},props:{organisation:{type:Object,required:!0}},setup(e){const o="UserListInFoerderorganisation",t=E(e,"organisation"),{tableUrl:a}=j({tableId:o,params:{orgPk:t.value.pk}});return{tableId:o,tableUrl:a}}},Ho={class:"formstep_detail"};function Vo(e,o,t,a,i,s){const n=d("pux-table");return m(),U("div",Ho,[_(n,{id:e.tableId,"has-config-from-api":!0,url:e.tableUrl,"is-label-visible":!1},null,8,["id","url"])])}const zo=S(wo,[["render",Vo],["__file","OrganisationUsers.vue"]]);function Ko({open:e=()=>{},save:o=()=>{}}){return{organisationVisibilityOptions:u(()=>({label:"_TXT_FOERDERORGANISATION_DETAILS_VISIBILITY_HEADER_",saveCallback:o,openCallback:e,list:[{id:"o_oeffentlich",htmlId:"foerderorganisation_details_publicly_visible",label:"_TXT_FOERDERORGANISATION_DETAILS_PUBLICLY_VISIBLE_",type:"radio",view:"v-alt",required:!1,editonly:!0,data:[{label:"_TXT_YES_",value:!0},{label:"_TXT_NO_",value:!1}]},{id:"o_antragsannahme",htmlId:"foerderorganisation_details_accepts_applications",label:"_TXT_FOERDERORGANISATION_DETAILS_ORG_ACCEPTS_APPLICATION_",type:"radio",view:"v-alt",required:!1,editonly:!0,data:[{label:"_TXT_YES_",value:!0},{label:"_TXT_NO_",value:!1}]}]}))}}function qo(e){const o=E(e,"organisation"),t=g({});return{organisationVisibilityModel:t,setModel:()=>{t.value.o_oeffentlich=o.value.o_oeffentlich,t.value.o_antragsannahme=o.value.o_antragsannahme}}}function xo(e,{emit:o}){const t=E(e,"organisation"),{patchHttp:a}=L(),{addNotification:i}=h();return{save:({model:n})=>a({url:`foerderorganisationen/${t.value.pk}/`,data:n}).then(r=>{o("onUpdate",{data:r}),i({text:"_MSG_ORGANISATION_DETAILS_SAVE_SUCCESS_"})})}}const jo={name:"OrganisationVisibility",components:{ATranslation:w,FormstepDetail:V},props:{organisation:{type:Object,required:!0}},emits:["onUpdate"],setup(e,o){const{filterBoolean:t}=H(),{organisationVisibilityModel:a,setModel:i}=qo(e),{save:s}=xo(e,o),{organisationVisibilityOptions:n}=Ko({open:i,save:s}),{hasPermissionOrganisationUpdate:r}=k();return{filterBoolean:t,hasPermissionOrganisationUpdate:r,organisationVisibilityModel:a,organisationVisibilityOptions:n}}},Yo={class:"dl-horizontal"};function Wo(e,o,t,a,i,s){const n=d("a-translation"),r=d("formstep-detail");return m(),b(r,{"html-id":"foerderorganisation_details_visibility",editable:e.hasPermissionOrganisationUpdate,model:e.organisationVisibilityModel,options:e.organisationVisibilityOptions},{readonly:O(()=>[R("dl",Yo,[_(n,{tag:"dt",text:"_TXT_FOERDERORGANISATION_DETAILS_PUBLIC_"}),R("dd",null,D(e.filterBoolean(e.organisation.o_oeffentlich)),1),_(n,{tag:"dt",text:"_TXT_FOERDERORGANISATION_DETAILS_ACCEPTS_APPLICATION_"}),R("dd",null,D(e.filterBoolean(e.organisation.o_antragsannahme)),1)])]),_:1},8,["editable","model","options"])}const Zo=S(jo,[["render",Wo],["__file","OrganisationVisibility.vue"]]);function Jo(){const e=fe(),{client:o}=De(),t=g({}),a=g(!1),i=u(()=>C(t.value,"typ.ot_kbez","")),s=u(()=>C(t.value,"o_name","")),n=u(()=>C(t.value,"uebergeordnete_org.o_name","")),r=u(()=>({orgname:s.value})),l=u(()=>`foerderorganisationen/${e.params.id}`),c=u(()=>o==="proandi-eg"),p=u(()=>o==="proandi-eg"),{getHttp:A}=L();return{init:()=>{a.value=!0,A({url:`foerderorganisationen/${e.params.id}/`}).then(T=>{t.value=T,a.value=!1})},isContactsRubricVisible:c,isDescriptionRubricVisible:p,loading:a,organisation:t,organisationAnalysisURL:l,organisationName:s,organisationType:i,pageTitleExtra:r,parentOrganisationName:n,updateOrganisation:({data:T})=>{t.value=Object.assign({},t.value,T)}}}
4const Qo={name:"FoerderorganisationDetails",components:{AnalysenStatus:Ie(()=>ce(()=>import("./chunk.AnalysenStatus.CZ02h33X.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]))),AsideRightBox:ue,ContextPanel:pe,FoerderorganisationKontaktBox:Ee,OrganisationAffiliation:ye,OrganisationBudget:we,OrganisationContacts:eo,OrganisationData:lo,OrganisationDescription:Ao,OrganisationRoleApprovalList:Bo,OrganisationSuborganisations:Xo,OrganisationUsers:zo,OrganisationVisibility:Zo,PuxPermission:de,PuxPageDetails:be},setup(){const{init:e,isContactsRubricVisible:o,isDescriptionRubricVisible:t,loading:a,organisation:i,organisationAnalysisURL:s,organisationName:n,organisationType:r,pageTitleExtra:l,updateOrganisation:c}=Jo(),{organisationUserPermissions:p}=k({organisation:i});return e(),{isContactsRubricVisible:o,isDescriptionRubricVisible:t,loading:a,organisation:i,organisationAnalysisURL:s,organisationName:n,organisationType:r,organisationUserPermissions:p,pageTitleExtra:l,updateOrganisation:c}}};function et(e,o,t,a,i,s){const n=d("analysen-status"),r=d("pux-permission"),l=d("organisation-data"),c=d("organisation-visibility"),p=d("organisation-affiliation"),A=d("context-panel"),f=d("organisation-description"),v=d("organisation-contacts"),T=d("organisation-suborganisations"),y=d("organisation-users"),I=d("organisation-role-approval-list"),z=d("organisation-budget"),Y=d("foerderorganisation-kontakt-box"),W=d("aside-right-box"),Z=d("pux-page-details");return m(),b(Z,{"link-back":"root.foerderorganisationen","link-back-text":"_LBL_FOERDERORGANISATION_DETAILS_LINK_BACK_",loading:e.loading,"loading-msg":"_LBL_FOERDERORGANISATION_DETAILS_LOADING_","page-title-extra":e.pageTitleExtra,"page-title-placeholder":"_PAGE_TITLE_FOERDERORGANISATION_DETAILS_{{orgname}}_","has-slot-right":!0},{h1:O(()=>[R("span",null,D(e.organisationType),1)]),h2:O(()=>[R("span",null,D(e.organisationName),1)]),actions:O(()=>[_(r,{permission:"analyse.run"},{default:O(()=>[_(n,{"obj-url":e.organisationAnalysisURL,label:"_LBL_FOERDERORGANISATION_DETAILS_ANALYSEN_",title:"_LBL_FOERDERORGANISATION_DETAILS_ANALYSEN_TITLE_"},null,8,["obj-url"])]),_:1})]),body:O(()=>[R("div",null,[_(A,{id:"organisation_data",icon:"amphitheater","is-active":!0,label:"_TXT_FOERDERORGANISATION_DETAILS_CONTEXT_PANEL_DATA_"},{body:O(()=>[_(l,{organisation:e.organisation,onOnUpdate:e.updateOrganisation},null,8,["organisation","onOnUpdate"]),_(c,{organisation:e.organisation,onOnUpdate:e.updateOrganisation},null,8,["organisation","onOnUpdate"]),_(p,{organisation:e.organisation,onOnUpdate:e.updateOrganisation},null,8,["organisation","onOnUpdate"])]),_:1}),e.isDescriptionRubricVisible?(m(),b(A,{key:0,id:"descriptions",icon:"comment-text",label:"_TXT_FOERDERORGANISATION_DETAILS_CONTEXT_PANEL_DESCRIPTION_"},{body:O(()=>[_(f,{organisation:e.organisation,onOnUpdate:e.updateOrganisation},null,8,["organisation","onOnUpdate"])]),_:1})):$("",!0),e.isContactsRubricVisible?(m(),b(A,{key:1,id:"contacts",icon:"people",label:"_TXT_FOERDERORGANISATION_DETAILS_CONTEXT_PANEL_CONTACTS_"},{body:O(()=>[_(v,{organisation:e.organisation},null,8,["organisation"])]),_:1})):$("",!0),_(r,{permission:"foerderorgnutzer.view"},{default:O(()=>[_(A,{id:"suborganisations",icon:"amphitheater",label:"_TXT_FOERDERORGANISATION_DETAILS_CONTEXT_PANEL_SUBORGANISATIONS_"},{body:O(()=>[_(T,{organisation:e.organisation},null,8,["organisation"])]),_:1})]),_:1}),_(r,{permission:"foerderorgnutzer.view"},{default:O(()=>[_(A,{id:"users",icon:"user",label:"_TXT_FOERDERORGANISATION_DETAILS_CONTEXT_PANEL_USERS_"},{body:O(()=>[_(y,{organisation:e.organisation},null,8,["organisation"])]),_:1})]),_:1}),_(r,{permission:"foerderorgrollen.freigabe.view",src:e.organisationUserPermissions},{default:O(()=>[_(A,{id:"role_approvals",icon:"user",label:"_TXT_FOERDERORGANISATION_DETAILS_CONTEXT_PANEL_ROLE_APPROVALS_"},{body:O(()=>[_(I,{organisation:e.organisation},null,8,["organisation"])]),_:1})]),_:1},8,["src"]),_(r,{permission:"foerderorg.budgetkonto.view",src:e.organisationUserPermissions},{default:O(()=>[_(A,{id:"budget",icon:"pencil",label:"_TXT_FOERDERORGANISATION_DETAILS_CONTEXT_PANEL_BUDGET_"},{body:O(()=>[_(z,{organisation:e.organisation},null,8,["organisation"])]),_:1})]),_:1},8,["src"])])]),right:O(()=>[_(W,{id:"foerderorganisation_details_aside_contact_box",options:{toggle:!1}},{default:O(()=>[_(Y,{"kontakt-label":"_TXT_FOERDERORGANISATION_DETAILS_CONTACT_BOX_HEADER_",organisation:e.organisation},null,8,["organisation"])]),_:1})]),_:1},8,["loading","page-title-extra"])}const ht=S(Qo,[["render",et],["__file","FoerderorganisationDetail
4s.vue"]]);export{ht as default};
5//# sourceMappingURL=chunk.FoerderorganisationDetails.DPqcdFf6.js.map
6
7//# debugId=dd4c9df4-503a-5dfe-99ee-5d52005cf476

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.