1"use strict";(self.webpackChunkyumapos_web_client_mobile=self.webpackChunkyumapos_web_client_mobile||[]).push([[1495],{21495(h,c,e){e.r(c),e.d(c,{DialogCartItemNotesEditorComponent:()=>L});var p=e(37403),n=e(85802),_=e(89417),d=e(34006),r=e(26920),M=e(40100),a=e(68018),l=e(41940),g=e(44023),D=e(85988),m=e(30995),t=e(35547);function C(o,f){1&o&&(t.j41(0,"yp-dialog-header"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&o&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"CART.ITEM.NOTE.DIALOG.TITLE")," "))}function I(o,f){if(1&o){const E=t.RV6();t.j41(0,"div",5)(1,"button",6),t.bIt("click",function(){n.eBV(E);const i=t.XpG();return n.Njj(i.closeModal())}),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"button",7),t.bIt("click",function(){n.eBV(E);const i=t.XpG();return n.Njj(i.saveNotes())}),t.EFF(5),t.nI1(6,"translate"),t.k0s()()}2&o&&(t.R7$(2),t.SpI(" ",t.bMT(3,2,"COMMON.CANCEL")," "),t.R7$(3),t.SpI(" ",t.bMT(6,4,"COMMON.OK")," "))}let L=(()=>{class o{constructor(){this.enterNoteDialogData=(0,n.WQX)(d.Vh),this.note="",this.matDialogRef=(0,n.WQX)(d.CP),this.note=this.enterNoteDialogData.note??""}saveNotes(){this.matDialogRef.close({note:this.note.trim()})}closeModal(){this.matDialogRef.close()}static{this.\u0275fac=function(s){return new(s||o)}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["yp-dialog-cart-item-notes-editor"]],decls:9,vars:9,consts:[[4,"ypProjectedHeader"],[1,"p-3"],[1,"w-100","mat-input-no-underline",3,"appearance","subscriptSizing"],["rows","6","matInput","","cdkFocusInitial","",1,"p-0","m-0","overflow-hidden",3,"ngModelChange","keydown.control.enter","cdkTextareaAutosize","ngModel","ypTrimInputValue","ypLengthLimit"],["class","yp-bottom-buttons-wrapper",4,"ypProjectedFooter"],[1,"yp-bottom-buttons-wrapper"],["type","button",1,"yp-btn","yp-btn-lg","yp-btn-secondary",3,"click"],["type","button",1,"yp-btn","yp-btn-lg","yp-btn-primary",3,"click"]],template:function(s,i){1&s&&(t.j41(0,"yp-fixed-header-footer"),t.DNE(1,C,3,3,"yp-dialog-header",0),t.j41(2,"div",1)(3,"mat-form-field",2)(4,"mat-label"),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.j41(7,"textarea",3),t.mxI("ngModelChange",function(u){return t.DH7(i.note,u)||(i.note=u),u}),t.bIt("keydown.control.enter",function(){return i.saveNotes()}),t.k0s()()(),t.DNE(8,I,7,6,"div",4),t.k0s()),2&s&&(t.R7$(3),t.Y8G("appearance","outline")("subscriptSizing","dynamic"),t.R7$(2),t.Lme("",t.bMT(6,7,"CART.ITEM.NOTE.DIALOG.LABEL_PREFIX")," ",i.enterNoteDialogData.menuItemName),t.R7$(2),t.Y8G("cdkTextareaAutosize",!0),t.R50("ngModel",i.note),t.Y8G("ypLengthLimit",1e3))},dependencies:[_.YN,_.me,_.BC,_.vS,r.rl,M.fg,r.nJ,p.xb,g.b,m.cU,D.B,l.v,m.xp,m.J0,a.D9],encapsulation:2,changeDetection:0})}}return o})()},41940(h,c,e){e.d(c,{v:()=>d});var p=e(17705),n=e(35547),_=e(85802);let d=(()=>{class r{constructor(){this.ypLengthLimit=p.hFB.required(),this.elementRef=(0,_.WQX)(n.aKT)}beforeinput(a){if(a instanceof InputEvent&&a.data){const l=Math.abs(this.elementRef.nativeElement.selectionStart-this.elementRef.nativeElement.selectionEnd);this.elementRef.nativeElement.value.length-l+a.data.length>this.ypLengthLimit()&&a.preventDefault()}}static{this.\u0275fac=function(l){return new(l||r)}}static{this.\u0275dir=n.FsC({type:r,selectors:[["textarea","ypLengthLimit",""],["input","ypLengthLimit",""]],hostBindings:function(l,g){1&l&&n.bIt("beforeinput",function(m){return g.beforeinput(m)})},inputs:{ypLengthLimit:[1,"ypLengthLimit"]}})}}return r})()}}]);
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.