PageSourceSearch

https://app.topdog.africa/6256.9227df81b7c8b0cc.js

js topdog.africa collected 2026-10-07 03:00:28 UTC 14,660 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6256],{3984:(I,O,n)=>{n.d(O,{o:()=>g});var h=n(9808),i=n(6443),l=n(9102),a=n(9863);let g=(()=>{class r{}return r.\u0275fac=function(d){return new(d||r)},r.\u0275mod=a.oAB({type:r}),r.\u0275inj=a.cJS({imports:[[h.ez,l.Pc,i.Bz]]}),r})()},3459:(I,O,n)=>{n.d(O,{P:()=>m});var h=n(910),i=n(9863),l=n(9102),a=n(6443),g=n(9808);function r(d,t){if(1&d&&(i.TgZ(0,"ion-badge",3),i._uU(1),i.qZA()),2&d){const p=i.oxw();i.xp6(1),i.hij(" ",p.totalCount,"")}}let m=(()=>{class d{constructor(p){this.cartService=p,this.cartService.itemsNumber$.subscribe(C=>{this.itemsCount=C,this.totalCount=this.transferCount+this.itemsCount}),this.cartService.transferItemsNumber$.subscribe(C=>{this.transferCount=C,this.totalCount=this.transferCount+this.itemsCount})}ngOnInit(){}}return d.\u0275fac=function(p){return new(p||d)(i.Y36(h.N))},d.\u0275cmp=i.Xpm({type:d,selectors:[["app-cart"]],decls:3,vars:2,consts:[[3,"routerLink"],["id","notifications-badge","color","danger",4,"ngIf"],["name","cart-sharp",1,"margin-right"],["id","notifications-badge","color","danger"]],template:function(p,C){1&p&&(i.TgZ(0,"ion-button",0),i.YNc(1,r,2,1,"ion-badge",1),i._UZ(2,"ion-icon",2),i.qZA()),2&p&&(i.Q6J("routerLink","/members/cart"),i.xp6(1),i.Q6J("ngIf",C.totalCount>0))},directives:[l.YG,l.YI,a.rH,g.O5,l.yp,l.gu],styles:["#notifications-badge[_ngcontent-%COMP%]{background-color:red;position:absolute;top:0px;right:0px;border-radius:100%;padding:2px 4px 4px;opacity:.9;z-index:99999;font-size:12px}#transfer-badge[_ngcontent-%COMP%]{background-color:#ff8809;position:absolute;top:0px;right:0px;border-radius:100%;padding:2px 4px 4px;opacity:.9;z-index:99999;font-size:12px}ion-button.ios[_ngcontent-%COMP%]{--color: #ffffff !important}.margin-right[_ngcontent-%COMP%]{margin-right:8px}"]}),d})()},6256:(I,O,n)=>{n.r(O),n.d(O,{DocumentsPageModule:()=>S});var h=n(9808),i=n(3075),l=n(6443),a=n(9102),g=n(5642),r=n(7279),m=n(520),d=n(4850),t=n(9863);let b=(()=>{class e{constructor(s){this.api=s}getDocuments(){const s=(new m.LE).set("limit","1000");return this.api.get("portal-documents/",{params:s}).pipe((0,d.U)(P=>{if(console.log("Get all documents, ",P),P&&P.results){const E=P.results.filter(v=>v.filename.endsWith(".pdf"));return E.forEach(v=>{v.filename=v.filename.replace(".pdf","")}),{data:E,count:P.count}}}))}}return e.\u0275fac=function(s){return new(s||e)(t.LFG(r.O))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var D=n(3459),M=n(5094);function T(e,u){if(1&e){const s=t.EpF();t.TgZ(0,"ion-item",12),t.NdJ("click",function(){const v=t.CHM(s).$implicit;return t.oxw(3).onDownloadDocument(v.file_url)}),t._UZ(1,"ion-icon",13),t.TgZ(2,"ion-label",14),t._uU(3),t.qZA()()}if(2&e){const s=u.$implicit;t.xp6(3),t.Oqu(s.filename)}}function c(e,u){if(1&e&&(t.TgZ(0,"div"),t.YNc(1,T,4,1,"ion-item",11),t.qZA()),2&e){const s=t.oxw().ngIf;t.xp6(1),t.Q6J("ngForOf",s.data)}}function _(e,u){1&e&&(t.TgZ(0,"div",15),t._uU(1,"Nothing here yet!"),t.qZA())}function x(e,u){if(1&e&&(t.TgZ(0,"div"),t.YNc(1,c,2,1,"div",8),t.YNc(2,_,2,0,"ng-template",null,10,t.W1O),t.qZA()),2&e){const s=u.ngIf,P=t.MAs(3);t.xp6(1),t.Q6J("ngIf",s.count>0)("ngIfElse",P)}}function o(e,u){1&e&&(t.TgZ(0,"div",15),t._uU(1,"Loading ..."),t.qZA())}let f=(()=>{class e{constructor(s){this.documentsService=s}ngOnInit(){this.documents$=this.documentsService.getDocuments()}onDownloadDocument(s){window.open(s,"_blank")}}return e.\u0275fac=function(s){return new(s||e)(t.Y36(b))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-documents"]],decls:24,vars:4,consts:[["no-border","",1,"members"],["slot","start"],["slot","end"],[1,"grid-with-list","without-margin"],[1,"light-color","ion-padding"],["size","12"],[1,"dark-paragraph"],["lines","full",1,"pricelists","recent-domains"],[4,"ngIf","ngIfElse"],["loading",""],["nopayments",""],["detail","",3,"click",4,"ngFor","ngForOf"],["detail","",3,"click"],["color","tertiary","slot","start","name","document"],[1,"doc-label"],[1,"ion-text-center"]],template:function(s,P){if(1&s&&(t.TgZ(0,"ion-header",0)(1,"ion-toolbar")(2,"ion-buttons",1),t._UZ(3,"ion-menu-button"),t.qZA(),t.TgZ(4,"ion-title"),t._uU(5,"Documents"),t.qZA(),t.TgZ(6,"ion-buttons",2),t._UZ(7,"app-cart"),t.qZA()()(),t.TgZ(8,"ion-content")(9,"ion-grid",3)(10,"div",4)(11,"ion-row")(12,"ion-col",5)(13,"p",6),t._uU(14,"Agreements, documentation and other useful resources."),t.qZA()()()(),t.TgZ(15,"ion-row")(16,"ion-col",5)(17,"ion-list",7),t.YNc(18,x,4,2,"div",8),t.ALo(19,"async"),t.YNc(20,o,2,0,"ng-template",null,9,t.W1O),t.qZA()()()()(),t.TgZ(22,"ion-footer"),t._UZ(23,"app-bottom-logo"),t.qZA()),2&s){const E=t.MAs(21);t.xp6(18),t.Q6J("ngIf",t.lcZ(19,2,P.documents$))("ngIfElse",E)}},directives:[a.Gu,a.sr,a.Sm,a.fG,a.wd,D.P,a.W2,a.jY,a.Nd,a.wI,a.q_,h.O5,h.sg,a.Ie,a.gu,a.Q$,a.fr,M.B],pipes:[h.Ov],styles:[".light-color[_ngcontent-%COMP%]{background-color:var(--ion-color-light)}.grid-with-list.without-margin[_ngcontent-%COMP%]{margin-top:0}.dark-paragraph[_ngcontent-%COMP%]{color:var(--ion-color-dark);margin-top:0;margin-bottom:0}.doc-label[_ngcontent-%COMP%]{font-size:18px;color:var(--ion-color-primary)}",".right-icon[_ngcontent-%COMP%]     .searchbar-search-icon{right:16px;left:unset}.right-icon[_ngcontent-%COMP%]     .searchbar-search-icon.sc-ion-searchbar-ios{right:8px;left:unset}.right-icon[_ngcontent-%COMP%]     .searchbar-clear-button{left:13px;right:unset}.right-icon[_ngcontent-%COMP%]     .searchbar-clear-button.sc-ion-searchbar-ios{left:0px;right:unset}.right-icon[_ngcontent-%COMP%]     .searchbar-input{font-size:1em;background:white}.right-icon[_ngcontent-%COMP%]     .searchbar-input.sc-ion-searchbar-ios{border:2px solid #ddd}.sticky[_ngcontent-%COMP%]{position:sticky;position:-webkit-sticky;top:0;z-index:10000}.primary-semibold-label[_ngcontent-%COMP%]{font-weight:300;color:var(--ion-color-primary)!important}.secondary-semibold-label[_ngcontent-%COMP%]{font-weight:300;color:var(--ion-color-secondary)}.footer-button[_ngcontent-%COMP%]{width:100%;z-index:10000;margin:0;--border-radius: 0px}.grid-with-list[_ngcontent-%COMP%]{padding:0;margin-top:10px}.grid-with-list[_ngcontent-%COMP%]   ion-col[_ngcontent-%COMP%]{padding:0}.grid-with-list[_ngcontent-%COMP%]   .pricelists[_ngcontent-%COMP%]{padding-top:0;--border-color: #c8c7cc;--background-color: var(--ion-color-light)}.grid-with-list[_ngcontent-%COMP%]   ion-list-header[_ngcontent-%COMP%]{font-size:20px;min-height:unset;padding-top:3px;padding-bottom:3px;text-transform:capitalize}.grid-with-list[_ngcontent-%COMP%]   ion-list-header.ios[_ngcontent-%COMP%]{font-weight:500}.grid-with-list[_ngcontent-%COMP%]   ion-list-header[_ngcontent-%COMP%]   ion-grid[_ngcontent-%COMP%]{padding:0}.grid-with-list[_ngcontent-%COMP%]   ion-list-header[_ngcontent-%COMP%]   ion-grid[_ngcontent-%COMP%]   ion-col[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.grid-with-list[_ngcontent-%COMP%]   ion-list-header[_ngcontent-%COMP%]   ion-grid[_ngcontent-%COMP%]   ion-col[_ngcontent-%COMP%]:last-child{padding-right:20px}.fab-big-margin.fab-horizontal-end.fab-vertical-bottom[_ngcontent-%COMP%]{bottom:40px;right:20px}.inputs-with-validation[_ngcontent-%COMP%]   .error-container[_ngcontent-%COMP%]   .error-message[_ngcontent-%COMP%], .ion-no-margin.inputs-with-validation[_ngcontent-%COMP%]   .error-container[_ngcontent-%COMP%]   .error-message[_ngcontent-%COMP%]{margin:calc(var(--page-margin) / 2) 0px;display:flex;align-items:center;color:var(--ion-color-danger);font-size:14px}.inputs-with-validation[_ngcontent-%COMP%]   .error-container[_ngcontent-%COMP%]   .error-message[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%], .ion-no-margin.inputs-with-validation[_ngcontent-%COMP%]   .error-container[_ngcontent-%COMP%]   .error-message[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{-webkit-padding-end:calc(var(--page-margin) / 2);padding-inline-end:calc(var(--page-margin) / 2)}ion-footer.two-buttons[_ngcontent-%COMP%]   ion-grid[_ngcontent-%COMP%]{padding:0}ion-footer.two-buttons[_ngcontent-%COMP%]   ion-grid[_ngcontent-%COMP%]   ion-col[_ngcontent-%COMP%]{padding:0}ion-footer.two-buttons[_ngcontent-%COMP%]   ion-grid[_ngcontent-%COMP%]   ion-col[_ngcontent-%COMP%]:first-child{padding-right:1px}ion-footer.two-buttons[_ngcontent-%COMP%]   ion-grid[_ngcontent-%COMP%]   ion-col[_ngcontent-%COMP%]:nth-child(2){padding-left:1px}ion-footer.two-buttons[_ngcontent-%COMP%]   ion-grid[_ngcontent-%COMP%]   ion-col[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{margin:0;--border-radius: 0px}ion-footer.three-buttons[_ngcontent-%COMP%]   ion-grid[_ngcontent-%COMP%]{padding:0}ion-footer.three-buttons[_ngcontent-%COMP%]   ion-grid[_ngcontent-%COMP%]   ion-col[_ngcontent-%COMP%]{padding:0}ion-footer.three-buttons[_ngcontent-%COMP%]   ion-grid[_ngcontent-%COMP%]   ion-col[_ngcontent-%COMP%]:first-child, ion-footer.three-buttons[_ngcontent-%COMP%]   ion-grid[_ngcontent-%COMP%]   ion-col[_ngcontent-%COMP%]:nth-child(2){padding-right:1px}ion-footer.three-buttons[_ngcontent-%COMP%]   ion-grid[_ngcontent-%COMP%]   ion-col[_ngcontent-%COMP%]:nth-child(2), ion-footer.three-buttons[_ngcontent-%COMP%]   ion-grid[_ngcontent-%COMP%]   ion-col[_ngcontent-%COMP%]:nth-child(3){padding-left:1px}ion-footer.three-buttons[_ngcontent-%COMP%]   ion-grid[_ngcontent-%COMP%]   ion-col[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{margin:0;--border-radius: 0px}.segmentDiv[_ngcontent-%COMP%]{margin:10px 14px}.segmentDiv[_ngcontent-%COMP%]   ion-segment.ios[_ngcontent-%COMP%]{margin:0 auto!important;background-clip:content-box;--background: transparent !important;border:1px solid var(--ion-color-primary)}.segmentDiv[_ngcontent-%COMP%]   ion-segment.ios[_ngcontent-%COMP%]   ion-segment-button.ios[_ngcontent-%COMP%]{--indicator-color: var(--ion-color-primary, #3880ff) !important;opacity:1.5!important;font-size:16px;padding-top:3px;padding-bottom:3px;margin-top:-1px;margin-bottom:-1px}.full-width-input[_ngcontent-%COMP%]{width:100%}"]}),e})();var A=n(3984);const y=[{path:"",component:f}];let S=(()=>{class e{}return e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[h.ez,i.u5,a.Pc,A.o,g.K,l.Bz.forChild(y)]]}),e})()},216:(I,O,n)=>{n.d(O,{A:()=>l,P:()=>i});var h=n(591);const i="premium";class l{constructor(){this.total=0,this.count=0,this.itemsChangedSubject=ne
1w h.X(!1),this.itemsChanged$=this.itemsChangedSubject.asObservable(),this.items=new Array,this.itemsChangedSubject.subscribe(g=>{console.log("Cart changes, ",g),g&&(this.total=0,this.count=0,this.items.forEach(r=>{this.total+=r.price,this.count+=1}))})}addItem(g){-1===this.items.findIndex(m=>m.id===g.id)&&(this.items.push(g),this.itemsChangedSubject.next(!0))}addManyItems(g){const r=this.items.length;g.forEach(m=>{-1===this.items.findIndex(t=>t.id===m.id)&&this.items.push(m)}),this.items.length!==r&&this.itemsChangedSubject.next(!0)}removeItem(g){this.items.splice(this.items.findIndex(r=>r.id===g),1),this.itemsChangedSubject.next(!0)}empty(){this.items.length=0,this.total=0,this.itemsChangedSubject.next(!0)}isInCart(g){return-1!==this.items.findIndex(r=>r.id===g)}toJson(){return JSON.stringify(this.items)}updateItem(g,r){const m=this.items.findIndex(d=>d.id===g);if(-1!==m){let d=this.items[m];d=Object.assign(d,r),this.itemsChangedSubject.next(!0)}}}},910:(I,O,n)=>{n.d(O,{N:()=>D});var h=n(655),i=n(216),l=n(591),a=n(1086),g=n(7053),r=n(2994),m=n(7545),d=n(7279),t=n(9863),p=n(849);const C="cart",b="transfer_cart";let D=(()=>{class M{constructor(c,_,x){this.storage=c,this.api=_,this.authService=x,this.CART_VERSION=2,this.itemsNumber=new l.X(0),this.transferItemsNumber=new l.X(0),this.totalCartSubject=new l.X(0),this.totalTransferCartSubject=new l.X(0),this.cartContainsData=new l.X(!1),this.transferContainsData=new l.X(!1),this.itemsNumber$=this.itemsNumber.asObservable(),this.transferItemsNumber$=this.transferItemsNumber.asObservable(),this.totalCart$=this.totalCartSubject.asObservable(),this.totalTransferCart$=this.totalTransferCartSubject.asObservable(),this.cart=new i.A,this.transferCart=new i.A,this.storage.get(C).then(o=>{if(o){const f=JSON.parse(o);this.cart.addManyItems(f)}this.cartContainsData.next(!0)}),this.storage.get(b).then(o=>{if(o){const f=JSON.parse(o);this.transferCart.addManyItems(f)}this.transferContainsData.next(!0)}),this.cart.itemsChanged$.pipe((0,r.b)(o=>{console.log("Cart changes, ",o),o&&this.saveCart(JSON.parse(this.cart.toJson()),JSON.parse(this.transferCart.toJson()))})).subscribe(o=>(0,h.mG)(this,void 0,void 0,function*(){o&&(this.itemsNumber.next(this.cart.count),this.totalCartSubject.next(this.cart.total),this.cartContainsData.value&&(yield this.storage.set(C,this.cart.toJson())))})),this.transferCart.itemsChanged$.pipe((0,r.b)(o=>{console.log("Transfer Cart changes, ",o),o&&this.saveCart(JSON.parse(this.cart.toJson()),JSON.parse(this.transferCart.toJson()))})).subscribe(o=>(0,h.mG)(this,void 0,void 0,function*(){o&&(this.transferItemsNumber.next(this.transferCart.count),this.totalTransferCartSubject.next(this.transferCart.total),this.transferContainsData.value&&(yield this.storage.set(b,this.transferCart.toJson())))})),this.authService.currentAuthToken$.pipe((0,m.w)(o=>o?this.getCartDataFromApi():(0,a.of)(null))).subscribe(o=>{if(o&&(!o.cart.version||+o.cart.version<this.CART_VERSION))return this.cart.empty(),void this.transferCart.empty();if(o&&o.cart.normal){console.log("Getting the normal cart, ",o.cart.normal);const f=o.cart.normal;0===f.length?this.cart.empty():this.cart.addManyItems(f)}if(o&&o.cart.transfer){console.log("Getting the transfer cart, ",o.cart.transfer);const f=o.cart.transfer;0===f.length?this.transferCart.empty():this.transferCart.addManyItems(f)}}),this.authService.loggingOut$.subscribe(o=>(0,h.mG)(this,void 0,void 0,function*(){o&&(yield this.storage.remove(C),yield this.storage.remove(b))}))}getCartDataFromApi(){return this.api.get("profile/cart-get/")}saveCart(c,_){this.api.post("profile/cart-save/",{cart:{version:this.CART_VERSION,normal:c,transfer:_}}).subscribe(x=>{console.log("Cart Save with items, ",c," and response, ",x)})}addToCart(c){this.determineCart(c.isTransfer).addItem(c)}removeItem(c,_=!1){this.determineCart(_).removeItem(c)}determineCart(c){return c?this.transferCart:this.cart}isInCart(c,_=!1){return this.determineCart(_).isInCart(c)}items(c=!1){return JSON.parse(this.determineCart(c).toJson())}updateItem(c,_){this.determineCart(_.isTransfer).updateItem(c,_)}empty(c=!1){this.determineCart(c).empty()}}return M.\u0275fac=function(c){return new(c||M)(t.LFG(p.K),t.LFG(d.O),t.LFG(g.$))},M.\u0275prov=t.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})()}}]);

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.