"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[85788],{85788:(e,n,o)=>{o.r(n),o.d(n,{AddonModDataFieldPluginComponent:()=>f});var d=o(10467),t=o(54438),a=o(68162),i=o(82622),r=o(95209),l=o(86654),s=o(91416),u=o(64422);let f=(()=>{var e;class AddonModDataFieldPluginComponent{constructor(){this.recordHasOffline=!1,this.gotoEntry=new t.bkB,this.onFieldInit=new t.bkB,this.fieldLoaded=!1}ngOnInit(){var e=this;return(0,d.A)((function*(){if(!e.field)return e.fieldLoaded=!0,void 0;try{e.fieldComponent=yield i.R.getComponentForField(e.field),e.fieldComponent&&(e.pluginData={mode:e.mode,field:e.field,value:e.value,database:e.database,error:e.error,form:e.form,searchFields:e.searchFields,recordHasOffline:e.recordHasOffline,gotoEntry:e.gotoEntry,onFieldInit:e.onFieldInit})}finally{e.fieldLoaded=!0}}))()}ngOnChanges(e){this.fieldLoaded&&this.pluginData&&(this.mode==r.KP.EDIT&&e.error&&(this.pluginData.error=e.error.currentValue),this.mode!=r.KP.SHOW&&this.mode!=r.KP.LIST||!e.value||(this.pluginData.value=e.value.currentValue))}}return(e=AddonModDataFieldPluginComponent).ɵfac=function AddonModDataFieldPluginComponent_Factory(n){return new(n||e)},e.ɵcmp=t.VBU({type:e,selectors:[["addon-mod-data-field-plugin"]],viewQuery:function AddonModDataFieldPluginComponent_Query(e,n){if(1&e&&t.GBs(a.m,5),2&e){let e;t.mGM(e=t.lsd())&&(n.dynamicComponent=e.first)}},inputs:{mode:"mode",field:"field",value:"value",database:"database",error:"error",form:"form",searchFields:"searchFields",recordHasOffline:[t.Mj6.HasDecoratorInputTransform,"recordHasOffline","recordHasOffline",s.G]},outputs:{gotoEntry:"gotoEntry",onFieldInit:"onFieldInit"},standalone:!0,features:[t.GFd,t.OA$,t.aNF],decls:2,vars:4,consts:[[3,"component","data"],[3,"hideUntil","fullscreen"]],template:function AddonModDataFieldPluginComponent_Template(e,n){1&e&&(t.j41(0,"core-dynamic-component",0),t.nrm(1,"core-loading",1),t.k0s()),2&e&&(t.Y8G("component",n.fieldComponent)("data",n.pluginData),t.R7$(),t.Y8G("hideUntil",n.fieldLoaded)("fullscreen",!1))},dependencies:[l.n,a.m,u.R],encapsulation:2}),AddonModDataFieldPluginComponent})()}}]);