PageSourceSearch

https://bookmarket-e6da3.web.app/6711.abf5742da7817543.js

js bookmarket-e6da3.web.app collected 2026-10-03 12:19:27 UTC 8,808 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6711],{6711:(Q,p,c)=>{c.r(p),c.d(p,{ManagePageModule:()=>E});var m=c(6814),f=c(95),a=c(1024),g=c(209),e=c(6689),d=c(65),h=c(6133),u=c(7850),_=c(6942);function v(t,s){if(1&t&&(e.TgZ(0,"div",4)(1,"ion-label",5),e._uU(2),e.qZA()()),2&t){const i=e.oxw();e.xp6(2),e.hij("You currently have ",i.items.length," listed item(s).")}}function y(t,s){1&t&&(e.TgZ(0,"div",6)(1,"ion-button",7),e._uU(2," Add new Item "),e.qZA()())}function x(t,s){if(1&t){const i=e.EpF();e.TgZ(0,"app-horizontal-item-card",11),e.NdJ("editEvent",function(){const r=e.CHM(i).$implicit,l=e.oxw(2);return e.KtG(l.goEditBook(r.id))})("deleteEvent",function(){const r=e.CHM(i).$implicit,l=e.oxw(2);return e.KtG(l.delete(r))}),e.qZA()}2&t&&e.Q6J("item",s.$implicit)}function C(t,s){if(1&t&&(e.TgZ(0,"div",8)(1,"div",9),e.YNc(2,x,1,1,"app-horizontal-item-card",10),e.qZA()()),2&t){const i=e.oxw();e.xp6(2),e.Q6J("ngForOf",i.items)}}let M=(()=>{var t;class s{constructor(n,o,r){this.router=n,this.itemService=o,this.alert=r,this.items=[]}ngOnInit(){this.itemService.getSellingItems().subscribe(n=>{this.items=n.results})}delete(n){this.itemService.removeItem(n).subscribe({next:o=>{this.alert.successAlert("The item has been deleted."),this.ngOnInit()},error:o=>{this.alert.errorAlert("The item cannot be deleted")}})}goEditBook(n){return this.router.navigate(["/edit-item/"],{queryParams:{id:n}})}}return(t=s).\u0275fac=function(n){return new(n||t)(e.Y36(g.F0),e.Y36(d.e),e.Y36(u.c))},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-selling"]],decls:4,vars:3,consts:[["mode","ios","animated","true","placeholder","Find more products"],["class","line-section",4,"ngIf"],["class","btn-section",4,"ngIf"],["class","search-list-position",4,"ngIf"],[1,"line-section"],[1,"item-msg"],[1,"btn-section"],["routerLink","/add","routerLinkActive","active","color","primary","mode","ios",1,"btn-default"],[1,"search-list-position"],[1,"search-list"],[3,"item","editEvent","deleteEvent",4,"ngFor","ngForOf"],[3,"item","editEvent","deleteEvent"]],template:function(n,o){1&n&&(e._UZ(0,"ion-searchbar",0),e.YNc(1,v,3,1,"div",1),e.YNc(2,y,3,0,"div",2),e.YNc(3,C,3,1,"div",3)),2&n&&(e.xp6(1),e.Q6J("ngIf",o.items),e.xp6(1),e.Q6J("ngIf",0===o.items.length),e.xp6(1),e.Q6J("ngIf",o.items))},dependencies:[m.sg,m.O5,a.YG,a.Q$,a.VI,a.j9,a.YI,g.rH,g.Od,_.T],styles:[".line-section[_ngcontent-%COMP%]{display:flex;justify-content:center}.item-msg[_ngcontent-%COMP%]{font-size:14px;opacity:.5}.options-section[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:1rem;margin-top:.5rem}.btn-section[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:2rem}.btn-default[_ngcontent-%COMP%]{width:90%}.search-list-position[_ngcontent-%COMP%]{display:flex;justify-content:center}.search-list[_ngcontent-%COMP%]{max-width:500px;display:flex;flex-direction:column;gap:1rem;width:100%;align-items:center;margin-top:1rem}"]}),s})();function P(t,s){if(1&t&&(e.TgZ(0,"div",4)(1,"ion-label",5),e._uU(2),e.qZA()()),2&t){const i=e.oxw();e.xp6(2),e.hij("You currently have ",i.items.length," buying item(s).")}}function b(t,s){1&t&&(e.TgZ(0,"div",6)(1,"p"),e._uU(2,"Go to Home page to start Buying!"),e.qZA()())}function O(t,s){if(1&t){const i=e.EpF();e.TgZ(0,"app-horizontal-item-card",10),e.NdJ("editEvent",function(){const r=e.CHM(i).$implicit,l=e.oxw(2);return e.KtG(l.detailBook(r.id))})("deleteEvent",function(){const r=e.CHM(i).$implicit,l=e.oxw(2);return e.KtG(l.delete(r))}),e.qZA()}2&t&&e.Q6J("item",s.$implicit)}function T(t,s){if(1&t&&(e.TgZ(0,"div",7)(1,"div",8),e.YNc(2,O,1,1,"app-horizontal-item-card",9),e.qZA()()),2&t){const i=e.oxw();e.xp6(2),e.Q6J("ngForOf",i.items)}}let I=(()=>{var t;class s{constructor(n,o,r){this.router=n,this.itemService=o,this.alert=r,this.items=[]}ngOnInit(){this.itemService.getBuyingItems().subscribe(n=>{this.items=n.results})}detailBook(n){return this.router.navigate(["/item-buy-detail/"],{queryParams:{id:n}})}delete(n){this.itemService.cancelOrden(n).subscribe({next:o=>{this.alert.successAlert("The order has been canceled"),this.ngOnInit()},error:o=>
1{this.alert.errorAlert("The order can not be deleted")}})}}return(t=s).\u0275fac=function(n){return new(n||t)(e.Y36(g.F0),e.Y36(d.e),e.Y36(u.c))},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-buying"]],decls:4,vars:3,consts:[["mode","ios","animated","true","placeholder","Find more products"],["class","line-section",4,"ngIf"],["class","btn-section",4,"ngIf"],["class","search-list-position",4,"ngIf"],[1,"line-section"],[1,"item-msg"],[1,"btn-section"],[1,"search-list-position"],[1,"search-list"],[3,"item","editEvent","deleteEvent",4,"ngFor","ngForOf"],[3,"item","editEvent","deleteEvent"]],template:function(n,o){1&n&&(e._UZ(0,"ion-searchbar",0),e.YNc(1,P,3,1,"div",1),e.YNc(2,b,3,0,"div",2),e.YNc(3,T,3,1,"div",3)),2&n&&(e.xp6(1),e.Q6J("ngIf",o.items),e.xp6(1),e.Q6J("ngIf",0===o.items.length),e.xp6(1),e.Q6J("ngIf",o.items))},dependencies:[m.sg,m.O5,a.Q$,a.VI,a.j9,_.T],styles:[".line-section[_ngcontent-%COMP%]{display:flex;justify-content:center}.item-msg[_ngcontent-%COMP%]{font-size:14px;opacity:.5}.options-section[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:1rem;margin-top:.5rem}.btn-section[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:2rem}.btn-default[_ngcontent-%COMP%]{width:90%}.search-list-position[_ngcontent-%COMP%]{display:flex;justify-content:center}.search-list[_ngcontent-%COMP%]{max-width:500px;display:flex;flex-direction:column;gap:1rem;width:100%;align-items:center;margin-top:1rem}"]}),s})();const Z=["buying"],S=["selling"];function z(t,s){1&t&&e._UZ(0,"app-selling",null,9)}function J(t,s){1&t&&e._UZ(0,"app-buying",null,10)}const Y=[{path:"",component:(()=>{var t;class s{constructor(n,o,r){this.router=n,this.itemService=o,this.route=r,this.display="selling",this.route.queryParams.subscribe(l=>{l.reload&&(this.ngOnInit(),this.buyingChild.ngOnInit(),this.SellingChild.ngOnInit())})}ngOnInit(){}handleSegment(n){this.display=n.target.value}goEditBook(n){return this.router.navigate(["/edit-item/"],{queryParams:{id:n}})}handleRefresh(n){"buying"===this.display?this.buyingChild.ngOnInit():this.SellingChild.ngOnInit(),setTimeout(()=>{n.target.complete()},200)}}return(t=s).\u0275fac=function(n){return new(n||t)(e.Y36(g.F0),e.Y36(d.e),e.Y36(g.gz))},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-manage"]],viewQuery:function(n,o){if(1&n&&(e.Gf(Z,5),e.Gf(S,5)),2&n){let r;e.iGM(r=e.CRH())&&(o.buyingChild=r.first),e.iGM(r=e.CRH())&&(o.SellingChild=r.first)}},decls:16,vars:7,consts:[[3,"title","rightWord","rightPath"],[3,"fullscreen"],["slot","fixed",3,"ionRefresh"],[1,"title-position"],[1,"title"],[3,"value","ionChange"],["value","selling"],["value","buying"],[4,"ngIf"],["selling",""],["buying",""]],template:function(n,o){1&n&&(e._UZ(0,"app-navbar",0),e.TgZ(1,"ion-content",1)(2,"ion-refresher",2),e.NdJ("ionRefresh",function(l){return o.handleRefresh(l)}),e._UZ(3,"ion-refresher-content"),e.qZA(),e.TgZ(4,"div",3)(5,"ion-label",4),e._uU(6,"Manage Items"),e.qZA()(),e.TgZ(7,"ion-segment",5),e.NdJ("ionChange",function(l){return o.handleSegment(l)}),e.TgZ(8,"ion-segment-button",6)(9,"ion-label"),e._uU(10,"Selling"),e.qZA()(),e.TgZ(11,"ion-segment-button",7)(12,"ion-label"),e._uU(13,"Buying"),e.qZA()()(),e.YNc(14,z,2,0,"app-selling",8),e.YNc(15,J,2,0,"app-buying",8),e.qZA()),2&n&&(e.Q6J("title","Manage")("rightWord","Add")("rightPath","/add"),e.xp6(1),e.Q6J("fullscreen",!0),e.xp6(6),e.Q6J("value",o.display),e.xp6(7),e.Q6J("ngIf","selling"===o.display),e.xp6(1),e.Q6J("ngIf","buying"===o.display))},dependencies:[m.O5,a.W2,a.Q$,a.nJ,a.Wo,a.cJ,a.GO,a.QI,h.S,M,I],styles:[".title-position[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;font-size:30px;margin:1rem}.title[_ngcontent-%COMP%]{font-size:30px;font-weight:700;text-align:start}.line-section[_ngcontent-%COMP%]{display:flex;justify-content:center}.item-msg[_ngcontent-%COMP%]{font-size:14px;opacity:.5}.options-section[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:1rem;margin-top:.5rem}.btn-section[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:2rem}.btn-default[_ngcontent-%COMP%]{width:90%}.search-list-position[_ngcontent-%COMP%]{display:flex;justify-content:center}.search-list[_ngcontent-%COMP%]{max-width:500px;display:flex;flex-direction:column;gap:1rem;width:100%;align-items:center;margin-top:1rem}"]}),s})()}];let A=(()=>{var t;class s{}return(t=s).\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[g.Bz.forChild(Y),g.Bz]}),s})();var B=c(2552);let E=(()=>{var t;class s{}return(t=s).\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[m.ez,f.u5,a.Pc,A,B.m]}),s})()}}]);

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.