PageSourceSearch

https://sushi-omsk.ru/2521.9c1bb208007934ce.js

js sushi-omsk.ru collected 2026-10-05 00:12:37 UTC 6,590 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkyumapos_web_client_mobile=self.webpackChunkyumapos_web_client_mobile||[]).push([[2521],{82521(G,l,e){e.r(l),e.d(l,{DialogPointsHistoryComponent:()=>j});var E=e(49769),a=e(85802),I=e(99213),C=e(59640),P=e(68018),p=e(96354),T=e(15307),h=e(64954),y=e(65873),d=e(64683),f=e(95583),R=e(9282),u=e(34721),D=e(44162),c=e(99170),n=e(35547);const O=t=>({date:t}),m=t=>({orderNumber:t});function g(t,_){if(1&t&&(n.nrm(0,"hr"),n.j41(1,"div",9),n.EFF(2),n.nI1(3,"ypDateTime"),n.nI1(4,"translate"),n.k0s()),2&t){n.XpG(2);const i=n.r8f(6);n.R7$(2),n.SpI(" ",n.i5U(4,4,"PROFILE.POINTS.EXPIRATION.KEEP_POINTS",n.eq3(7,O,n.i5U(3,1,i[0].expirationDate,"date-long")))," ")}}function M(t,_){if(1&t&&(n.j41(0,"div",10)(1,"div",11),n.nrm(2,"mat-icon",12),n.EFF(3),n.nI1(4,"ypDateTime"),n.k0s(),n.j41(5,"div"),n.EFF(6),n.k0s()()),2&t){const i=n.XpG().$implicit,s=n.XpG(3);n.R7$(2),n.Y8G("svgIcon",s.SvgIcon.fire),n.R7$(),n.SpI(" ",n.i5U(4,3,i.expirationDate,"date-long")," "),n.R7$(3),n.JRh(i.amount)}}function v(t,_){1&t&&n.nVh(0,M,7,6,"div",10),2&t&&n.vxM(_.$index<2?0:-1)}function x(t,_){if(1&t&&(n.j41(0,"div",7)(1,"h3",3),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.Z7z(4,v,1,1,null,null,n.fX1),n.k0s(),n.nrm(6,"hr")),2&t){n.XpG(2);const i=n.r8f(6);n.R7$(2),n.JRh(n.bMT(3,1,"PROFILE.POINTS.EXPIRATION.UPCOMING.TITLE")),n.R7$(2),n.Dyx(i)}}function F(t,_){1&t&&(n.j41(0,"div",8),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&t&&(n.R7$(),n.JRh(n.bMT(2,1,"PROFILE.POINTS.HISTORY.EMPTY.MESSAGE")))}function S(t,_){if(1&t&&(n.EFF(0),n.nI1(1,"translate")),2&t){const i=n.XpG(2).$implicit;n.SpI(" ",n.i5U(1,1,"PROFILE.POINTS.HISTORY.EARNED.FOR_ORDER",n.eq3(4,m,i.orderNumber))," ")}}function $(t,_){1&t&&(n.EFF(0),n.nI1(1,"translate")),2&t&&n.SpI(" ",n.bMT(1,1,"PROFILE.POINTS.HISTORY.EARNED.COMMON")," ")}function N(t,_){if(1&t&&n.nVh(0,S,2,6)(1,$,2,3),2&t){const i=n.XpG().$implicit;n.vxM(void 0!==i.orderNumber?0:1)}}function H(t,_){if(1&t&&(n.EFF(0),n.nI1(1,"translate")),2&t){const i=n.XpG(2).$implicit;n.SpI(" ",n.i5U(1,1,"PROFILE.POINTS.HISTORY.REDEEMED.FOR_ORDER",n.eq3(4,m,i.orderNumber))," ")}}function L(t,_){1&t&&(n.EFF(0),n.nI1(1,"translate")),2&t&&n.SpI(" ",n.bMT(1,1,"PROFILE.POINTS.HISTORY.REDEEMED.COMMON")," ")}function b(t,_){if(1&t&&n.nVh(0,H,2,6)(1,L,2,3),2&t){const i=n.XpG().$implicit;n.vxM(void 0!==i.orderNumber?0:1)}}function A(t,_){if(1&t&&(n.j41(0,"div",13)(1,"div")(2,"div"),n.nVh(3,N,2,1)(4,b,2,1),n.k0s(),n.j41(5,"div",15),n.EFF(6),n.nI1(7,"ypDateTime"),n.k0s()(),n.j41(8,"div"),n.EFF(9),n.k0s()()),2&t){const i=_.$implicit;n.R7$(3),n.vxM(i.earned?3:4),n.R7$(3),n.SpI(" ",n.i5U(7,6,i.created,"date-long")," "),n.R7$(2),n.HbH(i.earned?"yp-text-success":"yp-text-danger"),n.R7$(),n.Lme(" ",i.earned?"+":"-"," ",i.points," ")}}function U(t,_){if(1&t){const i=n.RV6();n.j41(0,"div",14)(1,"yp-spinner",16),n.bIt("spinnerVisibilityChange",function(o){a.eBV(i);const r=n.XpG(3);return a.Njj(r.loadingSpinnerShown.set(o))}),n.k0s(),n.j41(2,"button",17),n.bIt("click",function(){a.eBV(i);const o=n.XpG(3);return a.Njj(o.loadPointsHistoryNext())}),n.EFF(3),n.nI1(4,"translate"),n.nrm(5,"mat-icon",5),n.k0s()()}if(2&t){const i=n.XpG(3);n.R7$(),n.Y8G("spinnerType",i.spinnerType)("diameter",30),n.R7$(),n.Y8G("disabled",i.loadingSpinnerShown()),n.R7$(),n.SpI(" ",n.bMT(4,5,"COMMON.LOAD_MORE")," "),n.R7$(2),n.Y8G("svgIcon",i.SvgIcon.chevronDown)}}function W(t,_){if(1&t&&(n.Z7z(0,A,10,9,"div",13,n.fX1),n.nVh(2,U,6,7,"div",14)),2&t){n.XpG(2);const i=n.r8f(0);n.Dyx(i.history),n.R7$(2),n.vxM(i.showLoadMoreButton?2:-1)}}function B(t,_){if(1&t&&(n.j41(0,"div",0)(1,"div",1)(2,"div",0)(3,"div",2)(4,"h3",3),n.EFF(5),n.nI1(6,"translate"),n.k0s(),n.j41(7,"div",4),n.nrm(8,"mat-icon",5),n.j41(9,"div",6),n.EFF(10),n.k0s()()(),n.nVh(11,g,5,9),n.k0s()(),n.nVh(12,x,7,3),n.j41(13,"div",7)(14,"h3",3),n.EFF(15),n.nI1(16,"translate"),n.k0s(),n.nVh(17,F,3,3,"div",8)(18,W,3,1),n.k0s()()),2&t){const i=n.XpG(),s=n.r8f(0),o=n.r8f(3),r=n.r8f(6);n.R7$(5),n.JRh(n.bMT(6,7,"PROFILE.POINTS.AVAILABLE.LABEL")),n.R7$(3),n.Y8G("svgIcon",i.SvgIcon.coinsStacked),n.R7$(2),n.JRh(o.availablePoints),n.R7$(),n.vxM(i.tenant.pointAutoRenew&&r.length?11:-1),n.R7$(),n.vxM(r.length?12:-1),n.R7$(3),n.JRh(n.bMT(16,9,"PROFILE.POINTS.HISTORY.TITLE")),n.R7$(2),n.vxM(0===s.history.length?17:18)}}let j=(()=>{class t{constructor(){this.store=(0,a.WQX)(C.il),this.spinnerService=(0,a.WQX)(y.D),this.SvgIcon=h.h,this.tenant=(0,a.WQX)(T.$),this.pointsHistoryInfo$=this.store.select(c.KB).pipe((0,d.eU)(),(0,p.T)(i=>{let s=[];for(const o of i.records)o.pointsSpent&&s.push({orderNumber:o.orderNumber,points:o.pointsSpent,earned:!1,created:o.created}),o.pointsEarned&&s.push({orderNumber:o.orderNumber,points:o.pointsEarned,earned:!0,created:o.created});return{history:s,showLoadMoreButton:i.hasMoreRecords}})),this.customerPointsInfo$=this.store.select(c.Qk).pipe((0,d.eU)()),this.pointsWithExpiration$=this.customerPointsInfo$.pipe((0,p.T)(i=>i.pointsList.filter((s,o)=>void 0!==s.expirationDate).sort((s,o)=>Date.parse(s.expirationDate)-Date.parse(o.expirationDate)))),this.spinnerType=this.spinnerService.generateSpinnerType(),this.loadingSpinnerShown=(0,a.vPA)(!1)}loadPointsHistoryNext(){this.store.dispatch(D.I.loadCustomerPointsHistoryNext(this.spinnerType))}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["yp-dialog-points-history"]],decls:10,vars:16,consts:[[1,"
1yp-groups-container"],[1,"yp-group","yp-card",2,"padding","25px"],[1,"yp-group","d-flex","flex-column","gap-1","align-items-center"],[1,"yp-group-title"],[1,"d-flex","gap-2","align-items-end"],[3,"svgIcon"],[2,"font-size","1.5rem"],[1,"yp-group"],[1,"fs-4"],[1,"yp-group","text-center"],[1,"d-flex","gap-2","justify-content-between"],[1,"d-flex","align-items-center"],[1,"me-2","icon-sm","yp-text-muted",3,"svgIcon"],[1,"d-flex","gap-2","justify-content-between","fs-4"],[1,"d-flex","flex-column","align-items-center"],[1,"fs-4","yp-text-muted"],[3,"spinnerVisibilityChange","spinnerType","diameter"],["type","button",1,"yp-btn","yp-btn-link","yp-btn-with-icon",3,"click","disabled"]],template:function(s,o){if(1&s&&(n.SS7(0),n.nI1(1,"async"),n.nI1(2,"ypNotNull"),n.SS7(3),n.nI1(4,"async"),n.nI1(5,"ypNotNull"),n.SS7(6),n.nI1(7,"async"),n.nI1(8,"ypNotNull"),n.nVh(9,B,19,11,"div",0)),2&s){const r=n.bH3(n.bMT(2,3,n.bMT(1,1,o.pointsHistoryInfo$)));n.R7$(3),n.bH3(n.bMT(5,8,n.bMT(4,6,o.customerPointsInfo$))),n.R7$(3),n.bH3(n.bMT(8,13,n.bMT(7,11,o.pointsWithExpiration$))),n.R7$(3),n.vxM(r?9:-1)}},dependencies:[I.An,f.t,P.D9,E.Jj,u.T,R.A],encapsulation:2,changeDetection:0})}}return t})()}}]);

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.