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