1var ArticleRecord=class extends iActionRecordNew{constructor(table,options){super(table,Object.assign({Reload:true,Buttons:["Hide","Save2","SaveNoClose","Preview","Cancel"],ButtonPreview:{Text:"PodglÄ
d",Action:"buttonPreview",Enabled:function(form,window){return!window.RecordIsNew}},ButtonSave2:{Text:"Zapisz i zamknij",Action:"buttonSave"},ButtonSaveNoClose:{Text:"Zapisz",Action:"buttonSaveNoClose"},ButtonCancel:{}},options));this.CloseOnSave=true}buttonSave(){super.buttonSave()}async buttonSaveNoClose(){if(await this.formFailureIs())return;this.CloseOnSave=false;this.Values=Object.assign({},this.Form.Values);this.valuesSave({Reload:true})}async buttonPreview(){if(await this.formFailureIs())return;this.Values=Object.assign({},this.Form.Values);this.PreviewOpen=true;this.valuesSave({Reload:true})}previewOpen(windowed){if(windowed){var wnd=new iWindow2({FormUrl:{SystemPage:"RecordPreview",Windowed:windowed,Table:this.Table,Rid:this.Rid},Responsive:true,ResponsiveSize:"Full",Movable:false,Resizable:true,Buttons:["Hide","Mobile","Tablet","Desktop"],ButtonMobile:{Text:"Telefon",Icon:"mobile",Class:"B BfloatC BiLeft BSizeM BiRem Fa-Mobile",Action:function(button,event){var frame=wnd.TagForm.getElement("#js_RecordPreview");frame.setStyles({transition:"width 0.3s ease 0s","margin-left":(parseInt(wnd.TagForm.getStyle("width"))-364)/2,width:"364px"})}.bind(wnd)},ButtonTablet:{Text:"Tablet",Icon:"tablet",Class:"B BfloatC BiLeft BSizeM BiRem Fa-Tablet",Action:function(button,event){var frame=wnd.TagForm.getElement("#js_RecordPreview");frame.setStyles({transition:"width 0.3s ease 0s","margin-left":(parseInt(wnd.TagForm.getStyle("width"))-768)/2,width:"768px"})}.bind(wnd)},ButtonDesktop:{Text:"Desktop",Icon:"desktop",Class:"B BfloatC BiLeft BSizeM BiRem Fa-Desktop",Action:function(button,event){var frame=wnd.TagForm.getElement("#js_RecordPreview");frame.setStyles({transition:"width 0.3s ease 0s","margin-left":"0",width:"100%"})}.bind(wnd)},onComplete:function(){this.lockedSet(false)}.bind(this),onFailure:function(){this.lockedSet(false)}.bind(this)})}else{this.Loader=new iRequest({SystemPage:"RecordPreview",Values:{Windowed:windowed,Table:this.Table,Rid:this.Rid}},{onSuccess:function(result){delete this.Loader;var url=result&&result.Url;if(url)window.open(url,"_blank")}.bind(this),onFailure:function(){delete this.Loader}.bind(this)})}}valuesSaveData(options){var data={SystemBox:this.RecordIsNew?"RecordNew":"RecordEdit",Table:this.Table,Rid:this.Rid,Step:"Save",Reload:options&&options.Reload,Values:this.Form.Values};if(options&&options.SaveDraft)data._Draft="1";if(options&&options.SaveDraftRelay)data._DraftRelay="1";return data}valuesSaveComplete(){this.CloseAllow=true;this.fireEvent("complete",[this.Values,this]);if(!this.CloseAllow)return;if(!this.CloseOnSave||this.PreviewOpen){this.CloseOnSave=true;if(this.PreviewOpen)this.previewOpen(true);this.PreviewOpen=false;this.lockedSet(false);this.Form.enabledSet(true);return}this.visibleSet(false)}};if(iMeioMasks)iMeioMasks.Rewrite=["regexp",{regex:/^([0-9a-z\-]{0,255})?$/}];
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.