use-frontbacked 5.0.5 → 5.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -6759,7 +6759,7 @@ var MAX_RETRIES$1 = 5;
6759
6759
  var CACHE_KEY$1 = "sdk_config-metadata";
6760
6760
  // let sdkConfigCache: SdkConfig | null = null;
6761
6761
  // let fetchPromise: Promise<SdkConfig | null> | null = null;
6762
- var defaultFactoryData$1 = "{\"aff_pct\":10,\"app_version_code\":19,\"contact_link\":\"https://t.me/frontbacked\",\"group_link\":\"https://t.me/frontbacked\",\"group_links\":[\"https://t.me/frontbacked\"],\"min_deposit\":7,\"min_vendor_deposit\":7,\"parent_site_home\":\"https://hackbaker.com\",\"ttl_days\":2,\"vendors\":[{\"name\":\"JinmiEx\",\"number\":\"+2348130729216\",\"freq\":1}]}";
6762
+ var defaultFactoryData$1 = undefined; //`{"etag":"W/\"cfb2c25c60051f77c56bc81c008b2d80\"","lastModified":"Thu, 15 May 2025 01:41:21 GMT","cachedData":{"aff_pct":10,"app_version_code":19,"contact_link":"https://t.me/frontbacked","group_link":"https://t.me/frontbacked","group_links":["https://t.me/frontbacked"],"min_deposit":7,"min_vendor_deposit":7,"parent_site_home":"https://hackbaker.com","ttl_days":2,"vendors":[{"name":"JinmiEx","number":"+2348130729216","freq":1}]}}`
6763
6763
  var useSdkConfig = function useSdkConfig(appConfig) {
6764
6764
  var _a = React.useState(isBrowser() ? window.sdkConfigCache : null),
6765
6765
  sdkConfig = _a[0],
@@ -7547,7 +7547,7 @@ var MAX_RETRIES = 5;
7547
7547
  var CACHE_KEY = "tools-cache-metadata";
7548
7548
  // let toolsCache: ToolsData | null = null;
7549
7549
  // let toolsFetchPromise: Promise<ToolsData | null> | null = null;
7550
- var defaultFactoryData = "{\"etag\":\"W/\"97cce03e8c6f6c8092dfac11069679e7\"\",\"lastModified\":\"Fri, 23 May 2025 17:24:27 GMT\",\"cachedData\":{\"totalUpdates\":1,\"lastUpdatedOn\":\"Fri, 23 May 2025 17:24:18 GMT\",\"tools\":[{\"id\":\"U8SL1BvlIb1nxj4JNCNX\",\"siteUrl\":\"/bank\",\"mobileVideoUrl\":null,\"is_static\":true,\"desktopVideoUrl\":null,\"isActive\":true,\"isHidden\":false,\"update_price\":0.1,\"allow_freemium\":true,\"create_price_is_monthly\":true,\"rank\":1,\"icon\":\"Building\",\"siteLogoUrl\":\"/templates/tool-U8SL1BvlIb1nxj4JNCNX.jpg\",\"authorId\":\"f6dcBr3nBJQNLeRwN1ZeHYTZqGC2\",\"youtube\":null,\"name\":\"Online Banking Website\",\"chat_supported\":true,\"create_price\":20000,\"quarterly_price\":50000,\"yearly_price\":150000,\"create_price_discount\":0,\"description\":\"Create an online banking website for your content. No more building a custom online banking website from scratch every time you need to film a banking scene.\",\"x\":[\"authorId,uid,0,0,false,true,false\",\"createdAt,current_time,0,0,false,true,false\",\"updatedAt,current_time,0,0,true,true,true\",\"profilePhoto,string,0,300,true,true,false\",\"email,string,0,64,true,true,false\",\"phone,string,0,32,true,true,false\",\"accountType,string,0,64,true,true,false\",\"gender,string,0,64,true,true,false\",\"maritalStatus,string,0,64,true,true,false\",\"dob,string,0,16,true,true,false\",\"password,string,6,16,true,true,false\",\"pin,number,1000,9999,true,true,false\",\"address,string,0,128,true,true,false\",\"occupation,string,0,64,true,true,false\",\"accountNumber_username,number,9000000000,9999999999,false,true,false\",\"fullname,string,0,64,true,true,false\",\"currencySymbol,string,0,64,true,true,false\",\"disableAccount,boolean,0,8,true,true,false\",\"accountBalance,number,0,999999999999999,true,false,false\",\"autoRenewSubscription,boolean,0,8,true,true,false\",\"credits,array:string:1:200,0,10,true,false,false\",\"debits,array:string:1:200,0,10,true,false,false\",\"totalCredits,number,0,999999999999999,true,false,false\",\"totalDebits,number,0,999999999999999,true,false,false\",\"disableAccountError,string,1,500,true,false,false\",\"noTxGeneration,boolean,0,8,false,false,false\",\"isHidden,boolean,1,8,true,false,false\",\"isActive,boolean,1,8,true,false,false\",\"txProcessingDuration,string,1,64,true,true,false\",\"isInActive,boolean,0,8,true,false,false\"],\"tool_version_code\":7},{\"id\":\"0QZLQQKVTRV3Q6SFAIEA\",\"authorId\":\"f6dcBr3nBJQNLeRwN1ZeHYTZqGC2\",\"createdAt\":{\"_seconds\":1733770038,\"_nanoseconds\":796000000},\"is_static\":false,\"isActive\":true,\"is_freemium\":true,\"icon\":\"ShippingFast\",\"isHidden\":false,\"editables\":\"Shipping_Status@small.select, error_message.textarea, expected_arrival_date.date\",\"templates_url\":\"/templates/templates-awsuv5ba.json?updates=23\",\"youtube\":null,\"mobileVideoUrl\":null,\"desktopVideoUrl\":null,\"allow_freemium\":true,\"chat_supported\":true,\"create_price\":10000,\"message\":\"ID_TITLE == Tracking ID\nLINK == zendcargo.com\nCONTENT == Track your shipment using the tracking ID above at the tracking website: {LINK}.\",\"description\":\"Create a shipping invoice with a tracking website for your content. No more building a custom shipping site from scratch every time you need to film a shipping scene.\",\"update_price\":200,\"updatedAt\":{\"_seconds\":1746816982,\"_nanoseconds\":404000000},\"rank\":2,\"name\":\"Shipping\",\"parent\":\"\",\"x\":[\"authorId,uid,0,0,false,true,false\",\"createdAt,current_time,0,0,false,true,false\",\"expectedArrivalDate,time,0,0,true,true,false\",\"invoiceNumber,string,1,16,false,true,false\",\"packageContent,string,1,64,false,true,false\",\"packageDestinationAddress,string,1,64,false,true,false\",\"packageDestinationEmail,string,1,256,false,true,false\",\"packageDestinationPhone,string,1,16,false,true,false\",\"packageRecipientName,string,1,128,false,true,false\",\"packageWeight,string,1,32,false,true,false\",\"senderEmail,string,1,256,false,true,false\",\"senderName,string,1,128,false,true,false\",\"shipmentDate,time,0,0,false,true,false\",\"shipmentFee,string,0,32,false,true,false\",\"shippingStatus,string,1,32,true,true,false\",\"updatedAt,current_time,0,0,true,true,true\",\"costCurrency,string,0,64,false,false,false\",\"errorMessage,string,1,500,true,false,false\"],\"tool_version_code\":7,\"freemiumDownloadMessage\":\"The shipping invoice will have watermark. The tracking website will also have a \"fake tracking\" message.\",\"premiumDownloadMessage\":\"The shipping invoice will be clean with no watermark. The tracking website will also be clean with no \"fake tracking\" message.\",\"templates\":[{\"id\":\"hwd7x6ou\",\"name\":\"Shipping Invoice with Tracking Website\",\"logo\":\"https://r2.softbaker.com/templates/templates-awsuv5ba-hwd7x6ou-logo.jpeg\",\"data_url\":\"https://r2.frontbacked.com/templates/templates-awsuv5ba-hwd7x6ou-data.json?updates=1\",\"is_default\":true,\"split_on_download\":false,\"thumbnail\":\"https://r2.frontbacked.com/templates/tools-awsuv5ba-hwd7x6ou-thumbnail.jpg?updates=1&tct=1748021058263\"}]},{\"id\":\"5vCsgJJVsFYhV4dZYQdI\",\"mobileVideoUrl\":null,\"is_static\":true,\"desktopVideoUrl\":null,\"name\":\"Invoice\",\"isActive\":true,\"isHidden\":false,\"allow_freemium\":true,\"siteUrl\":\"/invoice\",\"siteLogoUrl\":\"/templates/tool-5vCsgJJVsFYhV4dZYQdI.jpg\",\"authorId\":\"f6dcBr3nBJQNLeRwN1ZeHYTZqGC2\",\"youtube\":null,\"description\":\"Create a payment invoice easily.\",\"rank\":3,\"update_price\":200,\"create_price\":5000,\"x\":[\"authorId,uid,0,0,false,true,false\",\"createdAt,current_time,0,0,false,true,false\",\"updatedAt,current_time,0,0,true,true,true\",\"companyName,string,2,64,false,true,false\",\"companyAddress,string,2,64,false,true,false\",\"customerName,string,2,64,false,true,false\",\"customerAddress,string,2,64,false,true,false\",\"invoiceNumber,string,2,64,false,true,false\",\"date,time,0,0,false,true,false\",\"currency,string,2,64,false,true,false\",\"items,object_array:{description@string_1_90|quantity@number_1_1000000000000000|price@number_1_1000000000000000},1,6,false,true,false\",\"paymentDetails,string,2,256,false,false,false\",\"vat,number,0,99,false,true,false\",\"logo,string,0,64,false,false,false\",\"waterMarkWithLogo,boolean,0,64,false,true,false\",\"grayScaleWaterMark,boolean,0,64,false,true,false\"],\"tool_version_code\":2},{\"id\":\"tDYsSHDnF58hFCf3nUTk\",\"mobileVideoUrl\":null,\"is_static\":true,\"desktopVideoUrl\":null,\"icon\":\"Coins\",\"authorId\":\"f6dcBr3nBJQNLeRwN1ZeHYTZqGC2\",\"youtube\":null,\"name\":\"Face Swap Video Call\",\"siteUrl\":\"/face-swap-video-call\",\"isActive\":true,\"siteLogoUrl\":\"/templates/tool-tDYsSHDnF58hFCf3nUTk.jpg?v=2\",\"rank\":4,\"isHidden\":false},{\"id\":\"XFXW1s8LlhiJnZKPbdWX\",\"siteUrl\":\"/invest\",\"mobileVideoUrl\":null,\"is_static\":true,\"desktopVideoUrl\":null,\"isActive\":false,\"icon\":\"MoneyBillAlt\",\"siteLogoUrl\":\"/templates/tool-XFXW1s8LlhiJnZKPbdWX.jpg\",\"authorId\":\"f6dcBr3nBJQNLeRwN1ZeHYTZqGC2\",\"youtube\":null,\"name\":\"Investment Website\",\"rank\":5,\"isHidden\":false}]}}";
7550
+ var defaultFactoryData = undefined; //`{"etag":"W\/\"97cce03e8c6f6c8092dfac11069679e7\"","lastModified":"Fri, 23 May 2025 17:24:27 GMT","cachedData":{"totalUpdates":1,"lastUpdatedOn":"Fri, 23 May 2025 17:24:18 GMT","tools":[{"id":"U8SL1BvlIb1nxj4JNCNX","siteUrl":"/bank","mobileVideoUrl":null,"is_static":true,"desktopVideoUrl":null,"isActive":true,"isHidden":false,"update_price":0.1,"allow_freemium":true,"create_price_is_monthly":true,"rank":1,"icon":"Building","siteLogoUrl":"/templates/tool-U8SL1BvlIb1nxj4JNCNX.jpg","authorId":"f6dcBr3nBJQNLeRwN1ZeHYTZqGC2","youtube":null,"name":"Online Banking Website","chat_supported":true,"create_price":20000,"quarterly_price":50000,"yearly_price":150000,"create_price_discount":0,"description":"Create an online banking website for your content. No more building a custom online banking website from scratch every time you need to film a banking scene.","x":["authorId,uid,0,0,false,true,false","createdAt,current_time,0,0,false,true,false","updatedAt,current_time,0,0,true,true,true","profilePhoto,string,0,300,true,true,false","email,string,0,64,true,true,false","phone,string,0,32,true,true,false","accountType,string,0,64,true,true,false","gender,string,0,64,true,true,false","maritalStatus,string,0,64,true,true,false","dob,string,0,16,true,true,false","password,string,6,16,true,true,false","pin,number,1000,9999,true,true,false","address,string,0,128,true,true,false","occupation,string,0,64,true,true,false","accountNumber_username,number,9000000000,9999999999,false,true,false","fullname,string,0,64,true,true,false","currencySymbol,string,0,64,true,true,false","disableAccount,boolean,0,8,true,true,false","accountBalance,number,0,999999999999999,true,false,false","autoRenewSubscription,boolean,0,8,true,true,false","credits,array:string:1:200,0,10,true,false,false","debits,array:string:1:200,0,10,true,false,false","totalCredits,number,0,999999999999999,true,false,false","totalDebits,number,0,999999999999999,true,false,false","disableAccountError,string,1,500,true,false,false","noTxGeneration,boolean,0,8,false,false,false","isHidden,boolean,1,8,true,false,false","isActive,boolean,1,8,true,false,false","txProcessingDuration,string,1,64,true,true,false","isInActive,boolean,0,8,true,false,false"],"tool_version_code":7},{"id":"0QZLQQKVTRV3Q6SFAIEA","authorId":"f6dcBr3nBJQNLeRwN1ZeHYTZqGC2","createdAt":{"_seconds":1733770038,"_nanoseconds":796000000},"is_static":false,"isActive":true,"is_freemium":true,"icon":"ShippingFast","isHidden":false,"editables":"Shipping_Status@small.select, error_message.textarea, expected_arrival_date.date","templates_url":"/templates/templates-awsuv5ba.json?updates=23","youtube":null,"mobileVideoUrl":null,"desktopVideoUrl":null,"allow_freemium":true,"chat_supported":true,"create_price":10000,"message":"ID_TITLE == Tracking ID\nLINK == zendcargo.com\nCONTENT == Track your shipment using the tracking ID above at the tracking website: {LINK}.","description":"Create a shipping invoice with a tracking website for your content. No more building a custom shipping site from scratch every time you need to film a shipping scene.","update_price":200,"updatedAt":{"_seconds":1746816982,"_nanoseconds":404000000},"rank":2,"name":"Shipping","parent":"","x":["authorId,uid,0,0,false,true,false","createdAt,current_time,0,0,false,true,false","expectedArrivalDate,time,0,0,true,true,false","invoiceNumber,string,1,16,false,true,false","packageContent,string,1,64,false,true,false","packageDestinationAddress,string,1,64,false,true,false","packageDestinationEmail,string,1,256,false,true,false","packageDestinationPhone,string,1,16,false,true,false","packageRecipientName,string,1,128,false,true,false","packageWeight,string,1,32,false,true,false","senderEmail,string,1,256,false,true,false","senderName,string,1,128,false,true,false","shipmentDate,time,0,0,false,true,false","shipmentFee,string,0,32,false,true,false","shippingStatus,string,1,32,true,true,false","updatedAt,current_time,0,0,true,true,true","costCurrency,string,0,64,false,false,false","errorMessage,string,1,500,true,false,false"],"tool_version_code":7,"freemiumDownloadMessage":"The shipping invoice will have watermark. The tracking website will also have a \"fake tracking\" message.","premiumDownloadMessage":"The shipping invoice will be clean with no watermark. The tracking website will also be clean with no \"fake tracking\" message.","templates":[{"id":"hwd7x6ou","name":"Shipping Invoice with Tracking Website","logo":"https://r2.softbaker.com/templates/templates-awsuv5ba-hwd7x6ou-logo.jpeg","data_url":"https://r2.frontbacked.com/templates/templates-awsuv5ba-hwd7x6ou-data.json?updates=1","is_default":true,"split_on_download":false,"thumbnail":"https://r2.frontbacked.com/templates/tools-awsuv5ba-hwd7x6ou-thumbnail.jpg?updates=1&tct=1748021058263"}]},{"id":"5vCsgJJVsFYhV4dZYQdI","mobileVideoUrl":null,"is_static":true,"desktopVideoUrl":null,"name":"Invoice","isActive":true,"isHidden":false,"allow_freemium":true,"siteUrl":"/invoice","siteLogoUrl":"/templates/tool-5vCsgJJVsFYhV4dZYQdI.jpg","authorId":"f6dcBr3nBJQNLeRwN1ZeHYTZqGC2","youtube":null,"description":"Create a payment invoice easily.","rank":3,"update_price":200,"create_price":5000,"x":["authorId,uid,0,0,false,true,false","createdAt,current_time,0,0,false,true,false","updatedAt,current_time,0,0,true,true,true","companyName,string,2,64,false,true,false","companyAddress,string,2,64,false,true,false","customerName,string,2,64,false,true,false","customerAddress,string,2,64,false,true,false","invoiceNumber,string,2,64,false,true,false","date,time,0,0,false,true,false","currency,string,2,64,false,true,false","items,object_array:{description@string_1_90|quantity@number_1_1000000000000000|price@number_1_1000000000000000},1,6,false,true,false","paymentDetails,string,2,256,false,false,false","vat,number,0,99,false,true,false","logo,string,0,64,false,false,false","waterMarkWithLogo,boolean,0,64,false,true,false","grayScaleWaterMark,boolean,0,64,false,true,false"],"tool_version_code":2},{"id":"tDYsSHDnF58hFCf3nUTk","mobileVideoUrl":null,"is_static":true,"desktopVideoUrl":null,"icon":"Coins","authorId":"f6dcBr3nBJQNLeRwN1ZeHYTZqGC2","youtube":null,"name":"Face Swap Video Call","siteUrl":"/face-swap-video-call","isActive":true,"siteLogoUrl":"/templates/tool-tDYsSHDnF58hFCf3nUTk.jpg?v=2","rank":4,"isHidden":false},{"id":"XFXW1s8LlhiJnZKPbdWX","siteUrl":"/invest","mobileVideoUrl":null,"is_static":true,"desktopVideoUrl":null,"isActive":false,"icon":"MoneyBillAlt","siteLogoUrl":"/templates/tool-XFXW1s8LlhiJnZKPbdWX.jpg","authorId":"f6dcBr3nBJQNLeRwN1ZeHYTZqGC2","youtube":null,"name":"Investment Website","rank":5,"isHidden":false}]}}`
7551
7551
  var setR2Host = function setR2Host(url, r2Domain) {
7552
7552
  if (!url) return url;
7553
7553
  if (url.startsWith('/')) {