PageSourceSearch

https://www.funnft.com/_next/static/chunks/5988.8fc5f5e50f0a0932.js

js funnft.com collected 2026-10-07 22:09:52 UTC 8,586 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5988],{71174:function(e,s,l){l.d(s,{Z:function(){return n}});var t=l(87462),i=l(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},r=l(36936),n=i.forwardRef(function(e,s){return i.createElement(r.Z,(0,t.Z)({},e,{ref:s,icon:a}))})},50023:function(e,s,l){l.r(s);var t=l(85893),i=l(11163),a=l(72438),r=l(77013),n=l(18857),c=l(85742),d=l(85551),o=l(67294),h=l(63919),x=l(23650),u=l(70974),m=l(74739),v=l(36434);s.default=e=>{let s=(0,i.useRouter)(),[l,j]=(0,o.useState)(!1),[p,y]=(0,o.useState)([]),[f,g]=(0,o.useState)("vertical"),[w]=r.Z.useForm(),{userLogin:b,userData:N}=(0,h.J)(),[k,T]=(0,o.useState)(""),[P,Z]=(0,o.useState)(-1),[I,R]=(0,o.useState)(""),_=()=>{R((0,x.ZA)("ASSET_TYPE"));let e=(0,x.ZA)("royalty_data");e?y(e):(0,a.lu)(s,"".concat(v.Z.royalty.create))};(0,o.useEffect)(()=>{_()},[]);let S=e=>{switch(e){case"Tracks":return p.map(e=>({oa_id:e.assets[0].isrc,title:e.assets[0].title,data:{thumbnail:e.assets[0].thumbnail,url:e.assets[0].url,upc:e.upc}}));case"Albums":return p.map(e=>e.assets.map(s=>({oa_id:s.isrc,title:s.title,data:{thumbnail:s.thumbnail,url:s.url,upc:e.upc}}))).flat(2);case"Videos":return p.map(e=>({oa_id:e.oa_id,title:e.title,data:{thumbnail:e.thumbnail,channelid:e.channel_id}}));case"Playlists":return p.map(e=>e.data.map(e=>e.assets.map(s=>({oa_id:s.assetid,title:s.title,data:{thumbnail:s.thumbnail,channelId:e.channelid}})))).flat(2)}};(0,o.useEffect)(()=>{-1!==P&&(100-P<2?T("Please Remove the asset which has Royalty Percentage 100% "):T("The Royalty Percentage should be less then ".concat(100-P)))},[P]);let C=async e=>{j(!0);let l=(0,x.ZA)("ASSET_TYPE"),t=S(l),i=Object.assign({},e);i.item_price=0,i.user=N.username,i.asset_type=l,i.assets=t,u.t.customPOST((0,a.ui)([m.b.one_axcess.user.royaltynft]),i).then(e=>{201===e.status&&(0,a.lu)(s,"".concat(v.Z.royalty.create.step3,"/").concat(e.data.id))}).finally(()=>j(!1))};return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"container",children:(0,t.jsxs)("div",{className:"nftCt fullw",children:[(0,t.jsxs)("div",{className:"NftHeader",children:[(0,t.jsx)("h3",{children:"Create Royalty NFT"}),(0,t.jsx)("p",{className:"steps",children:"Step 2 of 3"}),(0,t.jsx)("p",{children:"Details of percentage of revenue to be distributed as Royalty, number of NFT's and duration."}),(0,t.jsx)("a",{className:"aCircle",onClick:()=>(0,a.Mi)(s),children:(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,t.jsx)("path",{d:"M15 5L5 15",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M5 5L15 15",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})]}),(0,t.jsxs)("div",{className:"mainNftbx",children:[(0,t.jsx)("div",{className:"nftLx",children:(0,t.jsxs)(r.Z,{layout:f,scrollToFirstError:!0,name:"create-royalty-step2",onFinish:C,validateTrigger:["onBlur","onKeyUp","onChange"],style:{width:"100%"},children:[(0,t.jsx)(r.Z.Item,{name:["royalty_percentage"],label:(0,t.jsxs)("label",{style:{color:"white",display:"flex",alignItems:"center",gap:"10px"},children:["Royalty percentage",(0,t.jsx)(n.Z,{overlayClassName:"toolTipClass",title:"Royalty percentage is the portion of revenue from future revenues that will be distributed amongst the NFT buyers",children:(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,t.jsx)("circle",{cx:"8",cy:"8",r:"8",fill:"#777777"}),(0,t.jsx)("rect",{x:"7",y:"6",width:"2",height:"7",rx:"1",fill:"white"}),(0,t.jsx)("circle",{cx:"8",cy:"4",r:"1",fill:"white"})]})})]}),rules:[{validator:(e,s)=>s&&""!==s?s>100?Promise.reject("Royalty Percentage should not be greater then 100"):s<.001?Promise.reject("Royalty Percentage should be greater then 0.0001"):Promise.resolve():Promise.reject("Royalty Percentage is Required")}],children:(0,t.jsx)(c.Z,{controls:!1,min:1e-4,max:100,style:{width:"100%",paddingInline:"0px"}})}),(0,t.jsx)("span",{className:"errorx",children:k}),(0,t.jsx)(r.Z.Item,{name:["duration"],label:(0,t.jsxs)("label",{style:{color:"white",display:"flex",alignItems:"center",gap:"10px"},children:["Duration (In Months)",(0,t.jsx)(n.Z,{overlayClassName:"toolTipClass",title:"Length of time for which the royalty payments will be made from the date of purchase to the buyers",children:(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,t.jsx)("circle",{cx:"8",cy:"8",r:"8",f
1ill:"#777777"}),(0,t.jsx)("rect",{x:"7",y:"6",width:"2",height:"7",rx:"1",fill:"white"}),(0,t.jsx)("circle",{cx:"8",cy:"4",r:"1",fill:"white"})]})})]}),rules:[{validator:(e,s)=>s&&""!==s?/^\d+$/.test(s)?Promise.resolve():Promise.reject("Enter a valid Number"):Promise.reject("Duration is Required")}],children:(0,t.jsx)(c.Z,{controls:!1,max:12,min:1,style:{width:"100%",paddingInline:"0px"}})}),(0,t.jsx)(r.Z.Item,{name:["count"],label:(0,t.jsxs)("label",{style:{color:"white",display:"flex",alignItems:"center",gap:"10px"},children:["No. of NFTs",(0,t.jsx)(n.Z,{overlayClassName:"toolTipClass",title:"Number of NFT's so that each  NFT will have a proportionate share of the total Royalty Percentage that you are distributing",children:(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,t.jsx)("circle",{cx:"8",cy:"8",r:"8",fill:"#777777"}),(0,t.jsx)("rect",{x:"7",y:"6",width:"2",height:"7",rx:"1",fill:"white"}),(0,t.jsx)("circle",{cx:"8",cy:"4",r:"1",fill:"white"})]})})]}),rules:[{required:!0,message:"No. of NFTs are required"},{pattern:/^\d+$/,message:"Enter a valid number"}],children:(0,t.jsx)(c.Z,{controls:!1,min:1e-4,max:100,style:{width:"100%",paddingInline:"0px"}})}),(0,t.jsx)(r.Z.Item,{className:"fwc mt40x",children:(0,t.jsx)(d.ZP,{type:"primary",htmlType:"submit",loading:l,className:"dbtn",children:"Submit"})})]})}),(0,t.jsxs)("div",{className:"nftRx",children:[["Tracks","Albums"].indexOf(I)>-1&&(0,t.jsxs)("div",{className:"nftRxIn",children:[(0,t.jsx)("h2",{children:"Selected"}),(0,t.jsx)("div",{className:"tracks",children:(0,t.jsx)("ul",{children:p.map((e,s)=>{var l,i;return(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"trackBx",children:[(0,t.jsx)("div",{className:"mr20",children:s+1}),(0,t.jsx)("div",{className:"trackBxThumb",children:(0,t.jsx)("img",{src:null==e?void 0:e.thumbnail,alt:""})}),(0,t.jsx)("div",{className:"trackInfo",children:(0,t.jsx)("p",{children:(null==e?void 0:null===(l=e.assets)||void 0===l?void 0:l.length)>2?null==e?void 0:e.albumname:null==e?void 0:null===(i=e.assets[0])||void 0===i?void 0:i.title})})]})},"sl-trks-"+s)})})})]}),["Videos","Playlists"].indexOf(I)>-1&&(0,t.jsxs)("div",{className:"nftRxIn",children:[(0,t.jsx)("h2",{children:"Selected"}),(0,t.jsx)("div",{className:"tracks",children:"Playlists"===I?(0,t.jsx)("ul",{children:p.map((e,s)=>{var l,i,a,r,n,c;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"trackBx",children:[(0,t.jsx)("div",{className:"mr20",children:s+1}),(0,t.jsx)("div",{className:"trackBxThumb",children:(0,t.jsx)("img",{src:null==e?void 0:null===(a=e.snippet)||void 0===a?void 0:null===(i=a.thumbnails)||void 0===i?void 0:null===(l=i.default)||void 0===l?void 0:l.url,alt:""})}),(0,t.jsx)("div",{className:"trackInfo",children:(0,t.jsx)("p",{children:null==e?void 0:null===(r=e.snippet)||void 0===r?void 0:r.title})})]})},"sl-pl-list-"+s),(null===(n=e.data)||void 0===n?void 0:n.length)>0&&(null==e?void 0:null===(c=e.data[0])||void 0===c?void 0:c.assets.map((e,s)=>(0,t.jsx)("div",{className:"albumdp",children:(0,t.jsxs)("div",{className:"vdolx",children:[(0,t.jsx)("span",{children:s+1}),(0,t.jsx)("div",{className:"vdolxInf",children:(0,t.jsx)("h5",{children:e.title})})]})},"sl-pl-asset-"+s)))]})})}):(0,t.jsx)("ul",{children:p.map((e,s)=>(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"trackBx",children:[(0,t.jsx)("div",{className:"mr20",children:s+1}),(0,t.jsx)("div",{className:"trackBxThumb",children:(0,t.jsx)("img",{src:null==e?void 0:e.thumbnail,alt:""})}),(0,t.jsx)("div",{className:"trackInfo",children:(0,t.jsx)("p",{children:null==e?void 0:e.title})})]})},"sl-video"+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.