"use strict";(self.webpackChunkwebpackcloud=self.webpackChunkwebpackcloud||[]).push([[727],{83317:(e,a,r)=>{r.r(a),r.d(a,{runEndPageScript:()=>s});r(69826),r(41539);var n=r(22398),t=r(66157),i=r(1703);function l(e,a){for(var r=0;r<a.length;r++){var n=a[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e){n.Z.afterCreateAllForms.isStopped?o.script(e):n.Z.afterCreateAllForms.subscribe((function(){return o.script(e)}))}var o=function(){function e(){!function(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}(this,e)}var a,r,s;return a=e,s=[{key:"script",value:function(a){var r=a.scope;e.handleParams(r),e.handleFiltros(r),$.applyDataMask(),(0,t.L9)(!0),e.handleFieldFocus(r),(0,t.T0)(r.DefinicaoObjetos.MultiColuna)}},{key:"handleParams",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.Params,r=e.Class;a&&(void 0===a.Class&&(a.Class=r),(0,i.Q1)(a))}},{key:"handleFiltros",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.Filtros;a&&(n.Z.FiltroModal=a,n.Z.SetarValoresInputs(afiltro))}},{key:"handleFieldFocus",value:function(e){var a=e.DefinicaoObjetos,r=a.WorkSpace,t=a.Detalhes,i=a.WizardContext;if(r||i){var l=null==t?void 0:t.find((function(e){return e.Ativo}));if(!l)return;var s=l.DefinicaoObjetos,o=s.Class,u=s.Alias,c=n.Z.byname(o,u);null==c||c.focusFirstField(),null==c||c.triggerExpressions()}else{var f,d;null===(f=n.Z.itens.firstUsable())||void 0===f||f.focusFirstField(),null===(d=n.Z.itens.firstUsable())||void 0===d||d.triggerExpressions()}}}],(r=null)&&l(a.prototype,r),s&&l(a,s),Object.defineProperty(a,"prototype",{writable:!1}),e}()}}]);