1"use strict";(self.webpackChunkLettsArtFirebase=self.webpackChunkLettsArtFirebase||[]).push([[9888],{8423:(Z,N,e)=>{e.d(N,{z:()=>x});var b=e(9671),A=e(655),T=e(4968),p=e(5620),g=e(4987),f=e(8088),C=e(1492),L=e(5924),d=e(3078),v=e(5226),E=e.n(v),l=e(1309);function s(r,i,n,o){return i<=0?0:r<=0?function c(r,i){return r<=0||i<=0?0:Math.min(i,r)}(i,o):r>=n?Math.min(Math.max(r,o),i):Math.min(r,i)}function u(r,i,n){return i<=0||n<=0?0:r>=i?i:Math.min(r+n,i)}function h(r,i,n=600){return r>=i-n}var t=e(5e3),k=e(2666),F=e(1273),S=e(8232),I=e(3749),P=e(2313),R=e(2932),U=e(8132),W=e(3229),B=e(9378),D=e(520),_=e(8653),Y=e(8044),j=e(252),M=e(9808);function J(r,i){if(1&r){const n=t.EpF();t.TgZ(0,"div",17)(1,"div",18),t._uU(2),t.ALo(3,"transloco"),t.qZA(),t.TgZ(4,"button",19),t.NdJ("click",function(){return t.CHM(n),t.oxw().updateWallet()}),t._uU(5),t.ALo(6,"transloco"),t.qZA()()}if(2&r){const n=t.oxw();t.xp6(2),t.AsE("",t.lcZ(3,4,"NFT.CREATOR.WALLET-LABEL"),": ",null==n.artist?null:n.artist.nftWallet,""),t.xp6(2),t.Q6J("disabled",n.updatingWallet),t.xp6(1),t.hij(" ",t.lcZ(6,6,"NFT.CREATOR.UPDATE-WALLET")," ")}}const V=function(r){return{"background-image":r}};function H(r,i){if(1&r&&t._UZ(0,"div",29),2&r){const n=t.oxw().$implicit,o=t.oxw(2);t.Q6J("ngStyle",t.VKq(1,V,"url("+o.artworkPreview(n)+")"))}}function z(r,i){if(1&r&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&r){const n=t.oxw().$implicit;t.xp6(1),t.hij(" \u2022 ",n.priceLabel(),"")}}function $(r,i){if(1&r){const n=t.EpF();t.TgZ(0,"div",22),t.YNc(1,H,1,3,"div",23),t.TgZ(2,"div",24)(3,"div",25),t._uU(4),t.qZA(),t.TgZ(5,"div",26),t._uU(6),t.ALo(7,"transloco"),t.ALo(8,"transloco"),t.YNc(9,z,2,1,"span",27),t.qZA()(),t.TgZ(10,"button",28),t.NdJ("click",function(){const w=t.CHM(n).$implicit;return t.oxw(2).configureNft(w)}),t._uU(11),t.ALo(12,"transloco"),t.qZA()()}if(2&r){const n=i.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",o.artworkPreview(n)),t.xp6(3),t.Oqu(n.title||"Untitled artwork"),t.xp6(2),t.hij(" ",n.enableNft?t.lcZ(7,5,"NFT.CREATOR.ENABLED"):t.lcZ(8,7,"NFT.CREATOR.NOT-ENABLED")," "),t.xp6(3),t.Q6J("ngIf",n.priceLabel()),t.xp6(2),t.hij(" ",t.lcZ(12,9,"NFT.CREATOR.CONFIGURE")," ")}}function Q(r,i){if(1&r&&(t.TgZ(0,"div",20),t.YNc(1,$,13,11,"div",21),t.qZA()),2&r){const n=t.oxw();t.xp6(1),t.Q6J("ngForOf",n.visibleArtworks)("ngForTrackBy",n.trackArtwork)}}function K(r,i){1&r&&(t.TgZ(0,"div",30),t._uU(1),t.ALo(2,"transloco"),t.qZA()),2&r&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"NFT.CREATOR.NO-ARTWORKS")))}function G(r,i){1&r&&(t.TgZ(0,"div",31),t._uU(1),t.ALo(2,"transloco"),t.qZA()),2&r&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"NFT.CREATOR.MINTED-EMPTY")))}function X(r,i){if(1&r){const n=t.EpF();t.TgZ(0,"div")(1,"button",44),t.NdJ("click",function(){t.CHM(n);const a=t.oxw().$implicit;return t.oxw(2).mintNFT(a)}),t._uU(2,"Mint NFT"),t.qZA()()}}function q(r,i){if(1&r&&(t.TgZ(0,"nb-card",34)(1,"nb-card-header"),t._uU(2),t.qZA(),t.TgZ(3,"nb-card-body",35)(4,"div",36)(5,"div"),t._UZ(6,"img",37),t.qZA(),t.TgZ(7,"div",38),t._UZ(8,"div",39),t.TgZ(9,"div",40)(10,"div",41),t._uU(11,"Token Address: "),t.TgZ(12,"a",42),t._uU(13),t.qZA()(),t.YNc(14,X,3,0,"div",27),t.TgZ(15,"div",43),t._uU(16),t.qZA(),t.TgZ(17,"div",43),t._uU(18),t.qZA(),t.TgZ(19,"div",43),t._uU(20),t.qZA(),t.TgZ(21,"div"),t._uU(22,"symbol: LETTS_ART"),t.qZA(),t.TgZ(23,"div")(24,"a",42),t._uU(25,"Token Link"),t.qZA()(),t.TgZ(26,"div",43),t._uU(27),t.qZA(),t.TgZ(28,"div")(29,"a",42),t._uU(30,"View on LettsArt"),t.qZA()()()()()(),t._UZ(31,"nb-card-footer"),t.qZA()),2&r){const n=i.$implicit;t.xp6(2),t.hij(" ",null==n?null:n.meta_name," "),t.xp6(4),t.s9C("src",null==n?null:n.meta_image,t.LSH),t.xp6(2),t.Q6J("innerHTML",null==n?null:n.meta_description,t.oJD),t.xp6(4),t.MGl("href","https://explorer.solana.com/address/",null==n?null:n.token_address,"",t.LSH),t.xp6(1),t.hij(" ",null==n?null:n.token_address,""),t.xp6(1),t.Q6J("ngIf",!(null!=n&&n.token_address)),t.xp6(2),t.hij("Mint Block Number : ",null==n?null:n.block_number_minted,""),t.xp6(2),t.hij("owner_of: ",null==n?null:n.owner_of,""),t.xp6(2),t.hij("block number : ",n.block_number,""),t.xp6(4),t.s9C("href",null==n?null:n.token_uri,t.LSH
1),t.xp6(3),t.hij("synced_at: ",n.synced_at,""),t.xp6(2),t.s9C("href",null==n?null:n.meta_lettsArt,t.LSH)}}function tt(r,i){if(1&r&&(t.TgZ(0,"div",32),t.YNc(1,q,32,12,"nb-card",33),t.qZA()),2&r){const n=t.oxw();t.xp6(1),t.Q6J("ngForOf",n.visibleNfts)("ngForTrackBy",n.trackNft)}}class nt{constructor(){this.meta_name=null,this.meta_description=null,this.meta_lettsArt=null,this.meta_image=null,this.meta_properties={},this.meta_sellerFeeBasisPoints=0,this.token_address=null,this.token_id=null,this.block_number_minted=null,this.owner_of=null,this.block_number=null,this.amount=null,this.contract_type=null,this.name=null,this.symbol=null,this.token_uri=null,this.synced_at=null,this.is_valid=null,this.syncing=null,this.frozen=null,this.artworkId=null,this.orderId=null,this.creatorId=null,this.collectorId=null}}let x=class{constructor(i,n,o,a,w,y,O,it,et,rt,ot){this.store=i,this.translocoService=n,this.logger=o,this.nftService=a,this.userService=w,this.titleService=y,this.artworkService=O,this.orderService=it,this.analyticsService=et,this.router=rt,this.http=ot,this.minting=!1,this.nftArray=[],this.visibleNfts=[],this.platform=null,this.artworks=[],this.visibleArtworks=[],this.activeTab="artwork",this.updatingWallet=!1,this.pageSize=24,this.artworkVisibleCount=0,this.nftVisibleCount=0,this.store.pipe((0,p.Ys)(C.ek),(0,g.t)(this)).subscribe(m=>this.platform=m),this.store.pipe((0,p.Ys)(L.EZ),(0,g.t)(this)).subscribe(m=>{const st=this.artworks.length;this.artworks=(m||[]).map(lt=>f.iB.hydrate(lt)),this.artworkVisibleCount=s(this.artworkVisibleCount,this.artworks.length,st,this.pageSize),this.visibleArtworks=this.artworks.slice(0,this.artworkVisibleCount),setTimeout(()=>this.maybeLoadMore())}),this.store.pipe((0,p.Ys)(C.sF),(0,g.t)(this)).subscribe(m=>{this.titleService.setTitle((null==m?void 0:m.galleryName)?`NFTs - ${m.galleryName}`:"LettsArt NFTs"),m&&m!=this.artist&&(this.artist=m,this.artist.nftWallet&&this.getNfts())})}ngOnInit(){var i=this;return(0,b.Z)(function*(){i.analyticsService.pageView("NFT Admin List"),i.artist&&!i.artist.nftWallet&&i.updateWallet()})()}ngAfterViewInit(){this.bindLayoutScroll()}updateWallet(){var i;!this.artist||this.updatingWallet||E().fire({title:this.translocoService.translate("NFT.CREATOR-WALLET-TITLE"),text:this.translocoService.translate("NFT.CREATOR-WALLET-TEXT"),icon:"question",input:"text",inputValue:(null===(i=this.artist)||void 0===i?void 0:i.nftWallet)?this.artist.nftWallet:"",showCancelButton:!0,customClass:{confirmButton:"btn btn-primary swal-button",cancelButton:"btn btn-secondary swal-button"},buttonsStyling:!1,confirmButtonText:this.translocoService.translate("COMMON.SAVE"),cancelButtonText:this.translocoService.translate("COMMON.CANCEL")}).then(n=>{const o="string"==typeof n.value?n.value.trim():"";!o||this.saveWallet(o)})}saveWallet(i){!this.artist||(this.updatingWallet=!0,this.nftService.checkAddress(i).subscribe({next:n=>{if(!0===n){const o=Object.assign(new f.xh,this.artist);o.nftWallet=i,this.store.dispatch(new l.O$(o)),this.store.dispatch(new d.Ff(this.translocoService.translate("NFT.CREATOR.WALLET-UPDATED"))),this.getNfts()}else this.store.dispatch(new d.vX(this.translocoService.translate("NFT.CREATOR.WALLET-INVALID")));this.updatingWallet=!1},error:()=>{this.store.dispatch(new d.vX(this.translocoService.translate("NFT.CREATOR.WALLET-INVALID"))),this.updatingWallet=!1}}))}configureNft(i){!(null==i?void 0:i.uid)||(this.store.dispatch(new d.PE(i)),this.router.navigate(["/admin/artwork",i.uid,"nft"],{queryParams:{returnTo:this.router.url}}))}artworkPreview(i){return null==i?void 0:i.previewImage()}changeTab(i){var n;const o=(null==i?void 0:i.tabId)||(null===(n=null==i?void 0:i.tab)||void 0===n?void 0:n.tabId);if("minted"===o||"artwork"===o)this.activeTab=o;else{const a=this.translocoService.translate("NFT.CREATOR.TAB-MINTED");this.activeTab=(null==i?void 0:i.tabTitle)===a?"minted":"artwork"}this.maybeLoadMore()}onWindowScroll(){this.maybeLoadMore()}trackArtwork(i,n){var o;return null!==(o=null==n?void 0:n.uid)&&void 0!==o?o:i}trackNft(i,n){return(null==n?void 0:n.token_address)||(null==n?void 0:n.token_uri)||(null==n?void 0:n.artworkId)||i}bindLayoutScroll(){if("undefined"==typeof document)return;const i=document.querySelector(".scrollable-container");!i||(0,T.R)(i,"scroll").pipe((0,g.t)(this)).subscribe(()=>{this.maybeLoadMore()})}maybeLoadMore(){if("undefined"==typeof window||"undefined"==typeof document)return;const i=document.querySelector(".scrollable-container");i&&i.scrollHeight>i.clientHeight?h(i.scrollTop+i.clientHeight,i.scrollHeight)&&this.loadMore():h(window.innerHeight+window.scrollY,document.documentElement.scrollHeight)&&this.loadMore()}loadMore(){if("minted"===this.activeTab){const n=u(this.nftVisibleCount,this.nftArray.length,this.pageSize);if(n===this.nftVisibleCount)return;return this.nftVisibleCount=n,void(this.visibleNfts=this.nftArray.slice(0,this.nftVisibleCount))}const i=u(this.artworkVisibleCount,this.artworks.length,this.pageSize);i!==this.artworkVisibleCount&&(this.artworkVisibleCount=i,this.visibleArtworks=this.artworks.slice(0,this.artworkVisibleCount))}getNfts(){this.nftService.getCreatorNfts().subscribe({next:i=>{if(this.nftArray=[],this.visibleNfts=[],this.nftVisibleCount=0,i&&i.length>0)for(let n of i){const o=Object.assign(new nt,n);o.token_address=n.nftAddress,o.token_uri=n.nftMetadataUrl,o.token_uri?this.nftService.getUri(o.token_uri).subscribe({next:a=>{this.logger.log(JSON.stringify(a)),o.meta_description=a.description,o.meta_image=a.image,o.meta_name=a.name,o.meta_lettsArt=a.external_url,o.meta_sellerFeeBasisPoints=a.seller_fee_basis_points,this.appendNft(o)},error:a=>{this.appendNft(o)}}):this.appendNft(o),this.logger.log(JSON.stringify(n))}},error:i=>{}})}appendNft(i){const n=this.nftArray.length;this.nftArray=[...this.nftArray,i],this.nftVisibleCount=s(this.nftVisibleCount,this.nftArray.length,n,this.pageSize),this.visibleNfts=this.nftArray.slice(0,this.nftVisibleCount),setTimeout(()=>this.maybeLoadMore())}mintNFT(i){var n=this;return(0,b.Z)(function*(){n.minting=!0,i.artworkId&&i.orderId&&(!n.artist||n.artist.uid!=i.creatorId||n.artworkService.getById(i.artworkId).subscribe({next:o=>{i.collectorId&&n.userService.getUser({uid:i.collectorId}).subscribe({next:w=>{i.orderId&&n.orderService.getUserOrder(i.orderId).subscribe({next:y=>{n.store.dispatch(new d.Ff("Got order")),o&&n.artist&&y&&n.nftService.mintNft(o,w,n.artist,y).subscribe({next:O=>{n.store.dispatch(new d.Ff("NFT minting has started")),n.minting=!1},error:O=>{n.store.dispatch(new d.vX(`Error minting NFT: ${O.error}`)),n.minting=!1}})},error:y=>{n.store.dispatch(new d.vX("Error getting order")),n.minting=!1}})},error:w=>{n.store.dispatch(new d.vX("Error getting user")),n.minting=!1}})},error:o=>{n.store.dispatch(new d.vX("Error getting artwork")),n.minting=!1}}))})()}};x.\u0275fac=function(i){return new(i||x)(t.Y36(p.yh),t.Y36(k.Vn),t.Y36(F.m),t.Y36(S._),t.Y36(I.K),t.Y36(P.Dx),t.Y36(R.O),t.Y36(U.p),t.Y36(W.B),t.Y36(B.F0),t.Y36(D.eN))},x.\u0275cmp=t.Xpm({type:x,selectors:[["app-admin-nft-list"]],hostBindings:function(i,n){1&i&&t.NdJ("scroll",function(){return n.onWindowScroll()},!1,t.Jf7)("resize",function(){return n.onWindowScroll()},!1,t.Jf7)},decls:28,vars:21,consts:[[1,"row"],[1,"col-12"],[1,"show-mobile","mb-2"],[1,"flex","flex-row","justify-content-between","mt-4"],[3,"title","subtitle","showSubscription","showSubtitle"],["class","nft-wallet-row",4,"ngIf"],[1,"form-tab","nft-tabs",3,"changeTab"],["tabId","artwork",3,"tabTitle"],[1,"nft-enable"],[1,"nft-enable-copy"],[1,"nft-enable-title"],[1,"nft-enable-note"],["class","nft-artw
1ork-list",4,"ngIf","ngIfElse"],["noArtworks",""],["tabId","minted",3,"tabTitle"],["class","nft-empty minted-empty",4,"ngIf"],["class","nft-view",4,"ngIf"],[1,"nft-wallet-row"],[1,"nft-wallet"],["type","button",1,"btn","btn-secondary",3,"disabled","click"],[1,"nft-artwork-list"],["class","nft-artwork-row",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nft-artwork-row"],["class","nft-artwork-thumb",3,"ngStyle",4,"ngIf"],[1,"nft-artwork-meta"],[1,"nft-artwork-title"],[1,"nft-artwork-status"],[4,"ngIf"],["type","button",1,"btn","btn-primary",3,"click"],[1,"nft-artwork-thumb",3,"ngStyle"],[1,"nft-empty"],[1,"nft-empty","minted-empty"],[1,"nft-view"],["class","nft-card",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nft-card"],[1,"nft-card-body"],[1,"nft-container"],[1,"nft-image",3,"src"],[1,"nft-details"],[1,"nft-description",3,"innerHTML"],[1,"nft-detail"],[2,"word-break","break-all"],["target","_blank",3,"href"],[2,"display","none"],[1,"btn","btn-primary",3,"click"]],template:function(i,n){if(1&i&&(t.TgZ(0,"div",0)(1,"div",1)(2,"nb-card")(3,"nb-card-header")(4,"div"),t._UZ(5,"app-search-bar",2),t.qZA(),t.TgZ(6,"div",3),t._UZ(7,"app-title-section",4),t.qZA()(),t.TgZ(8,"nb-card-body"),t.YNc(9,J,7,8,"div",5),t.TgZ(10,"nb-tabset",6),t.NdJ("changeTab",function(a){return n.changeTab(a)}),t.TgZ(11,"nb-tab",7),t.ALo(12,"transloco"),t.TgZ(13,"section",8)(14,"div",9)(15,"div",10),t._uU(16),t.ALo(17,"transloco"),t.qZA(),t.TgZ(18,"div",11),t._uU(19),t.ALo(20,"transloco"),t.qZA()(),t.YNc(21,Q,2,2,"div",12),t.YNc(22,K,3,3,"ng-template",null,13,t.W1O),t.qZA()(),t.TgZ(24,"nb-tab",14),t.ALo(25,"transloco"),t.YNc(26,G,3,3,"div",15),t.YNc(27,tt,2,2,"div",16),t.qZA()()()()()()),2&i){const o=t.MAs(23);t.xp6(7),t.Q6J("title",n.translocoService.translate("NFT.CREATOR.TITLE"))("subtitle",n.translocoService.translate("NFT.CREATOR.SUBTITLE"))("showSubscription",!1)("showSubtitle",!0),t.xp6(2),t.Q6J("ngIf",null==n.artist?null:n.artist.nftWallet),t.xp6(2),t.Q6J("tabTitle",t.lcZ(12,13,"NFT.CREATOR.TAB-ARTWORK")),t.xp6(5),t.Oqu(t.lcZ(17,15,"NFT.CREATOR.ENABLE-TITLE")),t.xp6(3),t.Oqu(t.lcZ(20,17,"NFT.CREATOR.ENABLE-COPY")),t.xp6(2),t.Q6J("ngIf",n.artworks.length)("ngIfElse",o),t.xp6(3),t.Q6J("tabTitle",t.lcZ(25,19,"NFT.CREATOR.TAB-MINTED")),t.xp6(2),t.Q6J("ngIf",!n.nftArray.length),t.xp6(1),t.Q6J("ngIf",n.nftArray.length)}},directives:[_.Asz,_.ndF,Y.N,j.l,_.yKW,M.O5,_.kyn,_.TR4,M.sg,M.PC,_.XWE],pipes:[k.Ot],styles:[".nft-wallet-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}.nft-tabs[_ngcontent-%COMP%]{margin-top:8px}.nft-enable[_ngcontent-%COMP%]{margin-bottom:24px}.nft-enable-title[_ngcontent-%COMP%]{font-weight:700;font-size:16px}.nft-enable-note[_ngcontent-%COMP%], .nft-artwork-status[_ngcontent-%COMP%], .nft-empty[_ngcontent-%COMP%]{color:#666}.nft-wallet[_ngcontent-%COMP%]{margin-top:8px;font-size:16px;word-break:break-all}.nft-artwork-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px;margin-top:16px}.nft-artwork-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;padding:12px;border:#DEDEDE 1px solid;background:rgba(211,211,211,.05)}.nft-artwork-thumb[_ngcontent-%COMP%]{width:64px;height:64px;flex-shrink:0;background-size:cover;background-position:center;background-repeat:no-repeat}
1.nft-artwork-meta[_ngcontent-%COMP%]{flex:1;min-width:0}.nft-artwork-title[_ngcontent-%COMP%]{font-weight:700}.nft-empty[_ngcontent-%COMP%]{padding:12px 0}.minted-empty[_ngcontent-%COMP%]{padding-top:8px}.nft-view[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;padding-top:20px;gap:50px}.nft-card[_ngcontent-%COMP%]{overflow-wrap:break-word;width:650px;background-color:#d3d3d30d;margin-bottom:10px;margin-top:20px;border:#DEDEDE 1px solid}.nft-card-body[_ngcontent-%COMP%]{margin:auto;display:flex;flex-direction:column;justify-content:center}.nft-image[_ngcontent-%COMP%]{max-height:20vh;max-width:20vw;object-fit:fill;background-size:contain;background-repeat:no-repeat;background-position:center;margin-bottom:20px}.nft-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;margin:10px;gap:20px}.nft-details[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:10px}.nft-description[_ngcontent-%COMP%]{font-size:16px;font-weight:400;width:100%;overflow:hidden;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical}@media screen and (max-width: 768px){.nft-artwork-row[_ngcontent-%COMP%]{flex-wrap:wrap}.nft-view[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;padding-top:20px;gap:30px}.nft-container[_ngcontent-%COMP%]{flex-direction:column}.nft-card[_ngcontent-%COMP%]{overflow-wrap:break-word;width:100%}.nft-card-body[_ngcontent-%COMP%]{margin:auto;display:flex;flex-direction:column;justify-content:center;width:100%}.nft-image[_ngcontent-%COMP%]{width:70vw;max-width:revert;max-height:revert}}"]}),x=(0,A.gn)([(0,g.c)()],x)},9888:(Z,N,e)=>{e.r(N),e.d(N,{NftAdminListModule:()=>c});var b=e(9808),A=e(2666),T=e(9378),p=e(2846),g=e(8423),f=e(5e3);const C=[{path:"",canActivate:[p.a],component:g.z}];let L=(()=>{class s{}return s.\u0275fac=function(h){return new(h||s)},s.\u0275mod=f.oAB({type:s}),s.\u0275inj=f.cJS({imports:[[T.Bz.forChild(C)],T.Bz]}),s})();var d=e(8653),v=e(8654),E=e(8835),l=e(6046);let c=(()=>{class s{}return s.\u0275fac=function(h){return new(h||s)},s.\u0275mod=f.oAB({type:s}),s.\u0275inj=f.cJS({imports:[[b.ez,L,v.T,E.b,A.y4,d.zyh,d.EoG,l.W]]}),s})()},8232:(Z,N,e)=>{e.d(N,{_:()=>d});var b=e(520),A=e(9646),T=e(5620),p=e(2340),g=e(1492),f=e(5e3),C=e(2962),L=e(1273);let d=(()=>{class v{constructor(l,c,s,u){this.firestore=l,this.http=c,this.store=s,this.loggerService=u,this.store.pipe((0,T.Ys)(g.HF)).subscribe(h=>{this.user=h}),this.store.pipe((0,T.Ys)(g.sF)).subscribe(h=>{this.artist=h})}mintNft(l,c,s,u){return l.enableNft&&((null==c?void 0:c.walletAddress)||(null==c?void 0:c.solanaPublicKey))?this.http.post(`${p.N.firebaseFunction}/artist/${l.artist_id}/nft-mint`,{nftObj:{artistId:l.artist_id,itemId:l.uid,orderId:null==u?void 0:u.uid,nft:{artistAddress:null==s?void 0:s.nftWallet}}}):(0,A.of)([])}getUri(l){return this.http.get(l)}getCollectorNfts(){if(this.user&&this.user.uid){const l=(new b.WM).set("Content-Type","application/json");return this.http.get(`${p.N.firebaseFunction}/collectors/${this.user.uid}/get-nfts`,{headers:l})}return(0,A.of)([])}getCreatorNfts(){var l;if(this.user&&this.user.uid){const c=(new b.WM).set("Content-Type","application/json"),s=`${p.N.firebaseFunction}/artists/${null===(l=this.artist)||void 0===l?void 0:l.uid}/get-nfts`;return this.http.get(s,{headers:c})}return(0,A.of)([])}checkAddress(l){return this.http.get(`${p.N.firebaseFunction}/nft/check-nft-address/${l}`)}}return v.\u0275fac=function(l){return new(l||v)(f.LFG(C.ST),f.LFG(b.eN),f.LFG(T.yh),f.LFG(L.m))},v.\u0275prov=f.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})()}}]);
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.