PageSourceSearch

https://web.tide.co/2143.908b69d65041e6a5.js

js tide.co collected 2026-10-02 03:12:20 UTC 13,843 bytes, 1 lines download raw bytes

1(self.webpackChunkwebapp=self.webpackChunkwebapp||[]).push([[2143,24924],{70653(C,p,i){i.d(p,{o:()=>l});var l=function(e){return e.Slide="slide",e.Banner="banner",e.CustomLayout="customLayout",e}(l||{})},37400(C,p,i){i.d(p,{R:()=>a});var l=i(29604),e=i(12652),c=i(35723),S=i(51908),r=i(44238);let a=(()=>{class h{static{this.\u0275fac=function(o){return new(o||h)}}static{this.\u0275mod=r.\u0275\u0275defineNgModule({type:h})}static{this.\u0275inj=r.\u0275\u0275defineInjector({imports:[l.CommonModule,c.wr,c.tH,c.dc,S.t,e.MatIconModule]})}}return h})()},92790(C,p,i){i.d(p,{F:()=>D});var l=i(29604),e=i(48673),c=i(81380),S=i(7535),r=i(88830),a=i(2814),h=i(18921),I=i(60196),T=i(77902),o=i(9411),y=i(10313),t=i(44238),d=i(51462),g=i(43604),O=i(35729),R=i(66992),P=i(63880),A=i(59868),L=i(34491);let $=(()=>{class n{#e=L.k.catalogue.mediaType;#t=(0,t.inject)(R.HttpClient);#i=(0,t.inject)(P.ENVIRONMENT);getProductCatalogue(){const v=(0,A.getApiV4RequestOptions)({accept:this.#e,contentType:this.#e});return this.#t.get(`${this.#i.API_V4_URL}/ecom-order/catalogues`,v)}static{this.\u0275fac=function(m){return new(m||n)}}static{this.\u0275prov=t.\u0275\u0275defineInjectable({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var U=i(71297),j=i(25710),F=i(72703);let B=(()=>{class n{constructor(v,m,f,_,w,E,x,N,b){this._actions$=v,this._instantCheckoutService=m,this._store=f,this._trackingService=_,this._snackbarService=w,this._sellersService=E,this._merchantAcquiringService=x,this._onboardingProgressFacade=N,this._salesTaxApiService=b,this.getInstantCheckoutProducts$=(0,e.createEffect)(()=>this._actions$.pipe((0,e.ofType)(o.ic),(0,a.switchMap)(()=>this._instantCheckoutService.getInstantCheckoutProducts().pipe((0,a.tap)(s=>{this._onboardingProgressFacade.updateProgress(y.m.PRODUCT_SERVICE,s?.products?.length?y.Z.COMPLETED:y.Z.INCOMPLETE)}),(0,a.map)(s=>o.L4({products:s?.products||[]})),(0,a.catchError)(s=>(0,r.of)(o.s4(s))))))),this.getInstantCheckoutItemById$=(0,e.createEffect)(()=>this._actions$.pipe((0,e.ofType)(o.pD),(0,a.switchMap)(s=>this._instantCheckoutService.getItemById(s.itemId).pipe((0,a.map)(u=>o.MG({product:u})),(0,a.catchError)(u=>(0,r.of)(o.xf(u))))))),this.updateProdutSellableOnlineToggle$=(0,e.createEffect)(()=>this._actions$.pipe((0,e.ofType)(o.DE),(0,a.switchMap)(s=>this._instantCheckoutService.updateProdutSellableOnlineToggle(s.sellableOnline,s.productId).pipe((0,a.switchMap)(u=>[o.uf({...u,id:s.productId}),o.ic(),(0,S.a)(s.sellableOnline?{payload:{message:T.mU.SELLABLE_ONLINE_TOGGLE_SUCCESS}}:{payload:{message:T.mU.SELLABLE_ONLINE_TOGGLE_OFF_SUCCESS}})].filter(Boolean)),(0,a.tap)(()=>this._trackingService.trackEvent(I.c.toggleSellableProduct,{productId:s.productId,toggled:s.sellableOnline})),(0,a.catchError)(u=>(0,r.of)(o.vo({error:u}))),(0,a.finalize)(()=>{this._store.dispatch(o.vD({productId:s.productId}))}))))),this.getVatRates$=(0,e.createEffect)(()=>this._actions$.pipe((0,e.ofType)(o.hP),(0,a.switchMap)(()=>this._salesTaxApiService.getVatRates().pipe((0,a.map)(s=>o.As({data:s})),(0,a.catchError)(s=>(0,r.of)(o.l3(s))))))),this.loadTaxNumber$=(0,e.createEffect)(()=>this._actions$.pipe((0,e.ofType)(o.VB),(0,a.switchMap)(()=>this._salesTaxApiService.getTaxNumber().pipe((0,a.map)(s=>o.Ug({data:s})),(0,a.catchError)(s=>(0,r.of)(o.h7(s))))))),this.deleteItem$=(0,e.createEffect)(()=>this._actions$.pipe((0,e.ofType)(o.e_),(0,a.switchMap)(s=>this._instantCheckoutService.deleteTicItem(s.itemId).pipe((0,a.switchMap)(()=>[o.lX(),o.ic()]),(0,a.tap)(()=>{this._snackbarService.open({message:"Item deleted"}),this._trackingService.trackEvent(I.c.itemDeleted)}),(0,a.catchError)(u=>(0,r.of)(o.IQ({error:u}))))))),this.uploadMediaList$=(0,e.createEffect)(()=>this._actions$.pipe((0,e.ofType)(o.oV),(0,a.mergeMap)(s=>this._triggerMediaUploadRequest(s.mediaList)))),this.retryFailedMediaUpload$=(0,e.createEffect)(()=>this._actions$.pipe((0,e.ofType)(o.ZE),(0,a.mergeMap)(s=>this._triggerMediaUploadRequest(s.mediaListForReUpload)))),this.getInstantCheckoutProductCatalogue$=(0,e.createEffect)(()=>this._actions$.pipe((0,e.ofType)(o.DA.load),(0,a.switchMap)(()=>this._sellersService.getProductCatalogue().pipe((0,a.map)(({data:s})=>o.DA.success({data:s})),(0,a.catchError)(s=>(0,r.of)(o.DA.error({error:s}
1))))))),this.getFreeEcomPaylinksCount$=(0,e.createEffect)(()=>this._actions$.pipe((0,e.ofType)(o.VS.load),(0,a.switchMap)(()=>this._merchantAcquiringService.getFreeEcomPaylinksCount(h.zP.ECOM).pipe((0,a.map)(s=>o.VS.success(s)),(0,a.catchError)(s=>(0,r.of)(o.VS.error(s))))))),this.fetchItemStockHistory$=(0,e.createEffect)(()=>this._actions$.pipe((0,e.ofType)(o.M8.load),(0,a.switchMap)(({variantId:s,nextPageLink:u})=>this._instantCheckoutService.getItemStockHistory(s,u).pipe((0,a.map)(M=>o.M8.success({data:M.data.stockHistory,nextPageLink:M.links?.next??null})),(0,a.catchError)(M=>(0,r.of)(o.M8.error(M)))))))}_triggerMediaUploadRequest(v){const m=v.map(f=>this._instantCheckoutService.uploadMedia(f.file).pipe((0,a.map)(_=>o.Hu({uploadedMedia:{..._,clientId:f.clientId,file:f.file,dataUrl:f.dataUrl}})),(0,a.catchError)(()=>(0,r.of)(o.eR({clientId:f.clientId??""})))));return(0,r.forkJoin)(m).pipe((0,a.mergeMap)(f=>f))}static{this.\u0275fac=function(m){return new(m||n)(t.\u0275\u0275inject(e.Actions),t.\u0275\u0275inject(d.h),t.\u0275\u0275inject(c.Store),t.\u0275\u0275inject(g.TrackingService),t.\u0275\u0275inject(O.z),t.\u0275\u0275inject($),t.\u0275\u0275inject(U.B),t.\u0275\u0275inject(j.T),t.\u0275\u0275inject(F.Z))}}static{this.\u0275prov=t.\u0275\u0275defineInjectable({token:n,factory:n.\u0275fac})}}return n})();var V=i(84696);let D=(()=>{class n{static{this.\u0275fac=function(m){return new(m||n)}}static{this.\u0275mod=t.\u0275\u0275defineNgModule({type:n})}static{this.\u0275inj=t.\u0275\u0275defineInjector({imports:[l.CommonModule,c.StoreModule.forFeature(V.xT,V.Ff),e.EffectsModule.forFeature([B])]})}}return n})()},60196(C,p,i){i.d(p,{c:()=>l});var l=function(e){return e.toolsMenuClick="fsTideInstantCheckoutToolsMenuClick",e.emptyStateAddItemClick="fsTideInstantCheckoutEmptyStateAddItemClick",e.addItemClick="fsTideInstantCheckoutAddNewItemClick",e.productEntityTypeSelected="fsTideInstantCheckoutProductSelected",e.serviceEntityTypeSelected="fsTideInstantCheckoutServiceSelected",e.toggleSellableProduct="fsTideInstantCheckoutToggleSellableProduct",e.itemCreated="fsTideInstantCheckoutItemCreated",e.itemNotCreated="fsTideInstantCheckoutItemNotcreated",e.toggleSellableProductDialogCancel="fsTideInstantCheckoutToggleSellableProductDialogCancel",e.copyLink="fsTideInstantCheckoutCopyLink",e.editClicked="fsTideInstantCheckoutEditClicked",e.manageStockClicked="fsCatalogueManageStockOptionClicked",e.manageStockScreenViewed="fsCatalogueManageStockScreenViewed",e.itemEdited="fsTideInstantCheckoutProductEdited",e.itemNotEdited="fsTideInstantCheckoutProductNotEdited",e.itemDeleted="fsTideInstantCheckoutProductDeleted",e.previewClicked="fsTideInstantCheckoutPreviewClicked",e.TICStoryboardView="fsTICStoryboardcardviewed",e.TICStoryboardClicked="fsTICTakeaTourClicked",e.TICStoryboardCancel="fsTICStoryboardcanceled",e.TICStoryboardCTA="fsTICStoryBoardGetStartedClicked",e.ProductListingScreenViewed="fsTideInstantCheckoutProductListingScreenViewed",e.addMediaScreenViewed="fsTideInstantCheckoutAddMediaScreenViewed",e.addImageClicked="fsTideInstantCheckoutAddImageClick",e.imageDeleted="fsTideInstantCheckoutImageDeleted",e.imageReordered="fsTideInstantCheckoutImageReordered",e.saveMediaClicked="fsTideInstantCheckoutProductMediaSaveClicked",e.FreeTransactionsOfferBannerViewed="fsTideInstantCheckoutFreeTransactionsOfferBannerViewed",e.FreeTransactionsOfferBannerDismissed="fsTideInstantCheckoutFreeTransactionsOfferBannerDismissed",e.FreeTransactionsCounterViewed="fsTideInstantCheckoutFreeTransactionsCounterViewed",e.FreeTransactionsAvailedBannerViewed="fsTideInstantCheckoutFreeTransactionsAvailedBannerViewed",e.FreeTransactionsAvailedBannerDismissed="fsTideInstantCheckoutFreeTransactionsAvailedBannerDismissed",e.FreeTransactionsOfferScreenViewed="fsTideInstantCheckoutFreeTransactionsOfferScreenViewed",e.TICCataloguePopUpView="fsTICCataloguePopUpView",e.TICCatalogueToggle="fsTICCatalogueToggle",e.TICCatalogueUnpublishModal="fsTICCatalogueUnpublishModal",e.TICCatalogueLinkCopied="fsTICCatalogueLinkCopied",e.businessDescriptionUpdated="businessDescriptionUpdated",e.TICCatalogueQRButtonClicked="fsTICCatalogueQRCodeButtonClicked",e.TICCatalogueQRCodeViewed="fsTICCatalogueQRCodeViewed",e.fsCatalogueStockToggle="fsCatalogueStockToggle",e.fsCatalogueStockQuantityEntered="fsCatalogueStockQuantityEntered",e.fsCatalogueLowStockThresholdEntered="fsCatalogueLowStockThresholdEntered",e.fsCatalogueStockOverrideCheckbox="fsCatalogueStockOverrideCheckbox",e.fsCatalogueStockUpdated="fsCatalogueStockUpdated",e.fsCatalogueManageStockAdjustmentEntered="fsCatalogueManageStockAdjustmentEntered",e.fsCatalogueLowStockAlertBannerViewed="fsCatalogueLowStockAlertBannerViewed",e.fsCatalogueLowStockAlertBannerItemClicked="fsCatalogueLowStockAlertBannerItemClicked",e.fsCatalogueOutOfStockAlertBannerViewed="fsCatalogueOutOfStockAlertBannerViewed",e.fsCatalogueOutOfStockAlertBannerItemClicked="fsCatalogueOutOfStockAlertBannerItemClicked",e.fsCatalogueStockTooltipViewed="fsCatalogueStockTooltipViewed",e.fsCatalogueStockTooltipDismissed="fsCatalogueStockTooltipDismissed",e.fsCatalogueManageStockReasonEntered="fsCatalogueManageStockReasonEntered",e.fsCatalogueStockValidationThresholdGreaterError="fsCatalogueStockValidationThresholdGreaterError",e.fsCatalogueSearchSubmitted="fsCatalogueSearchSubmitted",e.fsCatalogueSearchEmptyScreen="fsCatalogueSearchEmptyScreen",e}(l||{})},34491(C,p,i){i.d(p,{k:()=>l});const l={v2:{mediaType:"application/vnd.tide.financial-services.products+json;
1version=2"},mediaType:"application/vnd.tide.financial-services.products+json;version=1",uploadMediaType:"application/vnd.tide.financial-services.media+json;version=1",seller:{mediaType:"application/vnd.tide.financial-services.sellers+json;version=1"},catalogue:{mediaType:"application/vnd.tide.financial-services.catalogues+json;version=1"},productVariant:{mediaType:"application/vnd.tide.financial-services.product.product-variants+json;version=1"}}},51462(C,p,i){i.d(p,{h:()=>T});var l=i(36351),e=i(63880),c=i(59868);const S={allowedFormats:"jpeg, png",maxFileSizeInMB:5,minHeight:450,minWidth:450,maxResizeHeight:1e3,maxResizeWidth:1e3};var r=i(34491),a=i(44238),h=i(1346),I=i(2140);let T=(()=>{class o{constructor(t,d,g){this._apiService=t,this._flagsService=d,this._environment=g}getTicRequestOptions(t){return(0,c.getApiV4RequestOptions)({accept:r.k.mediaType,contentType:r.k.mediaType,addIdempotencyKey:t})}getSellerRequestOptions(){return(0,c.getApiV4RequestOptions)({accept:r.k.seller.mediaType,contentType:r.k.seller.mediaType,addIdempotencyKey:!0})}getInstantCheckoutProducts(){return this._apiService.get(`${this._environment.API_V4_URL}/ecom-order/products`,this.getTicRequestOptions())}getItemById(t){return this._apiService.get(`${this._environment.API_V4_URL}/ecom-order/products/${t}`,this.getTicRequestOptions())}updateProdutSellableOnlineToggle(t,d){return this._apiService.patch(`${this._environment.API_V4_URL}/ecom-order/products/${d}`,{data:{sellableOnline:t}},this.getTicRequestOptions(!0))}getItemImageRestrictionConfig(){return this._flagsService.variation(l.S.TicItemImageConfig,S)}getSupportedImageMimeTypes(){return this.getItemImageRestrictionConfig().allowedFormats.split(",").map(t=>`image/${t.trim()}`).join(", ")}createTicItem(t){return this._apiService.post(`${this._environment.API_V4_URL}/ecom-order/products`,{data:t},this.getTicRequestOptions(!0))}updateTicItem(t,d){return this._apiService.patch(`${this._environment.API_V4_URL}/ecom-order/products/${t}`,{data:d},(0,c.getApiV4RequestOptions)({accept:r.k.v2.mediaType,contentType:r.k.v2.mediaType,addIdempotencyKey:!0}))}updateTicItemVariant(t,d){return this._apiService.patch(`${this._environment.API_V4_URL}/ecom-order/product-variants/${t}`,{data:{availability:d}},(0,c.getApiV4RequestOptions)({accept:r.k.productVariant.mediaType,contentType:r.k.productVariant.mediaType,addIdempotencyKey:!0}))}getItemStockHistory(t,d){return this._apiService.get(d?`${this._environment.API_HOST}${d}`:`${this._environment.API_V4_URL}/ecom-order/product-variants/${t}/stock-history`,{...(0,c.getApiV4RequestOptions)({accept:r.k.productVariant.mediaType,contentType:r.k.productVariant.mediaType,addIdempotencyKey:!0}),responsePassThrough:!0})}deleteTicItem(t){return this._apiService.delete(`${this._environment.API_V4_URL}/ecom-order/products/${t}`,this.getTicRequestOptions(!0))}isSupportedImageFileFormat(t){return-1!==this.getSupportedImageMimeTypes().search(t)}isValidImageFileSize(t){return t/1048576<=this.getItemImageRestrictionConfig().maxFileSizeInMB}uploadMedia(t){const d=(0,c.getApiV4RequestOptions)({accept:r.k.uploadMediaType,addIdempotencyKey:!0}),g=new FormData;return g.append("media",t,t.name),this._apiService.post(`${this._environment.API_V4_URL}/ecom-order/media`,g,d)}updateBusinessDescription(t){return this._apiService.put(`${this._environment.API_V4_URL}/ecom-order/sellers/me`,{data:t},this.getSellerRequestOptions())}getSeller(){return this._apiService.get(`${this._environment.API_V4_URL}/ecom-order/sellers/me`,this.getSellerRequestOptions())}updateCatalogue(t){return this._apiService.put(`${this._environment.API_V4_URL}/ecom-order/catalogues`,{data:t},(0,c.getApiV4RequestOptions)({accept:r.k.catalogue.mediaType,contentType:r.k.catalogue.mediaType,addIdempotencyKey:!0}))}static{this.\u0275fac=function(d){return new(d||o)(a.\u0275\u0275inject(h.G),a.\u0275\u0275inject(I.FlagsService),a.\u0275\u0275inject(e.ENVIRONMENT))}}static{this.\u0275prov=a.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})()}}]);

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.