PageSourceSearch

https://yaposhka-kurgan.ru/6076.d993fa68c2713f25.js

js yaposhka-kurgan.ru collected 2026-10-07 14:05:15 UTC 10,302 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkyumapos_web_client_mobile=self.webpackChunkyumapos_web_client_mobile||[]).push([[6076],{66076(g,d,s){s.d(d,{G:()=>B});var m=s(17705),t=s(35547),l=s(85802),_=s(89079),r=s(89417),E=s(86146),a=s(26920),c=s(99213),C=s(40100),T=s(68018),h=s(23294),P=s(64954),f=s(13810),O=s(49655),M=s(41940),I=s(2552),y=s(7843);const R=["inputCustomTips"];function D(o,u){if(1&o&&(t.j41(0,"div"),t.EFF(1),t.nI1(2,"ypCurrency"),t.k0s(),t.j41(3,"div",6),t.EFF(4),t.k0s()),2&o){const n=t.XpG().$implicit;t.R7$(),t.SpI(" ",t.bMT(2,2,n.valueInCents)," "),t.R7$(3),t.SpI(" ",n.percent,"% ")}}function F(o,u){if(1&o&&(t.j41(0,"div",8),t.EFF(1),t.nI1(2,"ypCurrency"),t.k0s()),2&o){const n=t.XpG(2).$implicit;t.R7$(),t.SpI(" ",t.bMT(2,1,n.valueInCents)," ")}}function L(o,u){if(1&o&&(t.j41(0,"div",7),t.nVh(1,F,3,3,"div",8),t.nrm(2,"mat-icon",9),t.k0s(),t.j41(3,"div",6),t.EFF(4),t.nI1(5,"translate"),t.k0s()),2&o){const n=t.XpG().$implicit,e=t.XpG();t.R7$(),t.vxM(n.valueInCents?1:-1),t.R7$(),t.Y8G("svgIcon",e.SvgIcon.edit),t.R7$(2),t.SpI(" ",t.bMT(5,3,"CHECKOUT.TIPS.CUSTOM.OPTION")," ")}}function b(o,u){if(1&o){const n=t.RV6();t.j41(0,"div",3),t.nrm(1,"input",4),t.j41(2,"label",5),t.bIt("click",function(){const i=l.eBV(n).$implicit,p=t.XpG();return l.Njj(p.tipsOptionClick(i))}),t.nVh(3,D,5,4)(4,L,6,5),t.k0s()()}if(2&o){const n=u.$implicit,e=u.$index,i=t.XpG();t.R7$(),t.Y8G("id","radio-tip-option-"+e)("formControl",i.tipsForm.controls.tips)("value",n),t.R7$(),t.Y8G("for","radio-tip-option-"+e),t.R7$(),t.vxM(void 0!==n.percent?3:4)}}function V(o,u){1&o&&(t.j41(0,"mat-error"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&o&&(t.R
17$(),t.JRh(t.bMT(2,1,"CHECKOUT.TIPS.CUSTOM.ERROR.APPLY")))}function x(o,u){if(1&o){const n=t.RV6();t.j41(0,"div"),t.vzT("yp-animation-expansion-body-container-leave"),t.QR4("yp-animation-expansion-body-container-enter"),t.j41(1,"div",10)(2,"mat-form-field",11)(3,"mat-label"),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"input",12,0),t.bIt("keyup.enter",function(){l.eBV(n);const i=t.XpG();return l.Njj(i.applyCustomTips())})("blur",function(){l.eBV(n);const i=t.XpG();return l.Njj(i.customTipsInputBlur())}),t.k0s(),t.j41(8,"button",13),t.bIt("click",function(){l.eBV(n);const i=t.XpG();return l.Njj(i.applyCustomTips())}),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.nVh(11,V,3,3,"mat-error"),t.k0s()()()}if(2&o){const n=t.XpG();t.R7$(2),t.Y8G("appearance","outline")("subscriptSizing","dynamic"),t.R7$(2),t.JRh(t.bMT(5,7,"CHECKOUT.TIPS.CUSTOM.LABEL")),t.R7$(2),t.Y8G("ypLengthLimit",12)("formControl",n.tipsForm.controls.customTips),t.R7$(3),t.SpI(" ",t.bMT(10,9,"COMMON.APPLY")," "),t.R7$(2),t.vxM(n.tipsForm.controls.customTips.hasError("applyCustomTips")?11:-1)}}const v=o=>u=>(u.value?(0,O._P)(u.value):null)!==o?{applyCustomTips:!0}:null;let B=(()=>{class o{constructor(){this.inputCustomTips=(0,m.ebz)("inputCustomTips",{read:t.aKT}),this.changeDetectorRef=(0,l.WQX)(m.gRc),this.SvgIcon=P.h,this.tipsForm=new r.gE({tips:new r.MJ(null),customTips:new r.MJ(null,v(null))}),this.tipOptions=[],this.showCustomTipsEditor=!1,this.autofocusCustomTips=!1,this.tipsForm.controls.tips.valueChanges.pipe((0,_.pQ)()).subscribe(n=>{this.showCustomTipsEditor=null!==n&&void 0===n.percent,this.userSelectedPercent=n?.percent,this.formControlOnChange&&this.formControlOnChange(n?.valueInCents??null),this.formControlOnTouched&&this.formControlOnTouched()}),this.tipsForm.controls.customTips.statusChanges.pipe((0,h.F)(),(0,_.pQ)()).subscribe(n=>{this.formControlOnValidatorChange&&this.formControlOnValidatorChange()}),(0,l.QZP)(()=>{const n=this.inputCustomTips();n&&this.autofocusCustomTips&&(n.nativeElement.focus(),setTimeout(()=>n.nativeElement.focus()),this.autofocusCustomTips=!1)})}tipsOptionClick(n){void 0===n.percent&&(this.showCustomTipsEditor=!0,this.autofocusCustomTips=!0)}applyCustomTips(){this.showCustomTipsEditor=!1,this.autofocusCustomTips=!1,this.userSelectedPercent=void 0;const n=this.tipsForm.controls.customTips.value?(0,O._P)(this.tipsForm.controls.customTips.value):null;this.tipsForm.controls.customTips.setValue(n&&n/100,{emitEvent:!1}),this.tipOptions=this.initTipOptions(n);let i,e=this.tipOptions.find(p=>p.valueInCents===n);(0,f.iY)(e),i=e?.percent?null:n,this.updateCustomTipsControlValidation(i),this.tipsForm.controls.tips.setValue(e,{emitEvent:!1}),this.formControlOnChange&&this.formControlOnChange(n)}customTipsInputBlur(){this.formControlOnTouched&&this.formControlOnTouched()}navigateToError(){this.inputCustomTips()?.nativeElement.focus()}ngOnChanges(n){let i;n.tipPercentValues&&(n.tipPercentValues.firstChange||n.tipPercentValues.previousValue.length!==n.tipPercentValues.currentValue.length||n.tipPercentValues.previousValue.some(p=>!n.tipPercentValues.currentValue.includes(p)))&&(this.userSelectedPercent=void 0),this.tipOptions=this.initTipOptions(this.userSelectedPercent?null:this.tipsForm.controls.tips.value?.valueInCents),this.userSelectedPercent?(i=this.tipOptions.find(p=>p.percent===this.userSelectedPercent),(0,f.iY)(i)):i=this.tipOptions.find(p=>p.valueInCents===this.tipsForm.controls.tips.value?.valueInCents),this.tipsForm.controls.tips.setValue(i??null,{emitEvent:!1}),this.userSelectedPercent&&setTimeout(()=>{this.formControlOnChange&&this.formControlOnChange(i?.valueInCents??null),this.formControlOnValidatorChange&&this.formControlOnValidatorChange()})}writeValue(n){if((this.tipsForm.controls.tips.value?.valueInCents??null)!==n){this.userSelectedPercent=void 0;let e=this.tipOptions.find(i=>i.valueInCents===n);void 0===e&&(this.tipOptions=this.initTipOptions(n),e=this.tipOptions.find(i=>i.valueInCents===n),(0,f.iY)(e),this.tipsForm.controls.customTips.setValue(e.valueInCents?e.valueInCents/100:null),this.updateCustomTipsControlValidation(e.valueInCents)),this.tipsForm.controls.tips.setValue(e,{emitEvent:!1}),this.changeDetectorRef.markForCheck()}}registerOnChange(n){this.formControlOnChange=n}registerOnTouched(n){this.formControlOnTouched=n}validate(n){return this.showCustomTipsEditor?this.tipsForm.controls.customTips.errors:null}registerOnValidatorChange(n){this.formControlOnValidatorChange=n}initTipOptions(n){let e;e=void 0!==n?n:this.tipOptions.find(p=>void 0===p.percent)?.valueInCents??null;const i=this.tipPercentValues.map(p=>({valueInCents:Math.round(this.baseAmountForTipsInCents*p/100),percent:p}));return i.some(p=>p.valueInCents===n)?i.push({valueInCents:null,percent:void 0}):i.push({valueInCents:e,percent:void 0}),i}updateCustomTipsControlValidation(n){this.tipsForm.controls.customTips.setValidators(v(n)),this.tipsForm.controls.customTips.updateV
1alueAndValidity(),this.tipsForm.controls.customTips.markAsUntouched()}static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["yp-tips"]],viewQuery:function(e,i){1&e&&t.wEZ(i.inputCustomTips,R,5,t.aKT),2&e&&t.NyB()},inputs:{baseAmountForTipsInCents:"baseAmountForTipsInCents",tipPercentValues:"tipPercentValues"},features:[t.Jv_([{provide:r.kq,multi:!0,useExisting:o},{provide:r.cz,multi:!0,useExisting:o}]),t.OA$],decls:5,vars:2,consts:[["inputCustomTips",""],[3,"formGroup"],[1,"tip-container"],[1,"position-relative","tip-option-wrapper"],["type","radio","name","radioTipOption",1,"radio-tip-option","visually-hidden",3,"id","formControl","value"],[1,"tip-option",3,"click","for"],[1,"fs-3","yp-text-muted"],[1,"d-flex","justify-content-center"],[1,"pe-2"],[1,"icon-xs","yp-text-muted",2,"height","1lh",3,"svgIcon"],[1,"yp-animation-expansion-body-container-content"],[1,"w-100","mt-3",3,"appearance","subscriptSizing"],["type","number","matInput","",3,"keyup.enter","blur","ypPositiveNumberInput","ypLengthLimit","formControl"],["type","button","matSuffix","","mat-button","",3,"click"]],template:function(e,i){1&e&&(t.qex(0,1),t.j41(1,"div",2),t.Z7z(2,b,5,5,"div",3,t.fX1),t.k0s(),t.nVh(4,x,12,11,"div"),t.bVm()),2&e&&(t.Y8G("formGroup",i.tipsForm),t.R7$(2),t.Dyx(i.tipOptions),t.R7$(2),t.vxM(i.showCustomTipsEditor?4:-1))},dependencies:[r.X1,r.me,r.Q0,r.Fm,r.BC,r.cb,r.l_,r.j4,a.rl,C.fg,a.nJ,a.TL,a.yw,E.$z,c.An,I._,M.v,y.o,T.D9],styles:[".tip-container[_ngcontent-%COMP%]{display:flex;gap:max(.5rem,2%);overflow-x:auto}.tip-container[_ngcontent-%COMP%]   .tip-option-wrapper[_ngcontent-%COMP%]{flex-basis:25%;max-width:12rem}.tip-container[_ngcontent-%COMP%]   .tip-option-wrapper[_ngcontent-%COMP%]:first-child{margin-inline-start:auto}.tip-container[_ngcontent-%COMP%]   .tip-option-wrapper[_ngcontent-%COMP%]:last-child{margin-inline-end:auto}.tip-container[_ngcontent-%COMP%]   .tip-option-wrapper[_ngcontent-%COMP%]   .tip-option[_ngcontent-%COMP%]{width:100%;height:100%;padding:.5rem;text-align:center;border-radius:.5rem;border:var(--mat-form-field-outlined-outline-width, 1px) solid var(--mat-form-field-outlined-outline-color, var(--mat-sys-outline));cursor:pointer}.tip-container[_ngcontent-%COMP%]   .tip-option-wrapper[_ngcontent-%COMP%]   .tip-option[_ngcontent-%COMP%]:active{background:var(--yp-body-bg-shift1)}.tip-container[_ngcontent-%COMP%]   .tip-option-wrapper[_ngcontent-%COMP%]   .radio-tip-option[_ngcontent-%COMP%]:checked + .tip-option[_ngcontent-%COMP%]{border:var(--mat-form-field-outlined-focus-outline-width, 2px) solid var(--mat-form-field-outlined-focus-outline-color, var(--mat-sys-primary))}.tip-container[_ngcontent-%COMP%]   .tip-option-wrapper[_ngcontent-%COMP%]   .radio-tip-option[_ngcontent-%COMP%]:focus-visible + .tip-option[_ngcontent-%COMP%]{outline:1px solid var(--yp-body-bg-shift3);outline-offset:-2px;box-shadow:inset 0 0 0 3px var(--yp-body-color)}"],changeDetection:0})}}return o})()},41940(g,d,s){s.d(d,{v:()=>_});var m=s(17705),t=s(35547),l=s(85802);let _=(()=>{class r{constructor(){this.ypLengthLimit=m.hFB.required(),this.elementRef=(0,l.WQX)(t.aKT)}beforeinput(a){if(a instanceof InputEvent&&a.data){const c=Math.abs(this.elementRef.nativeElement.selectionStart-this.elementRef.nativeElement.selectionEnd);this.elementRef.nativeElement.value.length-c+a.data.length>this.ypLengthLimit()&&a.preventDefault()}}static{this.\u0275fac=function(c){return new(c||r)}}static{this.\u0275dir=t.FsC({type:r,selectors:[["textarea","ypLengthLimit",""],["input","ypLengthLimit",""]],hostBindings:function(c,C){1&c&&t.bIt("beforeinput",function(h){return C.beforeinput(h)})},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.