<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[329],{86173:function(e,t,n){n.d(t,{E:function(){return handleGenerate}});var l=n(70173);let handleGenerate=async(e,t,n)=&gt;{var i,o;await t();let a=await fetch("/api/private/upload/url?update=chat&amp;type=image&amp;origin=ai",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:e})}),s=await a.json();await n({...s,width:null===(i=(0,l.E3)(null==s?void 0:s.metadata_json))||void 0===i?void 0:i.width,height:null===(o=(0,l.E3)(null==s?void 0:s.metadata_json))||void 0===o?void 0:o.height})}},73549:function(e,t,n){var l=n(85893),i=n(67294),o=n(31637),a=n(79468),s=n(27744),r=n(61816),d=n(84835),c=n(68693),u=n(79826),m=n(81357);n(13912);var v=n(64130),p=n(75138),x=n(30967),h=n(80008),g=n.n(h),f=n(70173),_=n(51689),b=n(89589);t.Z=function(e){var t,n,h,y,j,w,N,S,k,C,M,z,T,F,Z;let{submitHandler:O,submitting:P,set_submitting:U,processing:E,set_processing:D,set_changes:L,changes:I,max_files:R,post_id:A,itemdata:B,parentdata:H,itemdataisLoading:V,itemdataisError:J,show_graphic:Y,form_reset:W,set_form_reset:G,actionText:$,postcache:q,set_postcache:K,typevalue:Q,set_typevalue:X,ownerdata:ee,userdata:et,navtype:en,helptype:el,clip_state:ei="0",clip_json:eo=[]}=e,[ea,es]=(0,i.useState)(!1);(0,i.useEffect)(()=&gt;{es(!0)},[]);let[er,ed]=(0,i.useState)([]),[ec,eu]=(0,i.useState)(0),[em,ev]=(0,i.useState)(0),[ep,ex]=(0,i.useState)(!1),[eh,eg]=(0,i.useState)(!V&amp;&amp;!J&amp;&amp;B&amp;&amp;(0,p.U)(null==B?void 0:B.user_name,null==ee?void 0:ee.user_name)),[ef,e_]=(0,i.useState)("0"),[eb,ey]=(0,i.useState)(null==et?void 0:et.id),[ej,ew]=(0,i.useState)((0,p.U)(null==B?void 0:B.post_type,Q)),[eN,eS]=(0,i.useState)((0,p.U)(null==B?void 0:B.post_title,"")),[ek,eC]=(0,i.useState)((0,p.U)(null==B?void 0:B.post_body,"")),[eM,ez]=(0,i.useState)((0,p.U)(null==B?void 0:B.post_tags,"")),[eT,eF]=(0,i.useState)((0,p.U)(null==B?void 0:B.bol_public,"1")),[eZ,eO]=(0,i.useState)((0,p.U)(null==B?void 0:B.bol_list,"1")),[eP,eU]=(0,i.useState)((0,o.M)(null==B?void 0:B.publish_date)?(0,m.Tj)(new Date(null==B?void 0:B.publish_date).toISOString()):(0,m.Tj)(new Date().toISOString())),[eE,eD]=(0,i.useState)((0,o.M)(null==B?void 0:B.publish_date_original)?(0,m.Tj)(new Date(null==B?void 0:B.publish_date_original).toISOString()):(0,m.Tj)(new Date().toISOString())),[eL,eI]=(0,i.useState)((0,o.M)(null==B?void 0:B.publish_date_timezone)?null==B?void 0:B.publish_date_timezone:(0,o.M)(g().tz.guess())?g().tz.guess():x.vc.form.defaulttimezone),[eR,eA]=(0,i.useState)((0,p.U)(null==B?void 0:B.bol_expire,"0")),[eB,eH]=(0,i.useState)((0,o.M)(null==B?void 0:B.expire_date)?(0,m.Tj)(new Date(null==B?void 0:B.expire_date).toISOString()):(0,m.Tj)(new Date().toISOString())),[eV,eJ]=(0,i.useState)((0,o.M)(null==B?void 0:B.expire_date_original)?(0,m.Tj)(new Date(null==B?void 0:B.expire_date_original).toISOString()):(0,m.Tj)(new Date().toISOString())),[eY,eW]=(0,i.useState)((0,o.M)(null==B?void 0:B.expire_date_timezone)?null==B?void 0:B.expire_date_timezone:(0,o.M)(g().tz.guess())?g().tz.guess():x.vc.form.defaulttimezone),[eG,e$]=(0,i.useState)((0,p.U)(null==B?void 0:B.bol_notification,"0")),[eq,eK]=(0,i.useState)((0,p.U)(null==B?void 0:B.bol_comments,"1")),[eQ,eX]=(0,i.useState)((0,p.U)(null==B?void 0:B.bol_likes,"1")),[e0,e1]=(0,i.useState)((0,p.U)(null==B?void 0:B.access_level,"1")),[e2,e5]=(0,i.useState)((0,p.U)(null==B?void 0:B.slug,"")),[e4,e3]=(0,i.useState)((0,p.U)(null==B?void 0:B.post_description,"")),[e6,e7]=(0,i.useState)((0,p.U)(null==B?void 0:B.post_contents_json,"[]")),[e8,e9]=(0,i.useState)((0,p.U)(null==B?void 0:B.bol_sticky,"0")),[te,tt]=(0,i.useState)((0,p.U)(null==B?void 0:B.bol_featured,"1")),[tn,tl]=(0,i.useState)((0,p.U)(null==B?void 0:B.bol_transcribe,"1")),[ti,to]=(0,i.useState)((0,p.U)(null==B?void 0:B.bol_replay_post,"1"));(0,i.useEffect)(()=&gt;{if(1==W&amp;&amp;(0,o.M)(A)&amp;&amp;"0"!==A.toString()&amp;&amp;!V&amp;&amp;!J){var e;eg((0,o.M)(null==B?void 0:B.user_name)?null==B?void 0:B.user_name:null==et?void 0:et.user_name),ew((0,o.M)(null==B?void 0:B.post_type)?null==B?void 0:B.post_type:Q),eS((0,o.M)(null==B?void 0:B.post_title)?null==B?void 0:B.post_title:""),eC((0,o.M)(null==B?void 0:B.post_body)?null==B?void 0:B.post_body:""),ez((0,o.M)(null==B?void 0:B.post_tags)?null==B?void 0:B.post_tags:""),eF((0,o.M)(null==B?void 0:B.bol_public)?null==B?void 0:B.bol_public:"1"),eU((0,o.M)(null==B?void 0:B.publish_date)?(0,m.Tj)(new Date(null==B?void 0:B.publish_date).toISOString()):(0,m.Tj)(new Date().toISOString())),eD((0,o.M)(null==B?void 0:B.publish_date_original)?(0,m.Tj)(new Date(null==B?void 0:B.publish_date_original).toISOString()):(0,m.Tj)(new Date().toISOString())),eI((0,o.M)(null==B?void 0:B.publish_date_timezone)?null==B?void 0:B.publish_date_timezone:(0,o.M)(g().tz.guess())?g().tz.guess():x.vc.form.defaulttimezone),eA((0,o.M)(null==B?void 0:B.bol_expire)?null==B?void 0:B.bol_expire:"0"),eH((0,o.M)(null==B?void 0:B.expire_date)?(0,m.Tj)(new Date(null==B?void 0:B.expire_date).toISOString()):(0,m.Tj)(new Date().toISOString())),eJ((0,o.M)(null==B?void 0:B.expire_date_original)?(0,m.Tj)(new Date(null==B?void 0:B.expire_date_original).toISOString()):(0,m.Tj)(new Date().toISOString())),eW((0,o.M)(null==B?void 0:B.expire_date_timezone)?null==B?void 0:B.expire_date_timezone:(0,o.M)(g().tz.guess())?g().tz.guess():x.vc.form.defaulttimezone),e$((0,o.M)(null==B?void 0:B.bol_notification)?null==B?void 0:B.bol_notification:"0"),eK((0,o.M)(null==B?void 0:B.bol_comments)?null==B?void 0:B.bol_comments:"1"),eX((0,o.M)(null==B?void 0:B.bol_likes)?null==B?void 0:B.bol_likes:"1"),e1((0,o.M)(null==B?void 0:B.access_level)?null==B?void 0:B.access_level:"1"),e5((0,o.M)(null==B?void 0:B.slug)?null==B?void 0:B.slug:""),e3((0,o.M)(null==B?void 0:B.post_description)?null==B?void 0:B.post_description:""),(null==ei?void 0:null===(e=ei.status)||void 0===e?void 0:e.toString())!="0"&amp;&amp;(0,o.M)(ei)||e7((0,o.M)(null==B?void 0:B.post_contents_json)?null==B?void 0:B.post_contents_json:"[]"),e9((0,o.M)(null==B?void 0:B.bol_sticky)?null==B?void 0:B.bol_sticky:"0"),tt((0,o.M)(null==B?void 0:B.bol_featured)?null==B?void 0:B.bol_featured:"1"),G(0)}},[B,V,J,A,I,W,G,Q,et,ei]),(0,i.useEffect)(()=&gt;{if((null==eo?void 0:eo.length)&gt;0){var e,t,n,l,i,o,a,s,r,d,c,u,m;e7(JSON.stringify([{url:null===(e=eo[0])||void 0===e?void 0:e.url,hash:null===(t=eo[0])||void 0===t?void 0:t.hash,size:null===(n=eo[0])||void 0===n?void 0:n.size,crdate:null===(l=eo[0])||void 0===l?void 0:l.crdate,source:null===(i=eo[0])||void 0===i?void 0:i.source,duration:null===(o=eo[0])||void 0===o?void 0:o.duration,filename:null===(a=eo[0])||void 0===a?void 0:a.filename,extention:null===(s=eo[0])||void 0===s?void 0:s.extention,post_type:null===(r=eo[0])||void 0===r?void 0:r.post_type,upload_id:null===(d=eo[0])||void 0===d?void 0:d.upload_id,metadata_json:null===(c=eo[0])||void 0===c?void 0:c.metadata_json,clip_start:null===(u=eo[0])||void 0===u?void 0:u.clip_start,clip_end:null===(m=eo[0])||void 0===m?void 0:m.clip_end}]))}},[eo]);let{isConfirmed:ta}=(0,v.N)(),[ts,tr]=(0,i.useState)(0),td=[{title:"Post content",description:"",short:"post",fields:[{type:"text",title:"Post Title",description:"",helptip:"",name:"post_title",placeholder:"",value:eN,set_value:eS},["14"].indexOf(null==ej?void 0:ej.toString())&gt;-1?{type:"text",title:"Video URL",description:"Enter the URL of a video (eg. from YouTube)",helptip:"We support media from YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia, Mixcloud, DailyMotion and Kaltura.",name:"post_body",placeholder:"https://www.youtube.com/watch?v=abcdefghijkl",value:ek,set_value:eC}:{type:"textarea-autosize",title:"Post Description",description:"",helptip:"",name:"post_body",placeholder:"",value:ek,set_value:eC},{type:"text",title:"Post Tags",description:"separate tags with commas",helptip:"",name:"post_tags",placeholder:"",value:eM,set_value:ez}]},{title:"Advanced",description:"Only mess with these settings if you are a professional internet surfer.",short:"advanced",fields:[{type:"toggle",title:"Enable responses?  ",description:"",helptip:"",name:"bol_comments",placeholder:"",value:eq,set_value:eK},["5","2","13"].indexOf(null==ej?void 0:ej.toString())&gt;-1?{type:"toggle",title:"Show transcript?",description:"",helptip:"This shows the audio transcript, if available. May only apply to upgraded accounts.",name:"bol_transcribe",placeholder:"",value:tn,set_value:tl}:{type:"hide"},["5"].indexOf(null==ej?void 0:ej.toString())&gt;-1?{type:"toggle",title:"Show chat replay?",description:"",helptip:"This lets the chat be played back in real time with the show.",name:"bol_replay_post",placeholder:"",value:ti,set_value:to}:{type:"hide"},{type:"toggle",title:"Share to Public Feeds?",description:"",helptip:"Enabling this will show your post in the public feeds. Disabling this will keep your posts on your profile page only.",name:"bol_featured",placeholder:"",value:te,set_value:tt},{type:"toggle",title:"Sticky post to profile?",description:"",helptip:"Pin this post to the top of your other posts indefinitely. This is good for important announcements if you have an active account and do not want a post to be missed.",name:"bol_sticky",placeholder:"",value:e8,set_value:e9},{type:"selectoptions",title:"URL type",description:"",helptip:"",name:"bol_list",placeholder:"",value:eZ,set_value:eO,options:[{text:"Listed: visible in lists",value:"1",recommended:"1"},{text:"Unlisted: visible to people with the URL",value:"0",premium_level:1,userdata:et}]},{type:"selectoptions",title:"Publish this Post?",description:"",helptip:"",name:"bol_public",placeholder:"",value:eT,set_value:eF,options:[{text:"Keep as a Private Draft",value:"0"},{text:"Publish now",value:"1"},{text:"Publish at a scheduled time",value:"2",premium_level:1,userdata:et}]},{type:"date",title:"Publish Date",description:(0,l.jsx)(l.Fragment,{}),helptip:"",name:"publish_date_original",placeholder:"",value:eE,set_value:eD,show_condition:2==eT},{type:"timezone",title:"",description:"Time Zone",helptip:"",name:"publish_date_timezone",placeholder:x.vc.form.defaulttimezone,value:eL,hidden_value:eP,set_value:eI,show_condition:2==eT},{type:"selectoptions",title:"Automatically Expire this Post?",description:"",helptip:"",name:"bol_expire",placeholder:"",value:eR,set_value:eA,options:[{text:"No: Let it stay up until I remove it.",value:"0",recommended:"0"},{text:"Yes: Expire it at a scheduled time",value:"2",premium_level:1,userdata:et}]},{type:"date",title:"Expiration Date",description:"",helptip:"",name:"expire_date_original",placeholder:"",value:eV,set_value:eJ,show_condition:2==eR},{type:"timezone",title:"",description:"Time Zone",helptip:"",name:"expire_date_timezone",placeholder:x.vc.form.defaulttimezone,value:eY,hidden_value:eB,set_value:eW,show_condition:2==eR},{type:"textarea-autosize",title:"Add a short summary of your post",description:"This will appear in RSS feeds or notifications",helptip:"",name:"post_description",placeholder:"",value:e4,set_value:e3,meta:{minRows:2,maxRows:10}},{type:"toggle",title:"Notify your followers about this Post?(ONLY VISIBLE TO MILK) ",description:"",helptip:"",name:"bol_notification",placeholder:"",value:eG,set_value:e$,show_condition:(null==et?void 0:null===(t=et.id)||void 0===t?void 0:t.toString())=="1"}]},{title:"Post Owner",description:"Assign a different owner of a post, if you are a staff for them",short:"owner",fields:[]}],[tc,tu]=(0,i.useState)((0,s.DA)(null==B?void 0:null===(n=B.user_id)||void 0===n?void 0:n.toString(),null==B?void 0:B.bol_staff_help,null==B?void 0:B.staff_json,null==B?void 0:B.bol_admin_help,null==et?void 0:null===(h=et.id)||void 0===h?void 0:h.toString(),null==et?void 0:null===(y=et.bol_admin)||void 0===y?void 0:y.toString()));return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"w-full",children:[(0,l.jsx)(a.Z,{wizard_array:td,wizard_id:ts,set_wizard_id:tr,disable_mobileview:!0}),(0,l.jsx)("div",{children:(0,l.jsxs)("form",{className:"space-y-6",onSubmit:function(e){e.preventDefault();let t={post_id:A,post_parent_id:null==H?void 0:H.post_id,post_title:eN,post_body:ek,post_tags:eM,publish_date:(0,m.EQ)((0,m.i3)(eE,eL)),publish_date_original:(0,m.mV)(eE),publish_date_timezone:eL,bol_public:eT,bol_list:eZ,expire_date:(0,m.EQ)((0,m.i3)(eV,eY)),expire_date_original:(0,m.mV)(eV),expire_date_timezone:eY,bol_expire:eR,access_level:e0,post_type:ej,slug:(0,o.M)(e2)?e2:"".concat((0,c.NZ)(A,e2,eN).replace("".concat(A,"-"),"")),post_description:e4,post_contents_json:e6,admin_help_user_id:eb,bol_comments:eq,bol_transcribe:tn,bol_replay_post:ti,bol_likes:eQ,bol_notification:eG,bol_sticky:e8,bol_featured:te,user_id:eb,set_submitting:U};O(t,"/api/private/post/update","POST",{"Content-Type":"application/json"},"Your changes were saved"),L(!1);let n=+new Date;K(null==n?void 0:n.toString())},children:[(0,l.jsx)(r.Z,{section_id:0,wizard_id:ts,set_wizard_id:tr,wizard_array:td,submitting:P,set_submitting:U,processing:E,set_processing:D,set_changes:L,changes:I,children:["image","audio","video"].indexOf(null===(j=(0,x.UT)("",ej))||void 0===j?void 0:j.media)&gt;-1&amp;&amp;(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(_.Z,{url:null===(w=(0,f.E3)(e6,[])[0])||void 0===w?void 0:w.url,set_json:e7,empty_value:"[]",type:null===(N=(0,x.UT)("",ej))||void 0===N?void 0:N.media,title:"".concat(null===(S=(0,x.UT)("",ej))||void 0===S?void 0:S.short," file"),processing:ep,set_processing:ex,generate_prompt:"".concat(x.vc.upload.image.generation_prompt).concat(eN,", ").concat(e4)}),(0,l.jsx)(b.Z,{allowed_files:{image:["image"],audio:["audio"],video:["video"]}[null===(k=(0,x.UT)("",ej))||void 0===k?void 0:k.media],file_type:ej,api_url:{image:"/api/private/upload/file?update=postimage&amp;type=image&amp;origin=url&amp;cid=".concat(A),audio:"/api/private/upload/file?update=postsound&amp;type=sound&amp;origin=url&amp;cid=".concat(A),video:"/api/private/upload/file?update=postvideo&amp;type=video&amp;origin=url&amp;cid=".concat(A)}[null===(C=(0,x.UT)("",ej))||void 0===C?void 0:C.media],max_size:{image:x.vc.upload.image.max_size,audio:x.vc.upload.audio.max_size,video:x.vc.upload.video.max_size}[null===(M=(0,x.UT)("",ej))||void 0===M?void 0:M.media],max_files:{image:x.vc.upload.image.max_files,audio:x.vc.upload.audio.max_files,video:x.vc.upload.video.max_files}[null===(z=(0,x.UT)("",ej))||void 0===z?void 0:z.media],confirm_upload:!1,onUploadSingle:async e=&gt;{e7(t=&gt;{let n=JSON.stringify([JSON.parse(null==e?void 0:e.metadata_json)]);return L(!0),ex(!1),n})},files:er,set_files:ed,total_files:ec,set_total_files:eu,track_files:em,set_track_files:ev,changes:I,set_changes:L,processing:ep,set_processing:ex,swap_preview:!0,preview_url:null===(T=(0,f.E3)(e6,[])[0])||void 0===T?void 0:T.url,preview_json:(0,f.E3)(e6,[])[0],preview_width:null===(F=(0,f.E3)(e6,[])[0])||void 0===F?void 0:F.width,preview_height:null===(Z=(0,f.E3)(e6,[])[0])||void 0===Z?void 0:Z.height})]})}),(0,l.jsx)(r.Z,{section_id:1,wizard_id:ts,set_wizard_id:tr,wizard_array:td,submitting:P,set_submitting:U,processing:E,set_processing:D,set_changes:L,changes:I,children:(0,l.jsx)(l.Fragment,{})}),(0,l.jsx)(r.Z,{section_id:2,wizard_id:ts,set_wizard_id:tr,wizard_array:td,submitting:P,set_submitting:U,processing:E,set_processing:D,set_changes:L,changes:I,children:(0,l.jsx)(d.Z,{isAdmin:tc[el],bol_admin_user_name:ef,set_bol_admin_user_name:e_,admin_user_name:eh,set_admin_user_name:eg,user_id:eb,set_user_id:ey,submitting:P,set_submitting:U,processing:E,set_processing:D,changes:I,set_changes:L,title:"Post Owner",description:"",userdata:et,owner_name:null==B?void 0:B.user_name,owner_id:null==B?void 0:B.user_id})}),(0,l.jsx)(u.Z,{wizard_id:ts,set_wizard_id:tr,submitting:P,changes:I,actionText:$,wizard_array:td})]})})]})})}},59671:function(e,t,n){var l=n(85893),i=n(67294),o=n(31637),a=n(79468),s=n(27744),r=n(61816),d=n(84835),c=n(68693),u=n(79826);n(13912);var m=n(64130),v=n(75138),p=n(30967),x=n(70173),h=n(51689),g=n(89589);t.Z=function(e){var t,n,f,_,b,y,j;let{submitHandler:w,submitting:N,set_submitting:S,processing:k,set_processing:C,set_changes:M,changes:z,max_files:T,soundboard_id:F,itemdata:Z,parentdata:O,itemdataisLoading:P,itemdataisError:U,show_graphic:E,form_reset:D,set_form_reset:L,actionText:I,soundboardcache:R,set_soundboardcache:A,ownerdata:B,userdata:H,navtype:V,helptype:J}=e,[Y,W]=(0,i.useState)(!1);(0,i.useEffect)(()=&gt;{W(!0)},[]);let[G,$]=(0,i.useState)(!P&amp;&amp;!U&amp;&amp;Z&amp;&amp;(0,v.U)(null==Z?void 0:Z.user_name,null==B?void 0:B.user_name)),[q,K]=(0,i.useState)("0"),[Q,X]=(0,i.useState)(null==H?void 0:H.id),[ee,et]=(0,i.useState)((0,v.U)(null==Z?void 0:Z.soundboard_title,"")),[en,el]=(0,i.useState)((0,v.U)(null==Z?void 0:Z.soundboard_description,"")),[ei,eo]=(0,i.useState)((0,v.U)(null==Z?void 0:Z.soundboard_tags,"")),[ea,es]=(0,i.useState)((0,v.U)(null==Z?void 0:Z.bol_public,"1")),[er,ed]=(0,i.useState)((0,v.U)(null==Z?void 0:Z.bol_transcribe,"1")),[ec,eu]=(0,i.useState)((0,v.U)(null==Z?void 0:Z.bol_stack,"1")),[em,ev]=(0,i.useState)((0,v.U)(null==Z?void 0:Z.access_level,"1")),[ep,ex]=(0,i.useState)((0,v.U)(null==Z?void 0:Z.slug,"")),[eh,eg]=(0,i.useState)((0,v.U)(null==Z?void 0:Z.soundboard_json,"[]")),[ef,e_]=(0,i.useState)((0,v.U)(null==Z?void 0:Z.thumb_json,"[]")),[eb,ey]=(0,i.useState)((0,v.U)(null==Z?void 0:Z.color_text,"")),[ej,ew]=(0,i.useState)((0,v.U)(null==Z?void 0:Z.color_bg,"")),[eN,eS]=(0,i.useState)([]),[ek,eC]=(0,i.useState)(0),[eM,ez]=(0,i.useState)(0),[eT,eF]=(0,i.useState)(!1);(0,i.useEffect)(()=&gt;{1==D&amp;&amp;(0,o.M)(F)&amp;&amp;"0"!==F.toString()&amp;&amp;!P&amp;&amp;!U&amp;&amp;($((0,o.M)(null==Z?void 0:Z.user_name)?null==Z?void 0:Z.user_name:null==H?void 0:H.user_name),et((0,o.M)(null==Z?void 0:Z.soundboard_title)?null==Z?void 0:Z.soundboard_title:""),el((0,o.M)(null==Z?void 0:Z.soundboard_description)?null==Z?void 0:Z.soundboard_description:""),eo((0,o.M)(null==Z?void 0:Z.soundboard_tags)?null==Z?void 0:Z.soundboard_tags:""),es((0,o.M)(null==Z?void 0:Z.bol_public)?null==Z?void 0:Z.bol_public:"1"),ed((0,o.M)(null==Z?void 0:Z.bol_transcribe)?null==Z?void 0:Z.bol_transcribe:"1"),eu((0,o.M)(null==Z?void 0:Z.bol_stack)?null==Z?void 0:Z.bol_stack:"1"),ev((0,o.M)(null==Z?void 0:Z.access_level)?null==Z?void 0:Z.access_level:"1"),ex((0,o.M)(null==Z?void 0:Z.slug)?null==Z?void 0:Z.slug:""),eg((0,o.M)(null==Z?void 0:Z.soundboard_json)?null==Z?void 0:Z.soundboard_json:"[]"),L(0))},[Z,P,U,F,z,D,L,H]);let{isConfirmed:eZ}=(0,m.N)(),[eO,eP]=(0,i.useState)(0),eU=[{title:"info",description:"",short:"info",fields:[{type:"text",title:"Title",description:"",helptip:"",name:"soundboard_title",placeholder:"",value:ee,set_value:et,meta:{maxChars:65}},{type:"textarea-autosize",title:"Soundboard Description",description:"",helptip:"",name:"soundboard_description",placeholder:"",value:en,set_value:el,meta:{minRows:2,maxRows:10}},{type:"text",title:"Soundboard Tags",description:"separate tags with commas",helptip:"",name:"soundboard_tags",placeholder:"",value:ei,set_value:eo},{type:"color",title:"Set a Background Color for the Overview",description:"",helptip:"",name:"color_bg",placeholder:"",value:ej,set_value:ew}]},{title:"advanced",description:"",short:"advanced",fields:[{type:"toggle",title:"Allow multiple sounds to be played simultaneously by default?",description:"",helptip:"This only impacts the default state of the soundboard. Users can override this.",name:"bol_stack",placeholder:"",value:ec,set_value:eu},{type:"toggle",title:"Allow sounds to be transcribed?",description:"",helptip:"This helps your sounds be found in search results",name:"bol_transcribe",placeholder:"",value:er,set_value:ed},{type:"selectoptions",title:"Who can see this soundboard?",description:"",helptip:"",name:"bol_public",placeholder:"",value:ea,set_value:es,options:[{text:"Private (only me)",value:"0"},{text:"Public (everyone)",value:"1"}]}]}],[eE,eD]=(0,i.useState)((0,s.ZP)(null==B?void 0:null===(t=B.id)||void 0===t?void 0:t.toString(),null==B?void 0:B.bol_staff_help,null==B?void 0:B.staff_json,null==B?void 0:B.bol_admin_help,null==H?void 0:null===(n=H.id)||void 0===n?void 0:n.toString(),null==H?void 0:null===(f=H.bol_admin)||void 0===f?void 0:f.toString(),(0,p.oo)("soundboard")));return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"w-full",children:[(0,l.jsx)(a.Z,{wizard_array:eU,wizard_id:eO,set_wizard_id:eP,disable_mobileview:!0}),(0,l.jsx)("div",{children:(0,l.jsxs)("form",{className:"space-y-6",onSubmit:function(e){e.preventDefault();let t={soundboard_id:F,soundboard_parent_id:null==O?void 0:O.soundboard_id,soundboard_title:ee,soundboard_description:en,soundboard_tags:ei,bol_public:ea,bol_transcribe:er,bol_stack:ec,access_level:em,slug:(0,o.M)(ep)?ep:"".concat((0,c.NZ)(F,ep,ee).replace("".concat(F,"-"),"")),thumb_json:ef,color_text:eb,color_bg:ej,admin_help_user_id:Q,set_submitting:S};w(t,"/api/private/soundboard/update","POST",{"Content-Type":"application/json"},"Your changes were saved"),M(!1);let n=+new Date;A(null==n?void 0:n.toString())},children:[(0,l.jsx)(r.Z,{section_id:0,wizard_id:eO,set_wizard_id:eP,wizard_array:eU,submitting:N,set_submitting:S,processing:k,set_processing:C,set_changes:M,changes:z,children:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(h.Z,{url:null===(_=(0,x.E3)(ef,[])[0])||void 0===_?void 0:_.url,set_json:e_,empty_value:"[]",type:"image",title:"or set a background image",processing:eT,set_processing:eF,generate_prompt:"".concat(p.vc.upload.image.generation_prompt).concat(ee," ").concat(en," ").concat(ei,"}")}),(0,l.jsx)(g.Z,{allowed_files:["image"],file_type:1,api_url:"/api/private/upload/file?update=soundboardimage&amp;type=image&amp;origin=url&amp;cid=".concat(F),max_size:p.vc.upload.image.max_size,max_files:p.vc.upload.image.max_files,confirm_upload:!1,onUploadSingle:async e=&gt;{e_(t=&gt;{let n=JSON.stringify([JSON.parse(null==e?void 0:e.metadata_json)]);return ey("#ffffff"),M(!0),eF(!1),n})},files:eN,set_files:eS,total_files:ek,set_total_files:eC,track_files:eM,set_track_files:ez,changes:z,set_changes:M,processing:eT,set_processing:eF,swap_preview:!0,preview_url:null===(b=(0,x.E3)(ef,[])[0])||void 0===b?void 0:b.url,preview_json:(0,x.E3)(ef,[])[0],preview_width:null===(y=(0,x.E3)(ef,[])[0])||void 0===y?void 0:y.width,preview_height:null===(j=(0,x.E3)(ef,[])[0])||void 0===j?void 0:j.height})]})}),(0,l.jsx)(r.Z,{section_id:1,wizard_id:eO,set_wizard_id:eP,wizard_array:eU,submitting:N,set_submitting:S,processing:k,set_processing:C,set_changes:M,changes:z,children:(0,l.jsx)(l.Fragment,{})}),(0,l.jsx)(r.Z,{section_id:2,wizard_id:eO,set_wizard_id:eP,wizard_array:eU,submitting:N,set_submitting:S,processing:k,set_processing:C,set_changes:M,changes:z,children:(0,l.jsx)(d.Z,{isAdmin:eE,bol_admin_user_name:q,set_bol_admin_user_name:K,admin_user_name:G,set_admin_user_name:$,user_id:Q,set_user_id:X,submitting:N,set_submitting:S,processing:k,set_processing:C,changes:z,set_changes:M,title:"Set a Soundboard Owner",description:"",userdata:H,owner_name:null==Z?void 0:Z.user_name,owner_id:null==Z?void 0:Z.user_id})}),(0,l.jsx)(u.Z,{wizard_id:eO,set_wizard_id:eP,submitting:N,changes:z,actionText:I,wizard_array:eU})]})})]})})}},35571:function(e,t,n){n.d(t,{Z:function(){return TimestampForm}});var l=n(85893),i=n(31637),o=n(93463),a=n(64130),s=n(67294);let r=[{text:"none (don't include)",value:""},{text:"reaction",value:"reaction"},{text:"highlight",value:"highlight"},{text:"soundbyte",value:"soundbyte"},{text:"credit",value:"credit"},{text:"private",value:"private"},{text:"explicit",value:"explicit"},{text:"offensive",value:"offensive"},{text:"other (custom)",value:"other"}];function TimestampTags(e){let{tag:t,set_tag:n,show_other:i,set_show_other:o,tag_other:a,set_tag_other:s,tag_index:d,id:c}=e,cleanTag=e=&gt;{var t;return null===(t=e.replace(/[^a-z0-9_]/gi,""))||void 0===t?void 0:t.substr(0,45)};return d&lt;c?(0,l.jsx)(l.Fragment,{}):d&gt;=c?(0,l.jsxs)("div",{className:"mb-2 w-full flex-col",children:[(0,l.jsx)("div",{children:(0,l.jsx)("select",{className:"bg-gray-700 text-white w-full",onChange:e=&gt;{n(e.target.value),o("other"==e.target.value)},defaultValue:t,children:r.map((e,t)=&gt;(0,l.jsx)("option",{value:e.value,className:"bg-gray-700 text-white",children:e.text},t))})}),i&amp;&amp;(0,l.jsx)("div",{children:(0,l.jsx)("input",{type:"text",value:a,onChange:e=&gt;{s(cleanTag(e.target.value))},className:"bg-gray-700 text-white w-full",placeholder:"Enter one word, alphanumeric characters and underscores only"})})]}):void 0}var d=n(67707);function TimestampForm(e){let{clock:t,set_clock:n,closeModal:r,sendmsg:c,channel_id:u,live_chat:m,host_id:v,post_id:p,content_id:x,fetchurl:h="/api/private/timestamp/insert-chat"}=e,{isConfirmed:g}=(0,a.N)(),[f,_]=(0,s.useState)(1),[b,y]=(0,s.useState)(""),[j,w]=(0,s.useState)(""),[N,S]=(0,s.useState)(""),[k,C]=(0,s.useState)(""),[M,z]=(0,s.useState)(""),[T,F]=(0,s.useState)(""),[Z,O]=(0,s.useState)(""),[P,U]=(0,s.useState)(""),[E,D]=(0,s.useState)(""),[L,I]=(0,s.useState)(""),[R,A]=(0,s.useState)(""),[B,H]=(0,s.useState)(""),[V,J]=(0,s.useState)(""),[Y,W]=(0,s.useState)(""),[G,$]=(0,s.useState)(""),[q,K]=(0,s.useState)(""),strPrep=e=&gt;(0,i.M)(e)?" ".concat(e):"",strTag=(e,t)=&gt;"other"==e?(0,i.M)(t)?" -".concat(t):"":(0,i.M)(e)?" -".concat(e):"",saveTimestamp=async e=&gt;{fetch(h,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({msgstr:e,post_id:p,host_id:v,content_id:x})}).then(e=&gt;e.json()).then(e=&gt;{if(e){let{outcome:t}=e;1==t&amp;&amp;(0,d.Z)("Your timestamp has been saved!",{time:3e3,className:"",clickable:!0,clickClosable:!1})}})};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"mt-5  items-center content-center",children:[(0,l.jsxs)("div",{className:"mr-1 flex flex-col",children:[(0,l.jsx)("div",{className:"font-bold mb-2",children:"Timestamp"}),(0,l.jsx)("input",{type:"text",value:t,onChange:e=&gt;n(e.target.value),className:"w-full  bg-gray-700 text-white font-bold"})]}),(0,l.jsxs)("div",{className:"mr-1 flex-1 flex flex-col mt-5 ",children:[(0,l.jsx)("div",{className:"font-bold mb-2",children:"Optional Notes"}),(0,l.jsx)(o.Z,{className:"rounded shadow border resize-none  focus:shadow-outline w-full flex bg-gray-700 text-white ",id:"notes",name:"notes",value:q,onChange:e=&gt;K(e.target.value)})]}),(0,l.jsxs)("div",{className:"mr-1 flex-1 flex flex-col mt-5 ",children:[(0,l.jsx)("div",{className:"font-bold mb-2",children:"Optional Tags"}),(0,l.jsx)(TimestampTags,{tag:b,set_tag:y,show_other:R,set_show_other:A,tag_other:T,set_tag_other:F,tag_index:f,id:1}),(0,l.jsx)(TimestampTags,{tag:j,set_tag:w,show_other:B,set_show_other:H,tag_other:Z,set_tag_other:O,tag_index:f,id:2}),(0,l.jsx)(TimestampTags,{tag:N,set_tag:S,show_other:V,set_show_other:J,tag_other:P,set_tag_other:U,tag_index:f,id:3}),(0,l.jsx)(TimestampTags,{tag:k,set_tag:C,show_other:Y,set_show_other:W,tag_other:E,set_tag_other:D,tag_index:f,id:4}),(0,l.jsx)(TimestampTags,{tag:M,set_tag:z,show_other:G,set_show_other:$,tag_other:L,set_tag_other:I,tag_index:f,id:5}),(0,l.jsxs)("div",{className:"flex items-center content-center",children:[f&lt;=5&amp;&amp;(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsx)("button",{onClick:()=&gt;{_(e=&gt;e+1)},children:"+ Add a tag"})}),f&gt;=1&amp;&amp;(0,l.jsx)("div",{className:"flex-0",children:(0,l.jsx)("button",{onClick:()=&gt;{_(e=&gt;e-1)},children:"Remove tag"})})]})]})]}),(0,l.jsxs)("div",{className:" mt-5 flex items-center content-center",children:[(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsx)("button",{onClick:e=&gt;{e.preventDefault();var n="/t ".concat(t).concat(strTag(b,T)).concat(strTag(j,Z)).concat(strTag(N,P)).concat(strTag(k,E)).concat(strTag(M,L)).concat(strPrep(q));m?c(e,u,"message",{text:n,bol_private:0,emoji:0},""):saveTimestamp(n),r()},className:" rounded-md font-bold hover:opacity-80 bg-blue-600 text-white px-4 py-2 sm:text-2xl",children:"Save Timestamp"})}),(0,l.jsx)("div",{children:(0,l.jsx)("button",{onClick:async()=&gt;{let e=!0;q.length&gt;0&amp;&amp;(e=await g({title:"Are you sure you want to close?",body:(0,l.jsx)("div",{className:"text-left",children:"You have unsaved changes you will lose."}),confirm:"Yes, close anyway",cancel:"No, keep editing",show_title:!0,show_cancel:!0,show_confirm:!0})),e&amp;&amp;r()},className:" rounded-md hover:opacity-80 bg-gray-600 text-white px-4 py-2 sm:text-2xl",children:"Cancel"})})]})]})}},68185:function(e,t,n){n.d(t,{Z:function(){return FormInput}});var l=n(85893),i=n(30967),o=n(66067),a=n(81357),s=n(31637),r=n(40466),d=n(64130),c=n(53583),u=n(48633),m=n(67294);n(22004);var v=n(80008),p=n.n(v),x=n(93463),h=n(24762),g=n(38606),f=n(17814),_=n(75403),b=n(39375),y=n(27744),j=n(89245);function FormInput(e){var t,n,v,w,N,S,k,C,M,z,T,F,Z,O,P,U,E;let{name:D,title:L,type:I="text",category:R="",options:A=[],meta:B={maxChars:0,minRows:4,triggerArray:[""],triggerText:[(0,l.jsx)(l.Fragment,{})],max_files:i.vc.post.max_files,max_duration:i.vc.post.max_duration,disable_captions:!1,disable_alt:!1,autoFocus:!1},placeholder:H="",description:V="",helptip:J="",value:Y,set_value:W,submitting:G,set_submitting:$,changes:q,set_changes:K,hidden_value:Q="",set_hidden_value:X=e=&gt;{},processing:ee=-1,set_processing:et=e=&gt;{},index:en=0,show_condition:el=!0,isEditable:ei=!0,identifier:eo="container"}=e,{isConfirmed:ea}=(0,d.N)(),[es,er]=(0,u.kP)(),{userdata:ed,isUserDataLoading:ec,isUserDataError:eu}=(0,j.I)(),[em,ev]=(0,m.useState)(Q),[ep,ex]=(0,m.useState)(!1),[eh,eg]=(0,m.useState)(!1),[ef,e_]=(0,m.useState)((0,a.bv)(Y)),[eb,ey]=(0,m.useState)(!0),[ej,ew]=(0,m.useState)(0),[eN,eS]=(0,m.useState)(!1);(0,m.useEffect)(()=&gt;{eS(!0)},[]);let ek=(0,l.jsxs)("label",{htmlFor:D,children:[(0,l.jsx)("h3",{className:"font-bold",children:L}),(0,l.jsx)("div",{className:"italic text-sm",children:V})]}),[eC,eM]=(0,m.useState)(!1),{data:ez,loading:eT,error:eF}=(0,r.Z)("user"==I?Y:null,"/api/public/v0/user/select-name?name=".concat(Y),!0,i.vc.max_retries,i.vc.retry_interval,0);return((0,m.useEffect)(()=&gt;{var e,t;let n=(0,y.ZP)(null==ez?void 0:ez.user_id,null==ez?void 0:ez.bol_staff_help,null==ez?void 0:ez.staff_json,null==ez?void 0:ez.bol_admin_help,null===(e=ed.id)||void 0===e?void 0:e.toString(),null===(t=ed.bol_admin)||void 0===t?void 0:t.toString(),(0,i.oo)("broadcast"));eM(n),n&amp;&amp;X(null==ez?void 0:ez.user_id)},[ez,ed,i.oo,y.ZP,X]),el)?"user"==I?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("div",{className:"font-normal text-sm absolute z-100 inset-y-0 right-0 pr-3 flex items-center leading-5\n                  ".concat((null==ez?void 0:null===(Z=ez.user_id)||void 0===Z?void 0:Z.toString())!="0"&amp;&amp;eC?"text-green-500":"text-red-500","\n                  "),"data-tip":(null==ez?void 0:null===(O=ez.user_id)||void 0===O?void 0:O.toString())=="0"?"Not found":eC?"Success!":"User does not have staff help enabled","data-for":"inputform",children:(0,l.jsx)(_.Z,{type:"fill",icon:(null==ez?void 0:null===(P=ez.user_id)||void 0===P?void 0:P.toString())=="0"?"exclamation-circle-sm":eC?"check-circle-sm":"lock-closed-sm",className:" h-6 w-6 ",title:(null==ez?void 0:null===(U=ez.user_id)||void 0===U?void 0:U.toString())=="0"?"Not found":eC?"Great success":"User does not allow admin help"})}),(0,l.jsx)("input",{className:"rounded shadow border resize-none  focus:shadow-outline text-xl w-full relative\n                  \n                 placeholder-gray-500 bg-gray-800\n                            ".concat((null==ez?void 0:null===(E=ez.user_id)||void 0===E?void 0:E.toString())!="0"&amp;&amp;eC?"text-white ":" border-red-500\n                                  text-red-500 ","\n                            "),id:D,name:D,value:Y,onChange:e=&gt;{W(e.target.value),K(!0)},type:"text",disabled:G})]}),eN&amp;&amp;(0,l.jsx)(h.Z,{id:"inputform",place:"bottom",effect:"solid",clickable:!1,delayHide:200,delayUpdate:0,className:"reacttooltip rounded-3xl shadow-lg"})]}):"toggle"==I?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"my-4",children:(0,l.jsxs)("div",{className:"flex-1 flex items-center content-center h-8",children:[(0,l.jsx)("div",{className:"flex-0 flex mt-1 pr-2",children:(0,l.jsx)(b.Z,{bol_item:Y,toggle_text:L,size:"large",clickEvent:()=&gt;{W((0,o.k)(Y))}})}),(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsxs)("label",{htmlFor:D,children:[(0,l.jsxs)("div",{className:"flex items-center content-center",children:[(0,l.jsx)("div",{className:"flex-0",children:(0,l.jsx)("h3",{className:"font-bold",children:L})}),(null==J?void 0:J.length)&gt;0&amp;&amp;(0,l.jsx)("div",{className:"flex-0 ml-2",children:(0,l.jsx)(g.Z,{id:D,tip:J})})]}),(0,l.jsx)("div",{className:"italic text-sm",children:V})]})})]})})}):"color"==I?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"my-4 cursor-pointer",children:(0,l.jsxs)("div",{className:"flex-1 flex items-center content-center h-8 cursor-pointer",children:[(0,l.jsx)("div",{className:"flex-0 flex mt-1 pr-2",children:(0,l.jsx)("input",{type:"color",className:"w-10 h-10 resize-none border border-gray-700\n\n                                  ",id:D,name:D,value:Y,onChange:e=&gt;{W(e.target.value),K(!0)},disabled:G})}),(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsxs)("label",{htmlFor:D,children:[(0,l.jsxs)("div",{className:"flex items-center content-center",children:[(0,l.jsx)("div",{className:"flex-0",children:(0,l.jsxs)("h3",{className:"font-bold",children:[L," "]})}),(null==J?void 0:J.length)&gt;0&amp;&amp;(0,l.jsx)("div",{className:"flex-0 ml-2",children:(0,l.jsx)(g.Z,{id:D,tip:J})})]}),(0,l.jsx)("div",{className:"italic text-sm",children:V})]})})]})})}):(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"my-4",children:[(null==J?void 0:J.length)&gt;0&amp;&amp;(0,l.jsx)(g.Z,{id:D,tip:J}),-1&gt;=["mic","audio","image","avatarupload"].indexOf(I)&amp;&amp;ek,"text"==I&amp;&amp;(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("input",{className:"rounded shadow border outline-1 resize-none text-xl w-full \n                      ".concat((null==ez?void 0:null===(t=ez.user_id)||void 0===t?void 0:t.toString())!="0"&amp;&amp;eC?"":"border-red-500 focus:border-red-500 focus:outline-red-500","\n                        \n                         text-white placeholder-gray-500 bg-gray-800\n\n                          "),id:D,name:D,value:Y,onChange:e=&gt;{W(e.target.value),K(!0)},type:"text",disabled:G,maxLength:(null==B?void 0:B.maxChars)&gt;0?null==B?void 0:B.maxChars:524288,autoFocus:null==B?void 0:B.autoFocus})}),"textarea-autosize"==I&amp;&amp;(0,l.jsx)(x.Z,{className:"rounded shadow border resize-none  focus:shadow-outline text-xl w-full\n                          text-white placeholder-gray-500 bg-gray-800\n\n                          ",id:D,name:D,value:Y,onChange:e=&gt;{W(e.target.value),K(!0)},disabled:G,minRows:(0,s.M)(null==B?void 0:B.minRows)?null==B?void 0:B.minRows:4}),"select"==I&amp;&amp;(0,l.jsx)("select",{className:"rounded shadow border resize-none  cursor-pointer focus:shadow-outline text-xl w-full\n                          text-white placeholder-gray-500 bg-gray-800\n\n                          ",id:D,name:D,defaultValue:Y,onChange:e=&gt;{W(e.target.value),K(!0)},disabled:G,children:null==A?void 0:A.map((e,t)=&gt;(0,l.jsx)("option",{value:(0,s.M)(null==e?void 0:e.value)?null==e?void 0:e.value:e,children:(0,s.M)(null==e?void 0:e.text)?null==e?void 0:e.text:e},t))}),"selectbox"==I&amp;&amp;(0,l.jsx)("div",{className:"mt-1",children:null==A?void 0:A.map((e,t)=&gt;(0,l.jsx)("div",{className:"w-32 h-10 text-center mr-2 mb-2 font-bold cursor-pointer inline-flex items-center content-center border rounded-md\n                        ".concat(Y==(null==e?void 0:e.value)?"border-blue-500 bg-blue-500 hover:bg-blue-400 text-white":"border-gray-700  hover:border-gray-400 text-gray-400 hover:text-white ","\n                        "),onClick:async()=&gt;{var t;if((null===(t=JSON.parse(Q))||void 0===t?void 0:t.length)&gt;0){let t=await ea("Changing your post will reset all your attachments. Are you sure?");t&amp;&amp;(X("[]"),W((0,s.M)(null==e?void 0:e.value)?null==e?void 0:e.value:e))}else W((0,s.M)(null==e?void 0:e.value)?null==e?void 0:e.value:e)},children:(0,l.jsx)("div",{className:"mx-auto",children:(0,s.M)(null==e?void 0:e.text)?null==e?void 0:e.text:e})},t))}),"selectoptions"==I&amp;&amp;(0,l.jsxs)("div",{className:"mt-1",children:[null==A?void 0:A.map((e,t)=&gt;(0,l.jsx)("div",{children:(0,l.jsx)(f.Z,{set_selected_value:()=&gt;{W((0,s.M)(null==e?void 0:e.value)?null==e?void 0:e.value:e),K(!0)},selected_value:Y,value:null==e?void 0:e.value,text:(0,l.jsx)(l.Fragment,{children:(0,s.M)(null==e?void 0:e.text)?null==e?void 0:e.text:e}),premium_level:(0,s.M)(null==e?void 0:e.premium_level)?null==e?void 0:e.premium_level:0,userdata:null==e?void 0:e.userdata,recommended:null==e?void 0:e.recommended})},t)),(null==B?void 0:null===(n=B.triggerArray)||void 0===n?void 0:n.indexOf(null==Y?void 0:Y.toString()))&gt;-1&amp;&amp;(0,l.jsx)("div",{className:"py-5",children:(0,l.jsx)("div",{className:" text-white bg-red-700 border border-red-900 px-4 py-2 rounded-md",children:null==B?void 0:B.triggerText[null==B?void 0:null===(v=B.triggerArray)||void 0===v?void 0:v.indexOf(null==Y?void 0:Y.toString())]})})]}),"date"==I&amp;&amp;(0,l.jsxs)("div",{className:"sm:flex items-center content-center",children:[(0,l.jsx)("div",{className:"flex-0",children:(0,l.jsx)("input",{className:"rounded shadow border outline-1 resize-none text-xl w-full cursor-pointer\n                          ".concat((null==ez?void 0:null===(w=ez.user_id)||void 0===w?void 0:w.toString())!="0"&amp;&amp;eC?"":"border-red-500 focus:border-red-500 focus:outline-red-500","\n                            \n                              text-white placeholder-gray-500 bg-gray-800\n\n                              "),placeholder:H,id:D,name:D,value:ef,onBlur:e=&gt;{try{var t;let n=(0,a.Tj)((t=new Date((0,s.M)(e.target.value)?e.target.value:""),void 0===t)?void 0:t.toISOString());W({...Y,year:null==n?void 0:n.year,month:null==n?void 0:n.month,date:null==n?void 0:n.date,second:"00",millisecond:"000"}),K(!0)}catch(e){console.log("oopsie",e)}},onChange:e=&gt;{e_(e.target.value)},type:"date",disabled:G})}),(0,l.jsxs)("div",{className:"flex-0 flex items-center content-center",children:[(0,l.jsx)("div",{className:"flex-0",children:(0,l.jsxs)("select",{className:"rounded shadow border resize-none cursor-pointer focus:shadow-outline text-xl w-full\n                                text-white placeholder-gray-500 bg-gray-800\n                                ",id:D,name:D,value:parseInt(null==Y?void 0:Y.hour)&gt;12?(0,c.w)((parseInt(null==Y?void 0:Y.hour)-12).toString(),2,"0"):(0,c.w)(null==Y?void 0:null===(N=Y.hour)||void 0===N?void 0:N.toString(),2,"0"),onChange:e=&gt;{W(t=&gt;{var n;return{...t,hour:(null==t?void 0:t.meridian)=="AM"?e.target.value:null===(n=parseInt(null==e?void 0:e.target.value)+12)||void 0===n?void 0:n.toString(),second:"00",millisecond:"000"}}),K(!0)},disabled:G,children:[(0,l.jsx)("option",{value:"12",children:12},en),[...Array(11).keys()].map((e,t)=&gt;(0,l.jsx)("option",{value:(0,c.w)(e+1,2,"0"),children:(0,c.w)(e+1,2,"0")},t))]})}),(0,l.jsx)("div",{className:"flex-0",children:(0,l.jsx)("select",{className:"rounded shadow border resize-none  cursor-pointer focus:shadow-outline text-xl w-full\n                                text-white placeholder-gray-500 bg-gray-800\n                                ",id:D,name:D,value:null==Y?void 0:null===(S=Y.minute)||void 0===S?void 0:S.toString(),onChange:e=&gt;{W({...Y,minute:e.target.value,second:"00",millisecond:"000"}),K(!0)},disabled:G,children:[...Array(60).keys()].map((e,t)=&gt;(0,l.jsx)("option",{value:(0,c.w)(e,2,"0"),children:(0,c.w)(e,2,"0")},t))})}),(0,l.jsx)("div",{className:"flex-0",children:(0,l.jsx)("select",{className:"rounded shadow border resize-none  cursor-pointer focus:shadow-outline text-xl w-full\n                                text-white placeholder-gray-500 bg-gray-800\n                                ",id:D,name:D,value:null==Y?void 0:null===(k=Y.meridian)||void 0===k?void 0:k.toString(),onChange:e=&gt;{W(t=&gt;{var n,l,i;return{...Y,meridian:e.target.value,hour:"AM"==e.target.value?12&gt;=parseInt(null==t?void 0:t.hour)?null==t?void 0:null===(n=t.hour)||void 0===n?void 0:n.toString():(parseInt(null==t?void 0:t.hour)-12).toString():parseInt(null==t?void 0:t.hour)&gt;12?null==t?void 0:null===(l=t.hour)||void 0===l?void 0:l.toString():null===(i=parseInt(null==t?void 0:t.hour)+12)||void 0===i?void 0:i.toString(),second:"00",millisecond:"000"}}),K(!0)},disabled:G,children:["AM","PM"].map((e,t)=&gt;(0,l.jsx)("option",{value:e,children:e},t))})})]})]}),"timezone"==I&amp;&amp;(0,l.jsxs)("div",{className:"flex items-center content-center",children:[(0,l.jsx)("div",{className:"flex-0 flex items-center content-center",children:(0,l.jsx)("select",{className:"rounded shadow border resize-none  cursor-pointer focus:shadow-outline text-xl w-full\n                                text-white placeholder-gray-500 bg-gray-800\n                                ",id:D,name:D,value:Y,onChange:e=&gt;{W(e.target.value),K(!0)},disabled:G,children:null===(C=p().tz.names())||void 0===C?void 0:C.map((e,t)=&gt;(0,l.jsx)("option",{value:e,children:e},t))})}),(0,l.jsx)("div",{className:"text-xl font-bold ml-4",children:p().tz(Q,Y).format("z")})]}),"time"==I&amp;&amp;(0,l.jsxs)("div",{className:"flex items-center content-center",children:[(0,l.jsx)("div",{className:"flex-0",children:(0,l.jsx)("select",{className:"rounded shadow border resize-none cursor-pointer focus:shadow-outline text-xl w-full\n                              text-white placeholder-gray-500 bg-gray-800\n                              ",id:D,name:D,value:null==Y?void 0:null===(M=Y.hours)||void 0===M?void 0:M.toString(),onChange:e=&gt;{W({...Y,hours:e.target.value}),K(!0)},disabled:G,children:null===(z=i.XV.hours)||void 0===z?void 0:z.map((e,t)=&gt;(0,l.jsx)("option",{value:e,children:e},t))})}),(0,l.jsx)("div",{className:"flex-0",children:(0,l.jsx)("select",{className:"rounded shadow border resize-none  cursor-pointer focus:shadow-outline text-xl w-full\n                              text-white placeholder-gray-500 bg-gray-800\n                              ",id:D,name:D,value:null==Y?void 0:null===(T=Y.minutes)||void 0===T?void 0:T.toString(),onChange:e=&gt;{W({...Y,minutes:e.target.value}),K(!0)},disabled:G,children:null===(F=i.XV.minutes)||void 0===F?void 0:F.map((e,t)=&gt;(0,l.jsx)("option",{value:e,children:e},t))})})]})]})}):(0,l.jsx)(l.Fragment,{})}n(93813)},38606:function(e,t,n){n.d(t,{Z:function(){return HelpTip}});var l=n(85893),i=n(75403),o=n(24762),a=n(53787),s=n.n(a),r=n(63702),d=n(31637),c=n(30967),u=n(67294);function HelpTip(e){let{id:t,tip:n,className:a="float-right block relative m-auto ",placement:m="right"}=e;var v=new(s()).Converter;let[p,x]=(0,u.useState)(!1);return((0,u.useEffect)(()=&gt;{x(!0)},[]),(0,d.M)(n))?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("a",{"data-tip":!0,"data-for":"helptip-".concat(t),className:"".concat(a," cursor-pointer text-gray-300 hover:text-gray-400  w-5 h-5  text-center align-middle text-xs"),children:(0,l.jsx)(i.Z,{type:"fill",icon:"help-sm",className:"w-5 h-5",title:"Help Tips",color:"currentColor"})}),p&amp;&amp;(0,l.jsx)(o.Z,{id:"helptip-".concat(t),place:"".concat(m),effect:"solid",type:"info",clickable:!0,delayHide:500,delayUpdate:500,className:"reacttooltip rounded-3xl shadow-l",children:(0,l.jsx)("div",{className:"w-64 helptips markdown",children:(0,r.Z)(v.makeHtml(n||c.GE.missing_info))})})]}):(0,l.jsx)(l.Fragment,{})}},79855:function(e,t,n){n.d(t,{Z:function(){return LayoutPageBlank}});var l=n(85893),i=n(30967),o=n(9008),a=n.n(o);function LayoutPageBlank(e){let{ssr_data_tribe:t,title:n=(0,i.$y)(t).title,url:o=(0,i.$y)(t).url,image:s=(0,i.$y)(t).image,description:r=(0,i.$y)(t).description,keywords:d=(0,i.$y)(t).keywords,children:c}=e,u=(0,i.it)(r),m=(0,i.Jn)(n,t);return(0,l.jsxs)("div",{className:"bg-gray-800",children:[(0,l.jsxs)(a(),{children:[(0,l.jsx)("link",{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:(0,i.$y)(t).color}),(0,l.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),(0,l.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),(0,l.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),(0,l.jsx)("link",{rel:"icon",href:"/favicon.ico"}),(0,l.jsx)("link",{rel:"manifest",href:"/site.webmanifest"}),(0,l.jsx)("link",{rel:"sitemap",type:"application/xml",title:"Sitemap",href:"".concat(null==t?void 0:t.server_website,"/sitemap.xml")}),(0,l.jsx)("meta",{name:"apple-mobile-web-app-title",content:null==t?void 0:t.brand_name}),(0,l.jsx)("meta",{name:"application-name",content:null==t?void 0:t.brand_name}),(0,l.jsx)("meta",{name:"theme-color",content:(0,i.$y)(t).color}),(0,l.jsx)("meta",{name:"msapplication-TileColor",content:(0,i.$y)(t).color}),(0,l.jsx)("meta",{name:"msapplication-TileImage",content:"/mstile-144x144.png"}),(0,l.jsx)("meta",{name:"theme-color",content:(0,i.$y)(t).color}),(0,l.jsx)("meta",{name:"robots",content:"index, follow"}),(0,l.jsx)("meta",{property:"twitter:card",content:"summary"}),(0,l.jsx)("meta",{property:"og:site_name",content:null==t?void 0:t.brand_name}),(0,l.jsx)("meta",{property:"og:type",content:(0,i.$y)(t).type}),(0,l.jsx)("link",{rel:"canonical",href:o},"canonical"),(0,l.jsx)("title",{children:m},"title"),(0,l.jsx)("meta",{name:"description",content:u},"description"),(0,l.jsx)("meta",{name:"keywords",content:d},"keywords"),(0,l.jsx)("meta",{property:"og:title",content:m},"metaogtitle"),(0,l.jsx)("meta",{name:"og:description",content:u},"ogdescription"),(0,l.jsx)("meta",{property:"og:url",content:o},"ogurl"),(0,l.jsx)("meta",{property:"og:image",content:"".concat(s)},"ogimage"),(0,l.jsx)("meta",{name:"twitter:image:alt",content:m},"twitterimagealt"),(0,l.jsx)("meta",{property:"twitter:url",content:o},"twitterurl"),(0,l.jsx)("meta",{property:"twitter:title",content:m},"twittertitle"),(0,l.jsx)("meta",{property:"twitter:description",content:u},"twitterdescription"),(0,l.jsx)("meta",{property:"twitter:image:src",content:"".concat(s)},"twitterimagesrc")]}),c]})}},33406:function(e,t,n){n.d(t,{Z:function(){return NavPrimary}});var l=n(85893),i=n(67294),o=n(48633),a=n(36808),s=n.n(a),r=n(30967);async function getRemoveUserCookies(){s().remove("".concat(r.vc.cookietoken))}var d=n(67707),c=n(20456),u=n(31637),m=n(75403),v=n(53885),p=n(41664),x=n.n(p),h=n(40466),g=n(3751),f=n(53583),_=n(81795),b=n(289),y=n(89755),j=n.n(y),w=n(92345),N=n(64130),S=n(35571),k=n(44080),C=n(46125);function PlayerModal(e){let{modal_panel:t,isModalOpen:n,clock:o,set_clock:a,closeModal:s,sendmsg:r,channel_id:d,host_id:c,post_id:u,content_id:m}=e;return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(k.u,{appear:!0,show:n,as:i.Fragment,children:(0,l.jsx)(C.V,{as:"div",open:n,className:"fixed inset-0  z-[2000] overflow-y-scroll bg-[rgb(0,0,0,0.85)]",onClose:s,children:(0,l.jsxs)("div",{className:"min-h-screen px-4 text-center",children:[(0,l.jsx)(k.u.Child,{as:i.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,l.jsx)(C.V.Overlay,{className:"fixed inset-0 "})}),(0,l.jsx)("span",{className:"inline-block h-screen align-middle","aria-hidden":"true",children:"​"}),(0,l.jsx)(k.u.Child,{as:i.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,l.jsx)("div",{className:" inline-block max-w-3xl w-full border transform p-6 my-8 overflow-hidden text-left align-middle transition-all shadow-xl rounded-2xl bg-gray-900 border-gray-700",children:(0,l.jsx)("div",{className:"items-center content-center",children:(0,l.jsx)("div",{className:"flex-1",children:["timestamp"].indexOf(null==t?void 0:t.id)&gt;-1&amp;&amp;(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(S.Z,{clock:o,set_clock:a,closeModal:s,sendmsg:r,channel_id:d,live_chat:!1,host_id:c,post_id:u,content_id:m,fetchurl:0==u?"/api/private/timestamp/insert-chat":"/api/private/timestamp/insert"})})})})})})]})})})})}var M=n(75138),z=n(93813);function PlayerNavUx(e){var t,n,o;let{type:a,open:s,set_open:d,visibleText:v,panelContents:p,days:x,hours:h,minutes:g,seconds:_,togglePlay:b}=e,{isConfirmed:y}=(0,N.N)(),{player_state:S,set_player_state:k}=(0,i.useContext)(c.E),[C,T]=(0,i.useState)(!1),[F,Z]=(0,i.useState)("00:00:00"),O=(0,i.useRef)(null),P=(0,i.useRef)(null),[U,E]=(0,i.useState)(!1);(0,i.useEffect)(()=&gt;(E(!0),()=&gt;{}),[]);let closeMenu=()=&gt;{O.current&amp;&amp;O.current.close()};return U?(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"flex-1 flex items-center content-center",children:[(0,l.jsxs)("div",{className:"flex-0 ml-2 flex items-center content-center",role:"button",children:[(0,l.jsx)("div",{className:"flex-0 ",children:(0,l.jsx)("div",{className:" flex-0 menu flex items-center content-center relative ",children:(0,l.jsx)(w.Z,{trigger:e=&gt;{var t,n,i;return(0,l.jsxs)("div",{className:"flex-0  shrink-0 flex items-center content-center font-bold p-0 pl-0.5 cursor-pointer\n                                    \n                                    \n                                    ".concat((null==S?void 0:null===(t=S.broadcast_status)||void 0===t?void 0:t.toString())=="1"||"file"==a?"bg-red-600 hover:bg-red-500 border-red-700 text-white ":" bg-gray-500 text-gray-200 ","\n\n                                    ").concat("file"!=a&amp;&amp;((null==S?void 0:null===(n=S.broadcast_status)||void 0===n?void 0:n.toString())!="1"||(null==S?void 0:S.isEnded))?"rounded-full":"rounded-l-full","\n                                    \n                                    "),onClick:()=&gt;{"player"!==s?d("player"):d("")},children:[(0,l.jsx)("div",{className:"flex-0 flex items-center content-center  shrink-0",children:(0,l.jsx)(j(),{src:(0,u.M)((0,z.D)(null==S?void 0:S.avatar_url))?(0,z.D)(null==S?void 0:S.avatar_url):r.vc.avatar.url_missing,alt:null==S?void 0:S.user_name,className:"h-7 w-7 rounded-full shrink-0 bg-white  object-cover\n                                          ".concat((null==S?void 0:S.player_type)=="live"&amp;&amp;(null==S?void 0:null===(i=S.broadcast_status)||void 0===i?void 0:i.toString())=="1"||(null==S?void 0:S.player_type)=="file"&amp;&amp;S.isPlaying?"animate-spin-slow":"","\n                                          "),width:24,height:24,quality:100})}),(0,l.jsxs)("div",{className:"flex-0 ml-1 flex items-center content-center",children:[(0,l.jsx)("div",{className:"flex-0 uppercase ml-0.5 mr-2 min-w-[48px] flex items-center content-center py-1 text-sm",children:v}),(0,l.jsx)("div",{className:"flex-0  flex items-center content-center",role:"button",children:(0,l.jsx)(m.Z,{type:"fill",icon:"chevron-down-sm",className:"h-5 w-5  ",title:"open menu"})})]})]})},position:"bottom left",on:"click",open:s,onOpen:()=&gt;d("player"),closeOnDocumentClick:!0,closeOnEscape:!0,mouseLeaveDelay:300,mouseEnterDelay:0,contentStyle:{padding:"0px",border:"none",backgroundColor:"transparent",zIndex:1999},arrow:!1,nested:!0,ref:O,children:(0,l.jsxs)("div",{className:"menu fixed top-[45px] left-0 sm:left-auto sm:w-64 w-full flex flex-col gap-y-1 rounded-md shadow-xl p-2 mt-0.5\n                          \n                    ".concat((null==S?void 0:null===(t=S.broadcast_status)||void 0===t?void 0:t.toString())=="1"||"file"==a?"bg-red-600 hover:bg-red-500 border-red-700 text-white":" bg-gray-500 text-gray-200","\n                          \n                          "),children:[(0,l.jsx)("div",{children:p}),(0,l.jsx)("div",{className:"mt-1 border-t pt-2 ".concat((null==S?void 0:null===(n=S.broadcast_status)||void 0===n?void 0:n.toString())=="1"?"border-red-900":"border-gray-600"),children:(0,l.jsx)("button",{className:"border rounded-md border-white px-2 py-1",onClick:()=&gt;{T(!0),Z("".concat((0,f.B)(h),":").concat((0,f.B)(g),":").concat((0,f.B)(_)))},children:"Save timestamp"})})]})})})}),!(null==S?void 0:S.isEnded)&amp;&amp;(0,l.jsx)("div",{className:"flex-0 rounded-r-full flex items-center content-center font-bold p-0 h-7\n                              cursor-pointer bg-red-600 hover:bg-red-500   text-white\n                              \n                            ",onClick:()=&gt;{b()},children:(0,l.jsx)("div",{className:"flex-0 flex items-center content-center",children:(0,l.jsx)("div",{className:"flex-0 p-0 pr-0.5",role:"button",children:(0,l.jsx)(m.Z,{type:"fill",icon:(null==S?void 0:S.isPlaying)?"pause-large-sm":"play-large-sm",className:"h-6 w-6 p-1 mt-0.5\n                            \n                            ".concat((null==S?void 0:S.isPlaying)?"":"animate-pulse","\n                            "),title:(null==S?void 0:S.isPlaying)?"pause":"play"})})})}),"file"==a&amp;&amp;(null==S?void 0:S.isEnded)&amp;&amp;(0,l.jsx)("div",{className:"flex-0 border-l rounded-r-full flex items-center content-center font-bold p-1 \n                          cursor-pointer \n                            ".concat(S.isPlaying||(null==S?void 0:null===(o=S.broadcast_status)||void 0===o?void 0:o.toString())=="0"?"":"animate-pulse","\n                              bg-red-600 hover:bg-red-500 border-red-700 text-white\n                              \n                            "),onClick:()=&gt;{k({...S,isPlaying:!(null==S?void 0:S.isPlaying),isEnded:!1,seek:0,seek_slider:0,seek_ratio:0})},children:(0,l.jsx)("div",{className:"h-5 w-5 rounded-full mx-auto  flex items-center content-center justify-center",children:(0,l.jsx)(m.Z,{type:"fill",icon:"refresh-sm",className:" h-12 w-12 text-white rounded-full",title:"restart"})})})]}),(0,l.jsx)("div",{className:"flex-0  flex items-center content-center font-bold p-0 cursor-pointer ml-1\n                          \n                         text-gray-600 hover:text-gray-400",onClick:async()=&gt;{let e=await y("Are you sure you want to close and hide the player?");e&amp;&amp;(k({...S,file:"",title:"",seek:0,seek_ratio:0,seek_slider:0,length:0,user_id:0,user_name:"",content_id:0,content_id_last:0,post_id:0,post_id_last:0,content_table:"",avatar_url:"",isHide:"1",playerRef:P}),closeMenu())},children:(0,l.jsx)("div",{className:"flex-0 flex items-center content-center",children:(0,l.jsx)("div",{className:"flex-0",children:(0,l.jsx)(m.Z,{type:"fill",icon:"x-sm",className:"h-4 w-4  ",title:"close"})})})}),(0,l.jsx)(PlayerModal,{modal_panel:{id:"timestamp"},isModalOpen:C,clock:F,set_clock:Z,closeModal:()=&gt;{T(!1)},sendmsg:()=&gt;{},channel_id:"",host_id:null==S?void 0:S.user_id,post_id:(0,M.U)(null==S?void 0:S.post_id,0),content_id:null==S?void 0:S.content_id})]})}):(0,l.jsx)(l.Fragment,{})}let PlayerNavLive=function(e){var t,n,o,a,s,d,p,y,j,w,N;let S;let{open:k,set_open:C,userdata:M}=e,z=(0,i.useContext)(b.ZR),{player_state:T,set_player_state:F}=(0,i.useContext)(c.E),Z="".concat(null==z?void 0:z.brand_id,"-").concat(r.vc.websockets.listen).concat(T.user_id),doFidelity=e=&gt;{var t,n;if((null==e?void 0:e.toString())=="2"&amp;&amp;(null==M?void 0:null===(t=M.id)||void 0===t?void 0:t.toString())=="0"||(null==M?void 0:M.contributor_level)&lt;1){alert("This live stream quality level is only available for paid contributors.");return}if((null==e?void 0:e.toString())=="1"&amp;&amp;(null==M?void 0:null===(n=M.id)||void 0===n?void 0:n.toString())=="0"){alert("This live stream quality level is only available for registered members. Create an account and try again.");return}F(t=&gt;({...T,listen_experience:parseInt(e),file:"".concat(null==t?void 0:t.url,"pl-").concat(e,".m3u8")}))},onMount=async(e,t)=&gt;{var n=r.vc.chat.flair.defaultcolorbg,l=r.vc.chat.flair.defaultcolortext;e.presence.update({id:null==t?void 0:t.id,user_name:null==t?void 0:t.user_name,avatar_url:null==t?void 0:t.avatar_url,avatar_url_sfw:null==t?void 0:t.avatar_url_sfw,avatar_crdate:null==t?void 0:t.avatar_crdate,bol_nsfw:null==t?void 0:t.bol_nsfw,contributor_level:null==t?void 0:t.contributor_level,custom_flair:"",flair_t:-1,flair_b:n,flair_c:l,listen:!0})},onUnmount=e=&gt;{e.presence.leave(),e.presence.unsubscribe(),e.unsubscribe()},O=(0,i.useContext)(_.JA);(0,i.useEffect)(()=&gt;{if(M&amp;&amp;!M.isLoading){var e;onMount(null==O?void 0:null===(e=O.channels)||void 0===e?void 0:e.get(Z),M)}},[M]),(0,i.useEffect)(()=&gt;()=&gt;{var e;onUnmount(null==O?void 0:null===(e=O.channels)||void 0===e?void 0:e.get(Z))},[]);let P=+new Date(null==T?void 0:T.stream_start_date),U=+new Date,E=new Date;E.setSeconds(E.getSeconds()+(U-P)/1e3);let{seconds:D,minutes:L,hours:I,days:R,isRunning:A,start:B,pause:H,reset:V}=(0,g.useStopwatch)({autoStart:!0,offsetTimestamp:E}),{data:J,loading:Y,error:W}=(0,h.Z)((null==T?void 0:null===(t=T.player_type)||void 0===t?void 0:t.toString())=="live"&amp;&amp;!(null==T?void 0:T.isEnded)&amp;&amp;(0,u.M)(null==T?void 0:null===(n=T.content_id)||void 0===n?void 0:n.toString())&amp;&amp;(null==T?void 0:null===(o=T.content_id)||void 0===o?void 0:o.toString())!=="0"&amp;&amp;(null==T?void 0:null===(a=T.content_id)||void 0===a?void 0:a.toString()),"/api/public/v0/broadcast/status?id=".concat(null==T?void 0:T.content_id),!0,r.vc.max_retries,r.vc.retry_interval,r.vc.profile.stream_interval_host);(0,i.useEffect)(()=&gt;{if(!Y&amp;&amp;!W&amp;&amp;J){var e,t,n,l,i,o,a,s,r;(null==J?void 0:null===(e=J.stream_status)||void 0===e?void 0:e.toString())!="1"||(null==T?void 0:null===(t=T.broadcast_status)||void 0===t?void 0:t.toString())!="0"||(F({...T,broadcast_status:null==J?void 0:J.stream_status,isEnded:!1,isPlaying:!0}),A||B()),(null==J?void 0:null===(n=J.stream_status)||void 0===n?void 0:n.toString())=="0"&amp;&amp;(null==T?void 0:null===(l=T.broadcast_status)||void 0===l?void 0:l.toString())=="1"&amp;&amp;(F({...T,broadcast_status:null==J?void 0:J.stream_status,isEnded:!0,isPlaying:!1}),A&amp;&amp;H()),(null==J?void 0:null===(i=J.broadcast_id)||void 0===i?void 0:i.toString())==(null==T?void 0:null===(o=T.content_id)||void 0===o?void 0:o.toString())&amp;&amp;(null==T?void 0:null===(a=T.content_table)||void 0===a?void 0:a.toString())=="broadcast"&amp;&amp;(null==J?void 0:null===(s=J.broadcast_title)||void 0===s?void 0:s.toString())!==(null==T?void 0:null===(r=T.title)||void 0===r?void 0:r.toString())&amp;&amp;F({...T,title:null==J?void 0:J.broadcast_title})}},[J,Y,W,T,F]);let togglePlay=()=&gt;{(null==T?void 0:T.broadcast_status)=="1"?F(e=&gt;({...T,isPlaying:!(null==e?void 0:e.isPlaying),file:(null==e?void 0:e.isPlaying)?"":"".concat(null==e?void 0:e.url,"pl-").concat((null==e?void 0:e.listen_experience)||"0",".m3u8?").concat(+new Date)})):alert("The show is currently OFF AIR and cannot be played.")};return(0,l.jsx)(l.Fragment,{children:"0"==T.isHide&amp;&amp;(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(PlayerNavUx,{type:"live",open:k,set_open:C,visibleText:(null==T?void 0:null===(s=T.broadcast_status)||void 0===s?void 0:s.toString())=="1"?"LIVE":"OFF AIR",panelContents:(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"",children:["Title:",(0,l.jsx)(x(),{href:"/".concat(null==T?void 0:null===(d=T.user_name)||void 0===d?void 0:d.toLowerCase(),"/chat"),className:"ml-1 underline hover:no-underline outline-0 focus:ring-0 focus:ring-offset-0",children:(0,u.M)(null==T?void 0:T.title)?null==T?void 0:T.title:"Untitled ".concat((N=null==T?void 0:T.stream_start_date,S=new Date(N),"".concat((null==S?void 0:S.getMonth())+1,"/").concat(null==S?void 0:S.getDate()))," Show")})]}),(0,l.jsxs)("div",{className:"",children:["Host:",(0,l.jsx)(x(),{href:"/".concat(null==T?void 0:null===(p=T.user_name)||void 0===p?void 0:p.toLowerCase()),className:"ml-1 underline hover:no-underline outline-0 focus:ring-0 focus:ring-offset-0",children:null==T?void 0:T.user_name})]}),(0,l.jsx)("div",{className:"",children:"Type: Broadcast"}),(0,l.jsxs)("div",{className:"flex",children:["Duration:",(0,l.jsxs)("span",{className:"ml-2",children:[(0,l.jsx)("span",{children:(0,f.B)(I)}),":",(0,l.jsx)("span",{children:(0,f.B)(L)}),":",(0,l.jsx)("span",{children:(0,f.B)(D)})]})]}),(0,l.jsxs)("div",{className:"hidden",children:["Status:"," ",(null==T?void 0:T.isMediaLoaded)?"Loaded":(null==T?void 0:T.isBuffering)?"Buffering":"Error"]})]}),(0,l.jsxs)("div",{className:"flex items-center content-center",children:["Quality:",(0,l.jsx)("select",{className:"\n                    ".concat((null==T?void 0:null===(y=T.broadcast_status)||void 0===y?void 0:y.toString())=="1"?"bg-red-600 text-white":"bg-gray-500 text-gray-200","\n                    border border-white rounded-md ml-1 text-xs py-0.5 "),onChange:e=&gt;doFidelity(e.target.value),value:null==T?void 0:T.listen_experience,children:r.cS.map((e,t)=&gt;(0,l.jsx)("option",{value:e.value,children:e.text},t))})]}),(null==T?void 0:T.player_type)=="live"&amp;&amp;(0,l.jsxs)("div",{className:"group flex items-center content-center text-center my-5 border-t justify-center pt-4 \n              ".concat((null==T?void 0:T.broadcast_status)=="1"?"cursor-pointer":"","\n\n              ").concat((null==T?void 0:null===(j=T.broadcast_status)||void 0===j?void 0:j.toString())=="1"?"border-red-900":"border-gray-600","\n              \n              "),onClick:()=&gt;togglePlay(),children:[(0,l.jsx)("div",{className:"flex-0  opacity-100 group-hover:opacity-90",children:(0,l.jsx)(m.Z,{type:"fill",icon:(null==T?void 0:T.broadcast_status)=="0"?"stop-sm":(null==T?void 0:T.isPlaying)?"pause-sm":"play-sm",className:"h-24 w-24  mx-auto ",title:(null==T?void 0:T.broadcast_status)=="0"?"stop":(null==T?void 0:T.isPlaying)?"pause":"play"})}),(0,l.jsx)("div",{className:"flex-1 font-bold my-auto text-2xl flex items-center ml-2 opacity-100 group-hover:opacity-90",children:(0,l.jsx)("div",{children:(null==T?void 0:T.broadcast_status)=="0"?"OFF AIR":(null==T?void 0:T.isPlaying)?"Listening":(null==T?void 0:T.isLoading)?"Loading":"Stopped"})})]}),(0,l.jsxs)("div",{className:"flex items-center content-center border-t pt-4\n              \n              ".concat((null==T?void 0:null===(w=T.broadcast_status)||void 0===w?void 0:w.toString())=="1"?"border-red-900":"border-gray-600","\n            "),children:[(0,l.jsx)("div",{className:"flex-0 cursor-pointer opacity-100 hover:opacity-75\n                          ".concat((null==T?void 0:T.isMuted)?" animate-pulse":"","\n                "),onClick:()=&gt;{F({...T,isMuted:!(null==T?void 0:T.isMuted)})},children:(0,l.jsx)(m.Z,{type:"fill",icon:(null==T?void 0:T.isMuted)?"volume-off-sm":"volume-up-sm",className:"h-4 w-4  ",title:(null==T?void 0:T.isMuted)?"Muted":"Unmuted"})}),(0,l.jsx)("div",{className:"flex-1 ml-2 text-sm px-2",children:(0,l.jsx)(v.Z,{axis:"x",x:null==T?void 0:T.volume_slider,xmax:100,disabled:null==T?void 0:T.isMuted,onChange:e=&gt;{let{x:t}=e;F({...T,volume:t/100,volume_slider:t}),localStorage.setItem("volume_slider",null==t?void 0:t.toString())},styles:(0,r.sZ)(null==T?void 0:T.isPlaying)})}),(0,l.jsxs)("div",{className:"flex-0 ml-3 w-8 text-left text-xs cursor-pointer  opacity-100 hover:opacity-75",onClick:()=&gt;{F({...T,volume:1,volume_slider:100,isMuted:!1})},children:[(null==T?void 0:T.isMuted)?"0":Math.round((null==T?void 0:T.volume)*100),"%"]})]})]}),days:R,seconds:D,minutes:L,hours:I,togglePlay:togglePlay})})})};var T=n(46900),F=n(34170),Z=n(68693);function PlayerNavFile(e){var t,n,o,a,s;let d;let{open:p,set_open:h}=e,{player_state:f,set_player_state:_}=(0,i.useContext)(c.E),b=+new Date(null==f?void 0:f.stream_start_date),y=+new Date,j=new Date;j.setSeconds(j.getSeconds()+(y-b)/1e3);let{seconds:w,minutes:N,hours:S,days:k,isRunning:C,start:M,pause:z,reset:O}=(0,g.useStopwatch)({autoStart:!0,offsetTimestamp:j}),doSeek=(e,t)=&gt;{var n,l;null==f||null===(l=f.playerRef)||void 0===l||null===(n=l.current)||void 0===n||n.seekTo(e,"seconds"),_({...f,seek:e,seek_ratio:t/100,seek_slider:t,isEnded:e&gt;=f.duration})},doSeekbyRatio=e=&gt;{let t=Math.round(e/100*(null==f?void 0:f.duration));doSeek(t,e)},doSeekbySeconds=e=&gt;{let t=100*e/(null==f?void 0:f.duration);doSeek(e,t)},doPlayback=e=&gt;{_({...f,playbackRate:e})},togglePlay=()=&gt;{_({...f,isPlaying:!(null==f?void 0:f.isPlaying)})};return(0,l.jsx)(l.Fragment,{children:(0,u.M)(f.file)&amp;&amp;(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(PlayerNavUx,{type:"file",open:p,set_open:h,visibleText:(0,F.sE)((0,T.kB)(Math.round(f.seek))),panelContents:(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"",children:["Title:"," ",(0,l.jsx)(x(),{href:"/".concat(null==f?void 0:null===(t=f.user_name)||void 0===t?void 0:t.toLowerCase(),"/posts/").concat((0,Z.lV)(null==f?void 0:f.post_id,null==f?void 0:null===(n=f.title)||void 0===n?void 0:n.toLowerCase())),className:"ml-1 underline hover:no-underline outline-0 focus:ring-0 focus:ring-offset-0",children:(0,u.M)(null==f?void 0:f.title)?null==f?void 0:f.title:"Untitled ".concat((s=null==f?void 0:f.stream_start_date,d=new Date(s),"".concat((null==d?void 0:d.getMonth())+1,"/").concat(null==d?void 0:d.getDate()))," Show")})]}),(0,l.jsxs)("div",{className:"",children:["Host:",(0,l.jsx)(x(),{href:"/".concat(null==f?void 0:null===(o=f.user_name)||void 0===o?void 0:o.toLowerCase()),className:"ml-1 underline hover:no-underline outline-0 focus:ring-0 focus:ring-offset-0",children:null==f?void 0:f.user_name})]}),(0,l.jsxs)("div",{className:"",children:["Type:"," ",{2:"Upload",5:"Showreel"}[null==f?void 0:null===(a=f.post_type)||void 0===a?void 0:a.toString()]||"Upload"]}),(0,l.jsxs)("div",{className:"",children:["Duration:"," ",(0,F.sE)((0,T.kB)(Math.round(null==f?void 0:f.duration)))]}),(0,l.jsxs)("div",{className:"",children:["Remaining:"," ",(0,F.sE)((0,T.kB)(Math.round((null==f?void 0:f.duration)-(null==f?void 0:f.seek))))]}),(0,l.jsxs)("div",{children:["Status:"," ",(null==f?void 0:f.isMediaLoaded)?"Loaded":(null==f?void 0:f.isBuffering)?"Buffering":"Loaded"]})]}),(0,l.jsxs)("div",{className:"flex items-center content-center",children:["Playback:",(0,l.jsx)("select",{className:"bg-red-600 text-white border border-white rounded-md ml-1 text-xs py-0.5 w-32",defaultValue:null==f?void 0:f.playbackRate,onChange:e=&gt;doPlayback(e.target.value),children:r.ZT.map((e,t)=&gt;(0,l.jsx)("option",{value:e.speed,children:e.text},t))})]}),(0,l.jsx)("div",{className:"flex items-center content-center",children:(0,l.jsx)("div",{className:"flex-1 text-sm mt-5 px-2",children:(0,l.jsx)(v.Z,{axis:"x",x:null==f?void 0:f.seek_slider,xmax:100,onChange:e=&gt;{let{x:t}=e;doSeekbyRatio(t)},styles:(0,r.sZ)(null==f?void 0:f.isPlaying)})})}),(0,l.jsxs)("div",{className:"flex items-center content-center text-center my-5",children:[(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsx)(l.Fragment,{})}),(0,l.jsx)("button",{className:"flex-0 cursor-pointer font-bold rounded-full border hover:border-white h-12 w-12 my-auto mx-auto text-center justify-center text-md flex items-center content-center",tabIndex:0,onClick:()=&gt;doSeekbySeconds(f.seek-15&lt;0?0:f.seek-15),children:(0,l.jsx)("div",{children:"-15"})}),!(null==f?void 0:f.isEnded)&amp;&amp;(0,l.jsx)("button",{className:"flex-1 cursor-pointer mx-3 opacity-100 hover:opacity-90",tabIndex:0,onClick:()=&gt;togglePlay(),title:(null==f?void 0:f.isPlaying)?"pause":"play",children:(0,l.jsx)(m.Z,{type:"fill",icon:(null==f?void 0:f.isPlaying)?"pause-sm":"play-sm",className:"h-24 w-24   mx-auto ",title:(null==f?void 0:f.isPlaying)?"pause":"play"})}),(null==f?void 0:f.isEnded)&amp;&amp;(0,l.jsx)("button",{className:"flex-1 cursor-pointer mx-5 my-2 opacity-100 hover:opacity-90 ",tabIndex:0,onClick:()=&gt;{_({...f,isPlaying:!(null==f?void 0:f.isPlaying),isEnded:!1,seek:0,seek_slider:0,seek_ratio:0})},children:(0,l.jsx)("div",{className:"h-20 w-20 rounded-full mx-auto bg-white flex items-center content-center justify-center",children:(0,l.jsx)(m.Z,{type:"fill",icon:"refresh-sm",className:" h-12 w-12 text-red-500 rounded-full",title:"restart"})})}),(0,l.jsx)("button",{className:"flex-0 cursor-pointer font-bold rounded-full border hover:border-white h-12 w-12 my-auto mx-auto text-center justify-center text-md flex items-center content-center",tabIndex:0,onClick:()=&gt;doSeekbySeconds(f.seek+30&gt;=f.duration?f.duration:f.seek+30),children:(0,l.jsx)("div",{children:"+30"})}),(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsx)(l.Fragment,{})})]}),(0,l.jsxs)("div",{className:"flex items-center content-center border-t border-red-900 pt-4",children:[(0,l.jsx)("button",{className:"flex-0 cursor-pointer opacity-100 hover:opacity-75\n                            ".concat((null==f?void 0:f.isMuted)?" animate-pulse":"","\n                  "),onClick:()=&gt;{_({...f,isMuted:!(null==f?void 0:f.isMuted)})},children:(0,l.jsx)(m.Z,{type:"fill",icon:(null==f?void 0:f.isMuted)?"volume-off-sm":"volume-up-sm",className:"h-4 w-4  ",title:(null==f?void 0:f.isMuted)?"muted":"unmuted"})}),(0,l.jsx)("button",{className:"flex-1 ml-2 text-sm",children:(0,l.jsx)(v.Z,{axis:"x",x:null==f?void 0:f.volume_slider,xmax:100,disabled:null==f?void 0:f.isMuted,onChange:e=&gt;{let{x:t}=e;_({...f,volume:t/100,volume_slider:t}),localStorage.setItem("volume_slider",null==t?void 0:t.toString())},styles:{active:{backgroundColor:(null==f?void 0:f.isMuted)?"#555555":"#0000ff"},track:{backgroundColor:"#111827",display:"flex",height:15,width:"100%",cursor:"pointer"},thumb:{width:15,height:15,backgroundColor:(null==f?void 0:f.isMuted)?"#c0c0c0":"#ffffff",border:"1px solid #a0a0a0"},disabled:{opacity:.5}}})}),(0,l.jsxs)("button",{className:"flex-0 ml-3 w-8 text-left text-xs cursor-pointer  opacity-100 hover:opacity-75",onClick:()=&gt;{_({...f,volume:1,volume_slider:100,isMuted:!1})},children:[(null==f?void 0:f.isMuted)?"0":Math.round((null==f?void 0:f.volume)*100),"%"]})]})]}),days:k,seconds:w,minutes:N,hours:S,togglePlay:togglePlay})})})}var O=n(88421),P=n(60195),U=n(11032),menu_logo_dropdown=function(e){var t;let{player_state:n,navtype:o,open:a,set_open:s,ssr_data_tribe:d}=e,[c,u]=(0,i.useState)(!1),[v,p]=(0,i.useState)(null),[h,g]=(0,i.useState)(""),[f,_]=(0,i.useState)(!1);(0,i.useEffect)(()=&gt;{_(!0)},[]);let[b,y]=(0,i.useState)(!1),j=(0,i.useRef)(null),N=(0,l.jsxs)("button",{onClick:()=&gt;{s("logo"),y(!0)},className:"\n                                    group cursor-pointer font-bold text-2xl flex items-center content-center border border-transparent px-1 py-0.5 rounded-md\n                                  \n                                  \n                                  hover:bg-gray-700 text-white hover:text-gray-100 \n                                  ",children:[(0,l.jsx)(O.Z,{classSize:"w-7 h-7 mx-auto ",classAnimate:b?"animate-spin-slow":" animate-spin-slow",classAnimateUnder:b?" animate-spin-slow":"",bgColor:"transparent",centerColor:"#111827",pointerColor:"#ff0000",holeColor:"#111827",dialerColor:"#ffffff",size:"32"}),"1"==n.isHide&amp;&amp;(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"flex-0 inline-block ml-2",children:(0,U.n)(null==d?void 0:d.brand_name)}),(0,l.jsx)("div",{className:"  font-bold cursor-pointer ml-2 mt-1 \n                                        ",children:(0,l.jsx)("div",{className:"  text-gray-700 group-hover:text-gray-400 ",children:(0,l.jsx)(m.Z,{type:"fill",icon:"chevron-down-sm",className:"  h-6 w-6 ",title:"open"})})})]})]});return(0,l.jsxs)("div",{className:"menu flex items-center content-center  flex-0 z-50",children:[!f&amp;&amp;N,f&amp;&amp;(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(w.Z,{position:"bottom left",open:a,onOpen:()=&gt;{s("logo"),y(!0)},onClose:()=&gt;y(!1),trigger:N,closeOnDocumentClick:!0,closeOnEscape:!0,mouseLeaveDelay:300,mouseEnterDelay:0,contentStyle:{padding:"0px",border:"none",backgroundColor:"transparent",zIndex:1999},arrow:!1,nested:!0,ref:f?j:null,children:(0,l.jsx)("div",{className:"menu ring-0 fixed top-[44px] left-[0px] w-full xs:w-64",children:(0,l.jsxs)("div",{className:"menu flex flex-col gap-y-1 rounded-md shadow-md p-2 bg-gray-800  border border-gray-700",children:[null===(t=(0,r.Vj)(d))||void 0===t?void 0:t.filter((e,t)=&gt;1==e.logomenu).map((e,t)=&gt;(0,l.jsx)(i.Fragment,{children:(0,l.jsx)(P.Z,{icon:e.icon,iconclass:e.iconclass,name:e.name,type:e.type,url:e.url,navtype:o,behavior:e.behavior})},t)),(0,l.jsx)("div",{className:"mt-4 flex-1 inline-flex divide-gray-700 justify-center",children:r.Kb.map(e=&gt;(0,l.jsx)("div",{className:"my-auto px-1 mx-1 flex-0 flex flex-row items-center content-center text-xs",children:(0,l.jsx)(x(),{href:"".concat(e.url),target:"".concat("1"==e.internal?"":"_blank"),rel:"".concat("1"==e.internal?"":"noreferrer"),className:"\n               flex-0\n                         text-gray-400 hover:text-white\n                          cursor-pointer group\n                          flex flex-row items-center content-center flex-1\n                          \n            ",children:(0,l.jsx)("div",{className:"flex-1",children:e.name})})},e.name))}),(0,l.jsx)("div",{className:"flex items-center content-center xs:mx-3 mt-4 mx-auto w-full xs:w-auto text-center",children:(0,l.jsx)("div",{className:" flex-1 flex-col justify-center text-3xs text-center w-full ",children:(0,l.jsx)(x(),{href:"".concat(null==d?void 0:d.server_website),target:"",rel:"",className:"\n              flex-1\n                            text-gray-400\n                        cursor-pointer group\n                        flex items-center content-center\n          ",children:(0,l.jsxs)("div",{className:"my-2 w-full",children:[(0,l.jsxs)("div",{children:["Platform \xa9 ",new Date().getFullYear(),",",(0,l.jsx)("span",{className:"ml-1  text-gray-400 group-hover:text-white",children:null==d?void 0:d.brand_parent_name}),"."]}),(0,l.jsx)("div",{className:"block ml-1",children:"Content \xa9 individual creators."}),(0,l.jsx)("div",{className:"block ml-1",children:"All rights reserved."})]})})})})]})})})})]})},E=n(86010),button_button=function(e){let{onClick:t,className:n="",children:i,type:o="button",disabled:a=!1}=e;return(0,l.jsx)("button",{type:o,onClick:t,disabled:a,className:(0,E.Z)("whitespace-nowrap","inline-flex","bg-blue","text-gray-500","hover:text-gray-900","p-2","rounded","uppercase","text-sm","font-medium",{[n]:!!n}),children:i})},menu_button=function(){return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{children:(0,l.jsx)("div",{className:"flex flex-none items-center content-center cursor-pointer whitespace-nowrap border group  p-0.5 rounded-md text-sm font-medium \n          \n          text-white   hover:text-white\n        border-transparent\n          ",id:"main-menu","aria-haspopup":"true",children:(0,l.jsx)(button_button,{className:"",onClick:o.zB,children:(0,l.jsxs)("div",{className:"bg-red-600 hover:bg-red-500  flex-0 flex items-center content-center rounded-md shadow-md border border-transparent hover:border-white text-white ",children:[(0,l.jsx)("div",{className:"flex-1 rounded-l-md",children:(0,l.jsx)("div",{className:" \n\n                            cursor-pointer text-center \n                            xs:pl-2 xs:pr-0 py-1 flex font-bold text-md\n                            \n                            \n                            ",children:(0,l.jsx)(m.Z,{type:"fill",icon:"group-sm",className:"h-4  w-4 mr-1 hidden xs:block",title:"Create or Go Live"})})}),(0,l.jsx)("div",{className:"flex-0 cursor-pointer block py-1 px-2 xs:pr-3 rounded-r-md   ",children:(0,U.n)("Join Us")})]})})})})})},D=n(2050),L=n(93138);function AccountOptions(e){var t,n,o,a,s,d,c,u;let{userdata:m,navtype:v,handleLogoutClick:p}=e,x=(0,i.useContext)(b.ZR);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(P.Z,{icon:"newspaper-sm",iconclass:"group-hover:animate-wiggle",name:"My Profile",type:"profile",url:"/".concat(null==m?void 0:null===(t=m.user_name)||void 0===t?void 0:t.toLowerCase()),behavior:"link",navtype:v}),(null==m?void 0:null===(n=m.bol_creator)||void 0===n?void 0:n.toString())=="1"&amp;&amp;(0,l.jsx)(P.Z,{icon:"chat-alt-sm",iconclass:"group-hover:animate-wiggle",name:"My Chatroom",type:"chat",url:"/".concat(null==m?void 0:null===(o=m.user_name)||void 0===o?void 0:o.toLowerCase(),"/chat"),behavior:"link",navtype:v}),(null==m?void 0:null===(a=m.bol_creator)||void 0===a?void 0:a.toString())=="1"&amp;&amp;(0,D.uS)(null==m?void 0:m.credentials_bitarray,Object.keys(r.MT)).soundboard&amp;&amp;(0,l.jsx)(P.Z,{icon:"grid-sm",iconclass:"group-hover:animate-wiggle",name:"My Soundboards",type:"soundboard",url:"/".concat(null==m?void 0:null===(s=m.user_name)||void 0===s?void 0:s.toLowerCase(),"/soundboards"),behavior:"link",navtype:v}),(0,l.jsx)(P.Z,{icon:"settings-sm",iconclass:"group-hover:animate-spin",name:"My Settings",type:"settings",url:"/".concat(null==m?void 0:null===(d=m.user_name)||void 0===d?void 0:d.toLowerCase(),"/settings"),behavior:"link",navtype:v}),(null==m?void 0:null===(c=m.bol_creator)||void 0===c?void 0:c.toString())=="1"&amp;&amp;(0,D.uS)(null==m?void 0:m.credentials_bitarray,Object.keys(r.MT)).broadcastlive&amp;&amp;(0,l.jsx)(P.Z,{icon:"chart-bar-sm",iconclass:"group-hover:animate-wiggle",name:"Broadcast Stats",type:"settings",url:"/".concat(null==m?void 0:null===(u=m.user_name)||void 0===u?void 0:u.toLowerCase(),"/settings/broadcast"),behavior:"link",navtype:v}),(null==x?void 0:x.bol_contribute)=="1"&amp;&amp;(0,l.jsx)(P.Z,{icon:"heart-sm",iconclass:"text-red-400 group-hover:text-red-600 group-hover:animate-wiggle",name:"Contribute",type:"contribute",url:"/contribute",behavior:"link",navtype:v}),(0,l.jsx)(P.Z,{onClick:()=&gt;p("menu"),icon:"logout-sm",iconclass:"w-5 h-5",name:"Logout",type:"logout",url:"",navtype:v,behavior:"button"})]})}function NoAccountOptions(e){let{user_name:t,navtype:n}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(P.Z,{onClick:()=&gt;{},icon:"profile-sm",iconclass:"w-5 h-5",name:"Create an account",type:"register",url:"/app/auth/register",navtype:n,behavior:"link"}),(0,l.jsx)(P.Z,{onClick:o.zB,icon:"profile-sm",iconclass:"w-5 h-5",name:"Login to an account",type:"login",url:"",navtype:n,behavior:"button"})]})}var menu_account_dropdown=function(e){let{loading:t,session:n,userdata:o,isUserDataLoading:a,isUserDataError:s,handleLogoutClick:r,navtype:d,open:c,set_open:u}=e,[m,v]=(0,i.useState)(!1);(0,i.useEffect)(()=&gt;{v(!0)},[]);let p=(0,l.jsx)("div",{tabIndex:0,role:"button",onClick:()=&gt;u("account"),children:(0,l.jsx)("div",{children:(0,l.jsx)("div",{className:"flex flex-none items-center content-center cursor-pointer whitespace-nowrap border group  p-0.5 rounded-md text-sm font-medium \n          \n          text-white   hover:text-white\n        border-transparent\n          ",id:"main-menu","aria-haspopup":"true",children:(0,l.jsx)(L.Z,{isPlaying:!1,isContributor:(null==o?void 0:o.contributor_level)&gt;0,avatar_url:null==o?void 0:o.avatar_url,avatar_url_sfw:null==o?void 0:o.avatar_url_sfw,bol_nsfw:null==o?void 0:o.bol_nsfw,avatar_crdate:null==o?void 0:o.avatar_crdate,id:null==o?void 0:o.id,user_name:null==o?void 0:o.user_name,size:"tiny"})})})});return n?(0,l.jsxs)("div",{className:"menu flex items-center content-center  flex-0 z-50",children:[!m||!n&amp;&amp;(0,l.jsx)(l.Fragment,{children:p}),m&amp;&amp;n&amp;&amp;(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(w.Z,{position:"bottom left",open:c,onOpen:()=&gt;u("account"),trigger:p,closeOnDocumentClick:!0,closeOnEscape:!0,mouseLeaveDelay:300,mouseEnterDelay:0,contentStyle:{padding:"0px",border:"none",backgroundColor:"transparent",zIndex:1999},arrow:!1,nested:!0,children:(0,l.jsx)("div",{className:"menu ring-0 fixed top-[47px] right-[0px] w-full xs:w-64 ",children:(0,l.jsxs)("div",{className:"menu flex flex-col gap-y-1 rounded-b-md shadow-md p-2 border-x border-b bg-gray-800 border-gray-700",children:[(0,l.jsx)("div",{className:"flex items-center content-center px-1 pb-1 rounded-b-md font-bold text-md bg-gray-800",children:(0,l.jsxs)("div",{className:"flex-1 text-sm",children:[n&amp;&amp;!a&amp;&amp;"".concat((0,U.n)("Hi")," ").concat(null==o?void 0:o.user_name,"!"),(t||a)&amp;&amp;(0,U.n)("Just a sec!"),!t&amp;&amp;!n&amp;&amp;(0,U.n)("Join us!")]})}),(t||a)&amp;&amp;(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"p-4",children:(0,U.n)("Still Loading...")})}),!(t||a)&amp;&amp;n&amp;&amp;(0,l.jsx)(AccountOptions,{userdata:o,navtype:d,handleLogoutClick:r}),!(t||a)&amp;&amp;!n&amp;&amp;(0,l.jsx)(NoAccountOptions,{user_name:"there",navtype:d})]})})})})]}):(0,l.jsx)(menu_button,{})},I=n(18332),R=n(13719),A=n(11163),B=n.n(A),H=n(73549),V=n(59671),J=n(79468),Y=n(27744),W=n(61816),G=n(84835),$=n(79826);n(13912);var q=n(70173),K=n(51689),Q=n(89589),prerecording_form=function(e){var t,n,o,a,s,d,c;let{submitHandler:m,submitting:v,set_submitting:p,processing:x,set_processing:h,set_changes:g,changes:f,max_files:_,prerecording_id:b,itemdata:y,parentdata:j,itemdataisLoading:w,itemdataisError:S,show_graphic:k,form_reset:C,set_form_reset:z,actionText:T,prerecordingcache:F,set_prerecordingcache:O,ownerdata:P,userdata:U,navtype:E,helptype:D}=e,[L,I]=(0,i.useState)(!1);(0,i.useEffect)(()=&gt;{I(!0)},[]);let[R,A]=(0,i.useState)(!w&amp;&amp;!S&amp;&amp;y&amp;&amp;(0,M.U)(null==y?void 0:y.user_name,null==P?void 0:P.user_name)),[B,H]=(0,i.useState)("0"),[V,X]=(0,i.useState)(null==U?void 0:U.id),[ee,et]=(0,i.useState)((0,M.U)(null==y?void 0:y.prerecording_title,"")),[en,el]=(0,i.useState)((0,M.U)(null==y?void 0:y.prerecording_description,"")),[ei,eo]=(0,i.useState)((0,M.U)(null==y?void 0:y.prerecording_tags,"")),[ea,es]=(0,i.useState)((0,M.U)(null==y?void 0:y.bol_public,"1")),[er,ed]=(0,i.useState)((0,M.U)(null==y?void 0:y.access_level,"1")),[ec,eu]=(0,i.useState)((0,M.U)(null==y?void 0:y.slug,"")),[em,ev]=(0,i.useState)((0,M.U)(null==y?void 0:y.file_json,"[]")),[ep,ex]=(0,i.useState)([]),[eh,eg]=(0,i.useState)(0),[ef,e_]=(0,i.useState)(0);(0,i.useEffect)(()=&gt;{1==C&amp;&amp;(0,u.M)(b)&amp;&amp;"0"!==b.toString()&amp;&amp;!w&amp;&amp;!S&amp;&amp;(A((0,u.M)(null==y?void 0:y.user_name)?null==y?void 0:y.user_name:null==U?void 0:U.user_name),et((0,u.M)(null==y?void 0:y.prerecording_title)?null==y?void 0:y.prerecording_title:""),el((0,u.M)(null==y?void 0:y.prerecording_description)?null==y?void 0:y.prerecording_description:""),eo((0,u.M)(null==y?void 0:y.prerecording_tags)?null==y?void 0:y.prerecording_tags:""),es((0,u.M)(null==y?void 0:y.bol_public)?null==y?void 0:y.bol_public:"1"),ed((0,u.M)(null==y?void 0:y.access_level)?null==y?void 0:y.access_level:"1"),eu((0,u.M)(null==y?void 0:y.slug)?null==y?void 0:y.slug:""),z(0))},[y,w,S,b,f,C,z,U]);let{isConfirmed:eb}=(0,N.N)(),[ey,ej]=(0,i.useState)(0),ew=[{title:"info",description:"",short:"info",fields:[{type:"text",title:"Title",description:"",helptip:"",name:"prerecording_title",placeholder:"",value:ee,set_value:et,meta:{maxChars:65}},{type:"textarea-autosize",title:"Description",description:"",helptip:"",name:"prerecording_description",placeholder:"",value:en,set_value:el,meta:{minRows:2,maxRows:10}},{type:"text",title:"Tags",description:"separate tags with commas",helptip:"",name:"prerecording_tags",placeholder:"",value:ei,set_value:eo}]},{title:"advanced",description:"",short:"advanced",fields:[{type:"selectoptions",title:"Who can listen to this recording?",description:"",helptip:"",name:"bol_public",placeholder:"",value:ea,set_value:es,options:[{text:"Private (only me)",value:"0"},{text:"Public (everyone)",value:"1"}]}]}],[eN,eS]=(0,i.useState)((0,Y.ZP)(null==P?void 0:null===(t=P.id)||void 0===t?void 0:t.toString(),null==P?void 0:P.bol_staff_help,null==P?void 0:P.staff_json,null==P?void 0:P.bol_admin_help,null==U?void 0:null===(n=U.id)||void 0===n?void 0:n.toString(),null==U?void 0:null===(o=U.bol_admin)||void 0===o?void 0:o.toString(),(0,r.oo)("prerecording")));return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"w-full",children:[(0,l.jsx)(J.Z,{wizard_array:ew,wizard_id:ey,set_wizard_id:ej,disable_mobileview:!0}),(0,l.jsx)("div",{children:(0,l.jsxs)("form",{className:"space-y-6",onSubmit:function(e){e.preventDefault();let t={prerecording_id:b,prerecording_title:ee,prerecording_description:en,prerecording_tags:ei,bol_public:ea,access_level:er,slug:(0,u.M)(ec)?ec:"".concat((0,Z.NZ)(b,ec,ee).replace("".concat(b,"-"),"")),file_json:em,admin_help_user_id:V,set_submitting:p};m(t,"/api/private/prerecording/update","POST",{"Content-Type":"application/json"},"Your changes were saved"),g(!1);let n=+new Date;O(null==n?void 0:n.toString())},children:[(0,l.jsx)(W.Z,{section_id:0,wizard_id:ey,set_wizard_id:ej,wizard_array:ew,submitting:v,set_submitting:p,processing:x,set_processing:h,set_changes:g,changes:f,children:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(K.Z,{url:null===(a=(0,q.E3)(em,[])[0])||void 0===a?void 0:a.url,set_json:ev,empty_value:"[]",type:"audio",title:"Attach an mp3 file",processing:x,set_processing:h,generate_prompt:"".concat(r.vc.upload.image.generation_prompt).concat(ee,". ").concat(en)}),(0,l.jsx)(Q.Z,{allowed_files:["audio"],file_type:1,api_url:"/api/private/upload/file?update=prerecording&amp;type=audio&amp;origin=url&amp;cid=".concat(b),max_size:r.vc.upload.audio.max_size,max_files:r.vc.upload.audio.max_files,confirm_upload:!1,onUploadSingle:async e=&gt;{ev(t=&gt;{let n=JSON.stringify([JSON.parse(null==e?void 0:e.metadata_json)]);return g(!0),h(!1),n})},files:ep,set_files:ex,total_files:eh,set_total_files:eg,track_files:ef,set_track_files:e_,changes:f,set_changes:g,processing:x,set_processing:h,swap_preview:!0,preview_url:null===(s=(0,q.E3)(em,[])[0])||void 0===s?void 0:s.url,preview_json:(0,q.E3)(em,[])[0],preview_width:null===(d=(0,q.E3)(em,[])[0])||void 0===d?void 0:d.width,preview_height:null===(c=(0,q.E3)(em,[])[0])||void 0===c?void 0:c.height})]})}),(0,l.jsx)(W.Z,{section_id:1,wizard_id:ey,set_wizard_id:ej,wizard_array:ew,submitting:v,set_submitting:p,processing:x,set_processing:h,set_changes:g,changes:f,children:(0,l.jsx)(l.Fragment,{})}),(0,l.jsx)(W.Z,{section_id:2,wizard_id:ey,set_wizard_id:ej,wizard_array:ew,submitting:v,set_submitting:p,processing:x,set_processing:h,set_changes:g,changes:f,children:(0,l.jsx)(G.Z,{isAdmin:eN,bol_admin_user_name:B,set_bol_admin_user_name:H,admin_user_name:R,set_admin_user_name:A,user_id:V,set_user_id:X,submitting:v,set_submitting:p,processing:x,set_processing:h,changes:f,set_changes:g,title:"Set a Broadcast Owner",description:"",userdata:U,owner_name:null==y?void 0:y.user_name,owner_id:null==y?void 0:y.user_id})}),(0,l.jsx)($.Z,{wizard_id:ey,set_wizard_id:ej,submitting:v,changes:f,actionText:T,wizard_array:ew})]})})]})})};function MenuCreateDropdown(e){var t;let{classColor:n,session:o,userdata:a,open:s,set_open:c}=e,{isConfirmed:v}=(0,N.N)(),[p,x]=(0,i.useState)(!1),h=(0,i.useContext)(b.ZR);(0,i.useEffect)(()=&gt;{x(!0)},[]);let g=+new Date,[f,_]=(0,i.useState)(encodeURIComponent(null==g?void 0:g.toString())),[y,j]=(0,i.useState)(!1),[S,k]=(0,i.useState)(-1),[C,M]=(0,i.useState)(!1),[z,T]=(0,i.useState)(1),[F,P]=(0,i.useState)(0),[E,L]=(0,i.useState)(null);async function closeModal(){if(C){let e=confirm("You have unsaved changes. Are you sure you want to close?");e&amp;&amp;(L(null),T(1),M(!1))}else L(null),T(1)}function openModal(e,t){0==e&amp;&amp;P(t),L(e)}async function submitHandler(e,t){let n=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:"POST",l=arguments.length&gt;3&amp;&amp;void 0!==arguments[3]?arguments[3]:{"Content-Type":"application/json"},i=arguments.length&gt;4&amp;&amp;void 0!==arguments[4]?arguments[4]:"Your changes were saved.";j(!0);try{j(!0);let o=await fetch(t,{method:n,headers:l,body:JSON.stringify(e)});M(!1),j(!1);let a=await o.json();if(a){let{outcome:e,post_id:t,post_title:n,soundboard_id:l,soundboard_title:o,slug:s,user_name:r}=a[0][0];(null==e?void 0:e.toString())=="1"?((0,d.D)({time:5e3,className:"",position:"right"}),(0,d.Z)(i,{time:3e3,className:"",clickable:!0,clickClosable:!1})):alert(e);let c=new Date;_(encodeURIComponent(null==c?void 0:c.toString())),L(null),(0,u.M)(t)&amp;&amp;B().push("/".concat(r,"/posts/").concat((0,Z.lV)(t,s))),(0,u.M)(l)&amp;&amp;B().push("/".concat(r,"/soundboards/").concat((0,Z.lV)(l,s),"?show=upload"))}}catch(e){throw Error(e.message)}}(0,i.useEffect)(()=&gt;{L(null)},[]);let A=(0,l.jsxs)("button",{onClick:()=&gt;{"create"!==s?c("create"):c("")},className:"".concat(n," flex-0 flex items-center content-center rounded-md shadow-md hover:animate-pulse mr-2"),children:[(0,l.jsx)("div",{className:"flex-1 rounded-l-md",children:(0,l.jsx)("div",{className:" \n                          \n                            cursor-pointer text-center \n                            pl-2 pr-2 xs:pr-1 py-1 flex font-bold text-md\n                            \n                            \n                            ",children:(0,l.jsx)(m.Z,{type:"fill",icon:"plus-sm",className:"h-6  w-6 flex ",title:"Create or Go Live"})})}),(0,l.jsx)("div",{className:"flex-0 cursor-pointer hidden xs:block pr-1 py-1 xs:pr-3 rounded-r-md  ",children:(0,U.n)("Create")})]});return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"menu flex items-center content-center  flex-0 z-50",children:p&amp;&amp;o&amp;&amp;(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"group",children:(0,l.jsx)(w.Z,{position:"bottom left",open:s,onOpen:()=&gt;c("create"),trigger:A,closeOnDocumentClick:!0,closeOnEscape:!0,mouseLeaveDelay:300,mouseEnterDelay:0,contentStyle:{padding:"0px",border:"none",backgroundColor:"transparent",zIndex:1999},arrow:!1,nested:!0,children:(0,l.jsx)("div",{className:"menu ring-0 fixed top-[47px] right-[0px] w-full sm:w-64 ",children:(0,l.jsxs)("div",{className:"menu flex flex-col gap-y-1 rounded-md shadow-md p-2  bg-red-600 ",children:[(0,l.jsx)(MenuOption,{onClick:()=&gt;{(0,D.uS)(null==a?void 0:a.credentials_bitarray,Object.keys(r.MT)).broadcastlive?((0,R.x)((0,r.Ng)(null==a?void 0:a.user_name),r.vc.broadcast.title,window,r.vc.broadcast.width,r.vc.broadcast.height),c("")):alert("Your account does not have access to this feature yet. Ask an admin or email ".concat(null==h?void 0:h.email_support," for beta access."))},icon_override:(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(O.Z,{classSize:"w-5 h-5 mx-auto block",classAnimate:" animate-spin-slow",bgColor:"transparent",centerColor:"rgba(31,41,55,1)",pointerColor:"#ff0000",holeColor:"#111827",dialerColor:"#ffffff",size:"16"})}),icon:"",title:(0,U.n)("Broadcast a Live Show"),userdata:a,type:"broadcastlive"}),(0,l.jsx)(MenuOption,{onClick:()=&gt;{(0,D.uS)(null==a?void 0:a.credentials_bitarray,Object.keys(r.MT)).post?(openModal(0,"-1"),c("")):alert("Your account does not have access to this feature yet. Ask an admin or email ".concat(null==h?void 0:h.email_support," for beta access."))},icon:"newspaper-sm",title:(0,U.n)("Create a Post"),userdata:a,type:"post"}),(0,l.jsx)(MenuOption,{onClick:()=&gt;{(0,D.uS)(null==a?void 0:a.credentials_bitarray,Object.keys(r.MT)).soundboard?(openModal(0,9),c("")):alert("Your account does not have access to this feature yet. Ask an admin or email ".concat(null==h?void 0:h.email_support," for beta access."))},icon:"grid-sm",title:(0,U.n)("Create a Soundboard"),userdata:a,type:"soundboard"})]})})})}),(0,l.jsx)(I.Z,{title:{"-1":(0,l.jsx)(l.Fragment,{children:"Create a New Post"})}[F]||"New ".concat(null===(t=(0,r.UT)("",F))||void 0===t?void 0:t.text),modal_content:{"-1":(0,l.jsx)("div",{className:"sm:grid grid-cols-2 gap-2  w-full",children:[(0,r.UT)("text",-1),(0,r.UT)("image",-1),(0,r.UT)("audio",-1),(0,r.UT)("videourl",-1)].map((e,t)=&gt;(0,l.jsx)("div",{className:"flex-1 w-full mb-2 sm:mb-0",children:(0,l.jsx)(MenuOption,{onClick:()=&gt;{openModal(0,null==e?void 0:e.value),c("")},icon_override:(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(m.Z,{type:"fill",icon:null==e?void 0:e.icon,className:" h-10 w-10 group-hover:opacity-80 group-hover:animate-wiggle",title:null==e?void 0:e.action})}),icon:null==e?void 0:e.icon,title:null==e?void 0:e.action,userdata:a,type:"post",colorClass:"   bg-gray-800 hover:bg-gray-700 hover:text-white text-gray-100 "})},t))}),9:(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(V.Z,{submitHandler:submitHandler,submitting:y,set_submitting:j,processing:S,set_processing:k,set_changes:M,changes:C,max_files:r.vc.post.max_files,soundboard_id:E,itemdata:{},parentdata:{},itemdataisLoading:!1,itemdataisError:!1,ownerdata:a,userdata:a,show_graphic:!1,form_reset:z,set_form_reset:T,actionText:"Save changes &amp; add sounds",soundboardcache:f,set_soundboardcache:_,navtype:"soundboard",helptype:"broadcast",typevalue:F,set_typevalue:P})}),17:(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(prerecording_form,{submitHandler:submitHandler,submitting:y,set_submitting:j,processing:S,set_processing:k,set_changes:M,changes:C,max_files:r.vc.post.max_files,prerecording_id:E,itemdata:{},parentdata:{},itemdataisLoading:!1,itemdataisError:!1,ownerdata:a,userdata:a,show_graphic:!1,form_reset:z,set_form_reset:T,actionText:"Save changes",prerecordingcache:f,set_prerecordingcache:_,navtype:"prerecording",helptype:"broadcast",typevalue:F,set_typevalue:P})})}[F]||(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(H.Z,{submitHandler:submitHandler,submitting:y,set_submitting:j,processing:S,set_processing:k,set_changes:M,changes:C,max_files:r.vc.post.max_files,post_id:E,itemdata:{},parentdata:{},itemdataisLoading:!1,itemdataisError:!1,ownerdata:a,userdata:a,show_graphic:!1,form_reset:z,set_form_reset:T,actionText:"Save changes",postcache:f,set_postcache:_,navtype:"post",helptype:"broadcast",typevalue:F,set_typevalue:P})}),isOpen:E,closeModal:closeModal})]})})})}function LockTreatment(e){let{userdata:t,credential_type:n}=e;return(0,D.uS)(null==t?void 0:t.credentials_bitarray,Object.keys(r.MT))[n]?(0,l.jsx)(l.Fragment,{}):(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{children:(0,l.jsx)(m.Z,{type:"fill",icon:"lock-closed-sm",className:"h-4  w-4 flex ",title:"Locked"})})})}function MenuOption(e){let{onClick:t,icon:n,icon_override:i=null,title:o,userdata:a,type:s,colorClass:r="  bg-red-900 hover:bg-red-700 hover:text-white text-red-100"}=e;return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"menu-item ",children:(0,l.jsxs)("button",{tabIndex:0,className:"font-bold group cursor-pointer rounded-md flex items-center content-center justify-left w-full px-2 py-2 text-sm leading-5 text-left ring-0\n                                      \n                                    ".concat(r,"\n                                      \n                                      \n                                      "),onClick:t,children:[(0,l.jsx)("div",{className:"flex-0 justify-left text-sm  ",children:(0,l.jsxs)("div",{className:"flex-0  mr-1",children:[(0,u.M)(i)&amp;&amp;i,!(0,u.M)(i)&amp;&amp;(0,l.jsx)(m.Z,{type:"fill",icon:n,className:" h-4 w-4",title:o})]})}),(0,l.jsx)("div",{className:"ml-2 flex-1 ",children:o}),(0,l.jsx)(LockTreatment,{userdata:a,credential_type:s})]})})})}var X=n(25675),ee=n.n(X);function HeroCTA(e){let{ssr_data_tribe:t}=e;return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{onClick:()=&gt;(0,o.zB)(),className:" overflow-hidden  bg-gray-950 hover:bg-gray-900 cursor-pointer border-b\n\n                        border-gray-700\n                          ",children:(0,l.jsx)("div",{className:"relative mx-auto px-4 sm:px-6 xl:px-8",children:(0,l.jsxs)("div",{className:"flex items-center content-center ",children:[(0,u.M)(null==t?void 0:t.marketing_hero_image_url)&amp;&amp;(0,l.jsx)("div",{className:"flex-0 hidden xs:block mr-4  ",children:(0,l.jsx)(ee(),{src:null==t?void 0:t.marketing_hero_image_url,alt:null==t?void 0:t.marketing_seo_category,width:88,height:88,className:"rounded-2xl"})}),(0,l.jsxs)("div",{className:"flex-1  sm:text-left my-5",children:[(0,l.jsx)("h1",{className:"text-xl sm:text-2xl leading-8 font-extrabold tracking-tight text-left\n                                           text-gray-100 \n                          ",children:(0,U.n)(null==t?void 0:t.marketing_headline)}),(0,l.jsx)("p",{className:"mx-auto text-base sm:text-lg text-left  mt-2 text-gray-300 ",children:(0,U.n)(null==t?void 0:t.marketing_description)})]})]})})})})}function NavPrimary(e){var t;let{ssr_data_tribe:n,userdata:a,isUserDataLoading:s,isUserDataError:r,navtype:u,fixed:m=!1,fullscreen_children:v=!1}=e,{player_state:p,set_player_state:x}=(0,i.useContext)(c.E),[h,g]=(0,i.useState)(!1),[f,_]=(0,i.useState)(!1),[b,y]=(0,i.useState)(!1),[j,w]=(0,i.useState)(!1),chooseNavmenu=e=&gt;{"account"==e&amp;&amp;(g(!0),_(!1),y(!1),w(!1)),"logo"==e&amp;&amp;(g(!1),_(!0),y(!1),w(!1)),"create"==e&amp;&amp;(g(!1),_(!1),y(!0),w(!1)),"player"==e&amp;&amp;(g(!1),_(!1),y(!1),w(!0)),""==e&amp;&amp;(g(!1),_(!1),y(!1),w(!1))},[N,S]=(0,o.kP)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:" h-12 ".concat(m?"fixed z-[1000]":"sticky z-[100] "," top-0 left-0 right-0  flex items-center content-center\n                      mx-auto py-1 pl-1 pr-2 border-b shadow-md\n                       border-gray-700 bg-gray-800\n                      "),children:(0,l.jsxs)("nav",{className:"flex items-center content-center w-full","aria-label":"Global",children:[(0,l.jsx)("div",{className:" flex-0 flex-shrink-0 ",children:(0,l.jsx)(menu_logo_dropdown,{ssr_data_tribe:n,player_state:p,navtype:u,open:f,set_open:chooseNavmenu})}),(0,l.jsxs)("div",{className:"flex-1 flex items-center content-center",children:[(null==p?void 0:p.player_type)=="live"&amp;&amp;(0,l.jsx)(PlayerNavLive,{open:j,set_open:chooseNavmenu,userdata:a}),(null==p?void 0:p.player_type)=="file"&amp;&amp;(0,l.jsx)(PlayerNavFile,{open:j,set_open:chooseNavmenu})]}),(0,l.jsx)("div",{className:"flex-0",children:(0,l.jsx)(MenuCreateDropdown,{classColor:" border border-white hover:border-transparent hover:bg-red-500 text-white",userdata:a,session:N,open:b,set_open:chooseNavmenu})}),(0,l.jsx)("div",{className:"flex-0",children:(0,l.jsx)(menu_account_dropdown,{loading:S,session:N,userdata:a,isUserDataLoading:s,isUserDataError:r,handleLogoutClick:function(e){getRemoveUserCookies(),localStorage.clear(),(0,d.D)({time:2e3,className:"",position:"right"}),(0,d.Z)("You logged out",{time:2e3,className:"",clickable:!0,clickClosable:!1}),setTimeout(e=&gt;(0,o.w7)({callbackUrl:"".concat(null==n?void 0:n.server_website,"/en/signout?x=").concat(e,"&amp;id=").concat(null==a?void 0:a.id)}),1e3)},navtype:u,open:h,set_open:chooseNavmenu})})]})}),(!a||(null==a?void 0:null===(t=a.id)||void 0===t?void 0:t.toString())=="0")&amp;&amp;!v&amp;&amp;(0,l.jsx)(HeroCTA,{ssr_data_tribe:n})]})}},60195:function(e,t,n){var l=n(85893),i=n(31637),o=n(13719),a=n(41664),s=n.n(a),r=n(88421),d=n(75403),c=n(11032),u=n(30967);function PopupMenuOptionLinkContent(e){let{navtype:t,type:n,icon:o,iconclass:a,name:s,bol_private:r}=e;return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(PopupMenuOptionLinkContentStyle,{navtype:t,type:n,name:s,bol_private:r,iconjsx:(0,i.M)(o)&amp;&amp;(0,l.jsx)("div",{className:"flex-0 justify-left text-sm ".concat(a," mr-1 "),children:(0,l.jsx)(d.Z,{type:"fill",icon:o,className:"h-4 w-4 ",title:s})})})})}function PopupMenuOptionLinkContentStyle(e){let{navtype:t,type:n,iconjsx:i,name:o,bol_private:a}=e;return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"menu-item flex w-full  ",children:(0,l.jsxs)("div",{className:"font-bold group cursor-pointer rounded-md flex items-center content-center justify-left w-full px-2 py-2 text-sm leading-5 text-left ring-0\n                                  ".concat(t==n?" bg-gray-700 hover:bg-gray-600 hover:text-gray-100 text-gray-200 ":"bg-gray-900 hover:bg-gray-700 hover:text-gray-100 text-gray-200 ","\n                                  \n                                  \n                                  "),children:[i,(0,l.jsx)("div",{className:"ml-2 flex-1 ",children:(0,c.n)(o)}),(0,l.jsx)("div",{className:"ml-2 flex-0 ",children:1==a&amp;&amp;(0,l.jsx)(d.Z,{type:"fill",icon:"lock-closed-sm",className:"h-4 w-4 ",title:(0,c.n)(o)})})]})})})}t.Z=function(e){let{icon:t,iconclass:n,name:i,type:a,url:d,navtype:c,onClick:m=()=&gt;{},behavior:v,bol_private:p=0}=e;return"link"==v?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("button",{className:"group",children:(0,l.jsx)(s(),{href:d,className:"outline-0",children:(0,l.jsx)(PopupMenuOptionLinkContent,{navtype:c,type:a,icon:t,iconclass:n,name:i,bol_private:p})})})}):"button"==v?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("button",{className:"group",onClick:m,children:(0,l.jsx)(PopupMenuOptionLinkContent,{navtype:c,type:a,icon:t,iconclass:n,name:i,bol_private:p})})}):"broadcast"==v?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("button",{className:"group",onClick:()=&gt;{(0,o.x)("/app/".concat(u.vc.broadcast.app_base_url),u.vc.broadcast.title,window,600,600)},children:(0,l.jsx)(PopupMenuOptionLinkContentStyle,{navtype:c,type:a,name:i,bol_private:p,iconjsx:(0,l.jsx)("div",{className:"flex-0 justify-left text-sm ".concat(n," "),children:(0,l.jsx)("div",{className:"flex-0  mr-1",children:(0,l.jsx)(r.Z,{classSize:"w-4 h-4 mx-auto block",classAnimate:" animate-spin-slow",bgColor:"transparent",centerColor:"rgba(31,41,55,1)",pointerColor:"#ff0000",holeColor:"#111827",dialerColor:"#ffffff",size:"64"})})})})})}):void 0}},39375:function(e,t,n){n.d(t,{Z:function(){return ToggleButton}});var l=n(85893);function ToggleButton(e){let{bol_item:t="1",toggle_text:n="Include text",clickEvent:i=()=&gt;{},focusEvent:o=()=&gt;{},changeEvent:a=()=&gt;{},off_icon:s=(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("svg",{className:"bg-black h-5 w-5 text-gray-400 rounded-full",fill:"none",viewBox:"0 0 12 12",children:(0,l.jsx)("path",{d:"M4 8l2-2m0 0l2-2M6 6L4 4m2 2l2 2",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),on_icon:r=(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("svg",{className:"bg-black h-5 w-5 text-brand rounded-full",fill:"currentColor",viewBox:"0 0 12 12",children:(0,l.jsx)("path",{d:"M3.707 5.293a1 1 0 00-1.414 1.414l1.414-1.414zM5 8l-.707.707a1 1 0 001.414 0L5 8zm4.707-3.293a1 1 0 00-1.414-1.414l1.414 1.414zm-7.414 2l2 2 1.414-1.414-2-2-1.414 1.414zm3.414 2l4-4-1.414-1.414-4 4 1.414 1.414z"})})}),size:d="medium"}=e;var c="h-8",u="w-16",m="h-7",v="w-7",p="translate-x-8";return"small"==d?(c="h-6",u="w-12",m="h-5",v="w-5",p="translate-x-6"):"long"==d?(c="h-8",u="w-24",m="h-7",v="w-7",p="translate-x-16"):"big"==d&amp;&amp;(c="h-10",u="w-20",m="h-9",v="w-9",p="translate-x-9"),(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("button",{type:"button",tabIndex:0,"aria-pressed":"false","aria-labelledby":"toggleLabel",onClick:i,className:"\n                      inline-flex flex-shrink-0 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none\n                        ".concat(c," ").concat(u," shadow-inner\n                        ").concat("1"==t?" bg-brand-darkest hover:bg-brand ":" bg-gray-400 hover:bg-gray-500  "," \n                         "),children:["long"==d&amp;&amp;(0,l.jsx)("span",{className:"absolute h-full  font-thin text-xs flex\n                              ".concat("1"==t?" text-white ml-1.5":" text-gray-400 ml-8","\n                              "),children:(0,l.jsx)("span",{className:"my-auto flex-1 flex",children:"Upgrade"})}),(0,l.jsx)("span",{className:"sr-only",children:n}),(0,l.jsxs)("span",{className:"pointer-events-none ".concat("1"==t?" ".concat(p," "):" translate-x-0 ","  relative inline-block ").concat(m," ").concat(v," rounded-full \n              bg-black shadow  ring-0 transition ease-in-out duration-200"),children:[(0,l.jsx)("span",{className:" ".concat("1"==t?" opacity-0 ease-out duration-100 ":" opacity-100 ease-in duration-100 ","  z-50 absolute inset-0 h-full w-full flex items-center justify-center transition-opacity"),"aria-hidden":"true",children:s}),(0,l.jsx)("span",{className:"".concat("1"==t?" opacity-100 ease-in duration-100 ":" opacity-0 ease-out duration-100 "," z-50 absolute inset-0 h-full w-full flex items-center justify-center transition-opacity"),"aria-hidden":"true",children:r})]})]})})}},51689:function(e,t,n){n.d(t,{Z:function(){return DropzoneHeader}});var l=n(85893),i=n(86173),o=n(31637),a=n(76603),s=n(67294),r=n(24940);let usePrompt=()=&gt;{let[e,t]=(0,s.useState)(null),n={title:(0,l.jsx)(l.Fragment,{children:"Are you sure?"}),body:(0,l.jsx)(l.Fragment,{}),inputvalue:e,set_inputvalue:t,confirm:(0,l.jsx)(l.Fragment,{children:"OK"}),cancel:(0,l.jsx)(l.Fragment,{children:"Cancel"}),show_input:!1,show_title:!0,show_confirm:!0,show_cancel:!0,onSubmit:()=&gt;null},[i,a]=(0,s.useContext)(r.M),[d,c]=(0,s.useState)(!1);return(0,s.useEffect)(()=&gt;()=&gt;{i.cancel&amp;&amp;d&amp;&amp;i.cancel()},[i,d]),{...i,isPrompted:e=&gt;{c(!0);let t=new Promise((t,l)=&gt;{a({props:"string"==typeof e||e instanceof String?{title:(0,o.M)(e)?e:n.title,body:n.body,inputvalue:n.inputvalue,set_inputvalue:n.set_inputvalue,confirm:n.confirm,cancel:n.cancel,show_input:n.show_input,show_title:n.show_title,show_confirm:n.show_confirm,show_cancel:n.show_cancel,onSubmit:n.onSubmit}:{title:(0,o.f)(null==e?void 0:e.title,n.title),body:(0,o.f)(null==e?void 0:e.body,n.body),inputvalue:(0,o.f)(null==e?void 0:e.inputvalue,n.inputvalue),set_inputvalue:(0,o.f)(null==e?void 0:e.set_inputvalue,n.set_inputvalue),confirm:(0,o.f)(null==e?void 0:e.confirm,n.confirm),cancel:(0,o.f)(null==e?void 0:e.cancel,n.cancel),show_input:e.show_input?null==e?void 0:e.show_input:n.show_input,show_title:(0,o.f)(null==e?void 0:e.show_title,n.show_title),show_confirm:(0,o.f)(null==e?void 0:e.show_confirm,n.show_confirm),show_cancel:(0,o.f)(null==e?void 0:e.show_cancel,n.show_cancel),onSubmit:e.show_input?null==e?void 0:e.onSubmit:n.show_input},isPromptOpen:!0,proceed:t,cancel:l})});return t.then(()=&gt;(a({...e,isPromptOpen:!1}),!0),()=&gt;(a({...e,isPromptOpen:!1}),!1))}}};var d=n(44080),c=n(46125),u=n(93463),modal_prompt=()=&gt;{let{props:e,isPromptOpen:t=!1,proceed:n,cancel:i}=usePrompt(),[a,r]=(0,s.useState)(""),m=(0,s.useRef)(null),v=(0,s.useRef)(null);return(0,s.useEffect)(()=&gt;{m.current&amp;&amp;m.current.focus()},[]),(0,s.useEffect)(()=&gt;{m.current&amp;&amp;m.current.focus()},[t]),(0,l.jsx)(d.u,{appear:!0,show:t,as:s.Fragment,children:(0,l.jsx)(c.V,{as:"div",open:t,className:"fixed inset-0  z-[1000] overflow-y-auto bg-[rgb(0,0,0,0.65)]",onClose:()=&gt;i(),children:(0,l.jsxs)("div",{className:"min-h-screen px-4 text-center max-w-lg mx-auto",children:[(0,l.jsx)(d.u.Child,{as:s.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,l.jsx)(c.V.Overlay,{className:"fixed inset-0 "})}),(0,l.jsx)("span",{className:"inline-block h-screen align-middle","aria-hidden":"true",children:"​"}),(0,l.jsx)(d.u.Child,{as:s.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-100",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,l.jsxs)("div",{className:"inline-block w-full border transform p-6 my-8 overflow-hidden text-left align-middle transition-all shadow-modal rounded-2xl bg-gray-900 border-gray-700",children:[(0,l.jsx)("div",{className:"sm:flex items-center content-center",children:(0,l.jsxs)("div",{className:"flex-1",children:[(null==e?void 0:e.show_title)&amp;&amp;(0,l.jsx)("div",{className:"flex items-center content-center border-b pb-4 border-gray-700 ",children:(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsx)(c.V.Title,{as:"h3",className:"text-2xl font-bold leading-6  text-white",children:null==e?void 0:e.title})})}),(0,o.M)(null==e?void 0:e.body)&amp;&amp;(0,l.jsx)("div",{className:"mt-2 text-left break-all max-h-[300px] overflow-y-auto",children:null==e?void 0:e.body}),(null==e?void 0:e.show_input)&amp;&amp;(0,l.jsx)("div",{className:"mt-2 text-left break-all max-h-[300px] overflow-y-auto",children:(0,l.jsx)(u.Z,{placeholder:"A horse wearing running shoes",ref:m,value:a,onChange:e=&gt;r(e.target.value),className:"w-full px-2 py-1 bg-gray-600 text-white",minRows:2})})]})}),(0,l.jsxs)("div",{className:"flex flex-row-reverse items-center contents-center justify-start mt-4",children:[(null==e?void 0:e.show_confirm)&amp;&amp;(0,l.jsx)("button",{tabIndex:0,color:"primary",autoFocus:!0,ref:v,onClick:()=&gt;{e.show_input&amp;&amp;e.onSubmit(m.current.value),n()},className:"px-4 py-2 ml-4 bg-blue-500 text-white cursor-pointer font-bold rounded-md hover:opacity-80",children:null==e?void 0:e.confirm}),(null==e?void 0:e.show_cancel)&amp;&amp;(0,l.jsx)("button",{tabIndex:0,color:"secondary",onClick:i,className:"border  border-gray-700 px-4 py-2  cursor-pointer rounded-md hover:opacity-80  hover:border-gray-200",children:null==e?void 0:e.cancel})]})]})})]})})})};function DropzoneHeader(e){let{url:t,set_json:n,empty_value:r,type:d,title:c,processing:u,set_processing:m,generate_prompt:v}=e,[p,x]=(0,s.useState)(v);(0,s.useEffect)(()=&gt;{x(v)},[v]);let{isPrompted:h}=usePrompt();async function onGenerate(e){await n((0,o.f)(JSON.stringify(e),r)),await setTimeout(()=&gt;{m(!1)},5e3)}return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"flex items-center content-center",children:[(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsx)("div",{className:"flex items-center content-center",children:(0,l.jsx)("div",{className:"flex-0",children:(0,l.jsx)("h3",{className:"font-bold",children:c})})})}),(0,o.M)(t)&amp;&amp;(0,l.jsx)("div",{className:"text-right text-xs mr-2 ",children:(0,l.jsx)("button",{onClick:async()=&gt;{let e=await h("Are you sure you want to replace the original file?");e&amp;&amp;n()},className:"border px-2 py-1 font-bold rounded-full border-gray-700 hover:border-white",children:"remove file"})}),"image"==d&amp;&amp;(0,l.jsx)("div",{className:"text-right text-xs ",children:(0,l.jsx)("button",{onClick:async e=&gt;{if(e.preventDefault(),(0,o.M)(t)&amp;&amp;!confirm("Are you sure you want to remove this file?"))return!1;await h({title:"Enter a clear and descriptive prompt",show_input:!0,confirm:"Generate with AI",show_title:!0,show_body:!1,onSubmit:async e=&gt;{x(e),await n(r),await m(!0),await (0,i.E)(e,()=&gt;m(!0),e=&gt;onGenerate([e]))}})},className:"border px-2 py-1 font-bold rounded-full border-gray-700 hover:border-white",children:(0,l.jsxs)("div",{className:"flex items-center content-center",children:[(0,l.jsx)("div",{className:"flex-0 mr-2",children:(0,l.jsx)(a.Z,{id:"AI-Generate",tip:"Premium Only",classSize:"w-4 h-4"})}),(0,l.jsx)("div",{children:"Generate"})]})})})]}),(0,l.jsx)(modal_prompt,{})]})}},89589:function(e,t,n){n.d(t,{Z:function(){return DropzoneWrapperBlob}});var l=n(85893),i=n(30967),o=n(92358),a=n(95965),s=n(99061),r=n(67294),d=n(68901),c=n(67707),u=n(75403),m=n(24762),v=n(92366),p=n(22004),x=n.n(p),h=n(31637),g=n(89755),f=n.n(g),_=n(70173),b=n(93813),y=n(64562);function DropzoneWrapperBlob(e){var t,n,m,p,x,g,f;let{allowed_files:b,max_size:j,max_files:w,confirm_upload:N,file_type:S,onUploadSingle:k,api_url:C,files:M,set_files:z,total_files:T,set_total_files:F,track_files:Z,set_track_files:O,changes:P,set_changes:U,processing:E,set_processing:D,swap_preview:L,preview_url:I,preview_json:R,preview_width:A,preview_height:B}=e,[H,V]=(0,r.useState)(null),[J,Y]=(0,r.useState)(0);(0,r.useEffect)(()=&gt;{console.log("blob.url",H)},[H]);let[W,G]=(0,r.useState)(!1),[$,q]=(0,r.useState)((0,h.M)(I)&amp;&amp;I!==i.vc.upload.image.placeholder_url);(0,r.useEffect)(()=&gt;(G(!0),document.addEventListener("paste",Q),()=&gt;{document.removeEventListener("paste",Q)}),[]),(0,r.useEffect)(()=&gt;{q((0,h.M)(I)&amp;&amp;I!==i.vc.upload.image.placeholder_url)},[I]),(0,r.useEffect)(()=&gt;{M.length&gt;0&amp;&amp;(F(e=&gt;e&lt;=M.length?M.length:e),U(!0),N||handleFile())},[M,N]);let K=(0,r.useCallback)(async e=&gt;{await z(t=&gt;e.filter(e=&gt;b.indexOf((0,s.J)(e.name))&gt;-1&amp;&amp;e.size&lt;=j).map(e=&gt;Object.assign(e,{preview:URL.createObjectURL(e)})).concat(t))},[]),Q=(0,r.useCallback)(async e=&gt;{let t=e.clipboardData.items;for(let e=0;e&lt;t.length;e++){let n=t[e];if("file"===n.kind){let e=n.getAsFile();console.log("Pasted file:",e),b.indexOf((0,s.J)(e.name))&gt;-1?e.size&lt;=j?await z(t=&gt;(console.log("prev files",t),[Object.assign(e,{preview:URL.createObjectURL(e)})].concat(t))):(console.log("blobsize:",e.size,"max",j),(0,c.Z)("This file is ".concat((0,o.t)(e.size,0)," which is bigger than our maximum allowed size ").concat((0,o.t)(j,0),"."),{time:3e3,className:"",clickable:!0,clickClosable:!1})):(0,c.Z)("File type ".concat((0,s.J)(e.name)," is not supported!"),{time:3e3,className:"",clickable:!0,clickClosable:!1})}}},[]),{getRootProps:X,getInputProps:ee,isDragActive:et,isDragReject:en,acceptedFiles:el,fileRejections:ei}=(0,d.uI)({onDrop:K,accept:(0,i.Nm)(b),minSize:0,maxSize:j,maxFiles:w,autoFocus:!0});(0,r.useEffect)(()=&gt;{ei.length&gt;0&amp;&amp;ei[0].file.size&gt;j&amp;&amp;(0,c.Z)("This file is ".concat((0,o.t)(ei[0].file.size,0)," which is bigger than our maximum allowed size ").concat((0,o.t)(j,0),"."),{time:3e3,className:"",clickable:!0,clickClosable:!1})},[ei]);let handleFile=async()=&gt;{D(!0);let e=[...M];await F(M.length);for(let t=0;t&lt;e.length;t++)b.indexOf((0,s.J)(e[t].name))&gt;-1&amp;&amp;e[t].size&lt;=j&amp;&amp;await handleUpload(e[t],t,e.length)},handleUpload=async(e,t,n)=&gt;{if(-1==b.indexOf((0,s.J)(e.name)))return(0,c.Z)("Cannot upload an unsupported file type!",{time:3e3,className:"",clickable:!0,clickClosable:!1}),!1;let l=await (0,y.ws)(e.name,e,{access:"public",handleUploadUrl:"/api/private/upload/blob?type=".concat(S),multipart:!0,onUploadProgress(e){Y(e.percentage),console.log("e",e.loaded,e.total,e.percentage)}});if(await V(l),l){let n=new FormData;await n.append("file",l.url),n.append("file_type",S),n.append("upload_preset","dryqolej"),fetch(C,{method:"POST",body:n}).then(e=&gt;e.json()).then(async n=&gt;{await k(n,t,e),await console.log("Upload successful!")})}};return L&amp;&amp;$&amp;&amp;(0,h.M)(I)?(0,l.jsx)("div",{className:"",children:(0,l.jsx)(DropzonePreview,{preview_url:(0,h.f)(null==H?void 0:H.url,I),preview_json:R,preview_alt:(0,h.f)(null===(f=(0,_.E3)(null==R?void 0:R.metadata_json))||void 0===f?void 0:f.description,null==R?void 0:R.filename_original),allowed_files:b,preview_width:A,preview_height:B,isRealFile:$})}):(0,l.jsxs)("div",{className:"flex flex-col justify-center",children:[(0,l.jsxs)("div",{className:"p-2 relative h-[150px] w-full",children:[(0,l.jsx)("div",{className:"absolute  h-[150px] left-0 right-0",children:(0,l.jsx)("div",{className:"rounded-md w-full overflow-hidden",children:(0,l.jsx)("div",{className:"rounded-md animate-pulse bg-gray-600 hover:bg-gray-500 overflow-hidden h-[150px] w-full transition-all ease-out duration-1000"})})}),T&gt;0&amp;&amp;(0,l.jsx)("div",{className:"absolute  h-[150px] left-0 right-0",children:(0,l.jsx)("div",{className:"rounded-md w-full overflow-hidden",children:(0,l.jsx)("div",{className:"rounded-md animate-pulse bg-blue-600 overflow-hidden h-[150px] transition-all ease-out duration-1000",style:{width:"".concat(Math.round(Z/T*100),"%")}})})}),(0,l.jsxs)("div",{...X(),className:"absolute h-[150px] left-0 right-0",children:[(0,l.jsx)("input",{...ee()}),(0,l.jsxs)("div",{className:"opacity-70 hover:opacity-100\n            ".concat(et&amp;&amp;!en?"animate-pulse border-4":"border-2","\n            ").concat(en?"border-red-500":"border-blue-500","\n            text-xs 2xs:text-sm xs:text-md sm:text-lg md:text-xl lg:text-2xl xl:text-3xl font-bold text-center rounded-md \n           flex items-center content-center justify-center  p-5 cursor-pointer h-[150px] w-full  border-dashed  outline-none"),children:[E&amp;&amp;(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsx)(v.Z,{loadingstate:!0,loadingClass:"animate-pulse text-gray-400 w-5 h-5",toggle:{bgColor:"transparent",centerColor:"transparent",holeColor:"transparent",pointerColor:"#ffffff",dialerColor:"#ffffff77"}})}),(0,l.jsx)("div",{className:"overflow-hidden rounded-full bg-gray-200 mt-5 w-32",children:(0,l.jsx)("div",{style:{width:J},className:"h-2 rounded-full bg-green-600"})})]}),!E&amp;&amp;!et&amp;&amp;(0,l.jsxs)("div",{className:"flex items-center content-center w-full justify-center",children:[(0,l.jsx)("div",{className:"hidden xs:block  w-10 h-10 2xs:w-12 2xs:h-12 xs:w-14 xs:h-14 sm:w-16 sm:h-16  md:w-18 md:h-18 lg:w-20 lg:h-20 mr-3 sm:mr-5 relative",children:(0,l.jsx)("div",{className:"w-10 h-10 2xs:w-12 2xs:h-12 xs:w-14 xs:h-14 sm:w-16 sm:h-16  md:w-18 md:h-18 lg:w-20 lg:h-20 absolute border rounded-full bg-gray-700",children:(0,l.jsx)(u.Z,{type:"fill",icon:null===(t=i.Yc[S])||void 0===t?void 0:t.icon,className:" w-10 h-10 2xs:w-12 2xs:h-12 xs:w-14 xs:h-14 sm:w-16 sm:h-16  md:w-18 md:h-18 lg:w-20 lg:h-20 p-2 \n                                                      ",title:"Upload"})})}),(0,l.jsx)("div",{className:"flex-0 ",children:(0,l.jsxs)("div",{children:["Drag &amp; drop ",w&gt;1?"":"your ",null===(n=i.Yc[S])||void 0===n?void 0:n.type," file",w&gt;1?"s":""," ","here, paste from your clipboard, or click here to select"," ",w&gt;1?"":"your ","file",w&gt;1?"s":""]})})]}),!E&amp;&amp;et&amp;&amp;!en&amp;&amp;"Drop your file here",!E&amp;&amp;en&amp;&amp;(({"too-many-files":"You are dragging too many files. The limit is ".concat(w,"."),"file-invalid-type":"You are dragging in an unsupported file type."})[null===(p=ei[0])||void 0===p?void 0:null===(m=p.errors[0])||void 0===m?void 0:m.code]||(null===(g=ei[0])||void 0===g?void 0:null===(x=g.errors[0])||void 0===x?void 0:x.code))]})]})]}),N&amp;&amp;(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"flex flex-col items-center content-center justify-center mt-[20px] border border-gray-700 rounded-md gap-y-1 p-1 max-h-[400px] overflow-auto",children:(0,l.jsx)(ThumbList,{files:M,set_files:z,removeFile:(e,t,n)=&gt;{var l=[...t];l.splice(e,1),URL.revokeObjectURL(t[e].preview),n(l)},allowed_files:b,processing:E,isMounted:W})}),M.length&gt;0&amp;&amp;(0,l.jsxs)("div",{className:"flex items-center content-center px-2",children:[(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsx)("button",{className:"mx-auto font-bold text-xl  rounded-md mt-5 px-4 py-2 text-white text-center \n                ".concat(E?"bg-gray-600 cursor-no-drop":"bg-blue-600 hover:bg-blue-500  cursor-pointer","\n                "),onClick:handleFile,disabled:E,children:(0,l.jsx)(v.Z,{loadingstate:E,actionText:"Upload ".concat(M.length," ").concat((0,a.R)("File",M.length)),actionTextShort:"Upload",loadingClass:"animate-pulse text-gray-400 w-5 h-5",loadingText:"Uploading ".concat(T," ").concat((0,a.R)("File",T)),toggle:{bgColor:"transparent",centerColor:"transparent",holeColor:"transparent",pointerColor:"#ffffff",dialerColor:"#ffffff77"}})})}),(0,l.jsx)("div",{children:(0,l.jsx)("button",{className:"mx-auto border rounded-md mt-5 border-gray-700 px-4 py-2 text-white text-center cursor-pointer hover:border-white",onClick:()=&gt;{M.forEach(e=&gt;URL.revokeObjectURL(e.preview)),z([])},children:"Remove all"})})]}),0==M.length&amp;&amp;(0,l.jsx)("div",{className:"flex items-center content-center px-2",children:(0,l.jsx)("div",{className:"flex-0",children:(0,l.jsxs)("div",{...X(),className:"mx-auto font-bold text-xl  rounded-md mt-5 bg-gray-600 text-gray-400 px-4 py-2  text-center cursor-pointer",children:["Upload ",M.length," ",(0,a.R)("File",M.length)]})})})]})]})}function ThumbList(e){let{files:t,set_files:n,removeFile:i,allowed_files:a,processing:r,isMounted:d}=e;return(0,l.jsxs)(l.Fragment,{children:[0==t.length&amp;&amp;(0,l.jsx)("div",{className:"items-center content-center justify-center py-5 italic text-gray-400",children:(0,l.jsx)("div",{children:"No files selected"})}),t.length&gt;0&amp;&amp;(0,l.jsx)("div",{className:"pt-0 w-full",children:t.map((e,c)=&gt;(0,l.jsx)("div",{className:"w-full px-2 ",children:(0,l.jsxs)("div",{className:"flex-1 w-full flex items-center content-center gap-x-2 rounded-md\n              \n              ".concat(-1==a.indexOf((0,s.J)(e.name))?"bg-red-500":"hover:bg-gray-700","\n              "),children:[(0,l.jsxs)("div",{className:"",children:[(0,l.jsx)("img",{src:(0,s.R)(e),alt:"",className:"w-[50px] border","data-tip":!0,"data-for":"".concat(e.name,"-").concat(c)}),d&amp;&amp;"image"==(0,s.J)(e.name)&amp;&amp;(0,l.jsx)(m.Z,{id:"".concat(e.name,"-").concat(c),place:"right",effect:"solid",clickable:!1,delayHide:0,delayUpdate:0,className:"reacttooltip rounded-3xl shadow-lg",children:(0,l.jsxs)("div",{className:"helptips text-center",children:[(0,l.jsx)("div",{className:"",children:(0,l.jsx)("img",{src:(0,s.R)(e),alt:"",className:"w-[400px] border","data-tip":!0,"data-for":"".concat(e.name,"-").concat(c)})}),(0,l.jsx)("div",{className:"mt-2 font-bold",children:e.name}),(0,l.jsx)("div",{children:(0,o.t)(e.size,0)})]})})]}),(0,l.jsxs)("div",{className:"text-xs flex-1",children:[(0,l.jsx)("div",{className:"font-bold",children:e.name}),(0,l.jsx)("div",{children:(0,o.t)(e.size,0)})]}),!r&amp;&amp;(0,l.jsx)("div",{children:(0,l.jsx)("button",{className:"cursor-pointer px-2",onClick:()=&gt;{confirm("Are you sure you want to remove this file from your upload list?")&amp;&amp;i(c,t,n)},children:(0,l.jsx)(u.Z,{type:"fill",icon:"trash-sm",className:"h-5 w-5  ",title:"remove"})})})]})},"".concat(e.name,"-").concat(c)))})]})}function DropzonePreview(e){let{preview_url:t,preview_json:n,preview_alt:o,allowed_files:a,preview_width:s,preview_height:d,isRealFile:c}=e,[u,m]=(0,r.useState)(!0),[v,p]=(0,r.useState)(0),[g,_]=(0,r.useState)(t);return(0,r.useEffect)(()=&gt;{_((0,h.M)(t)?"".concat(t,"?cache=").concat(+new Date):null)},[t]),(0,l.jsxs)(l.Fragment,{children:[a.indexOf("image")&gt;-1&amp;&amp;(0,l.jsx)("div",{className:"max-w-[400px] mx-auto border border-white rounded-lg",style:u?{}:{backgroundImage:'linear-gradient(rgba(0, 0, 0, 0.5),rgba(0, 0, 0, 0.5)),url("'.concat(i.vc.upload.image.placeholder_url,'")'),backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center"},children:(0,l.jsx)(f(),{onLoad:()=&gt;m(!0),loader:()=&gt;g,onError:e=&gt;{m(!1),v&lt;=5&amp;&amp;setTimeout(()=&gt;{m(!0),_((0,h.M)(t)?"".concat(t,"?cache=").concat(+new Date):null),p(e=&gt;e+1)},2e3)},src:(0,b.D)(g),width:s||400,height:d||400,title:"".concat(u?o:"Loading Preview..."),alt:"".concat(u?o:"Loading Preview..."),layout:"responsive",quality:100,placeholder:"empty",unoptimized:!0,blurDataURL:i.vc.avatar.blurdataurl,className:" rounded-lg"})}),a.indexOf("audio")&gt;-1&amp;&amp;(0,l.jsxs)(l.Fragment,{children:[!u&amp;&amp;(0,l.jsx)("div",{className:"text-center flex items-center content-center justify-center my-2",children:(0,l.jsx)("div",{onClick:()=&gt;m(!0),className:"px-4 py-2 text-lg bg-gray-500 rounded-md ",children:"Load audio"})}),x().canPlay(g)&amp;&amp;(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(x(),{url:(0,b.D)(g),width:"100%",height:"50px",controls:!0,onReady:()=&gt;{m(!0)},onError:e=&gt;{v&lt;=5&amp;&amp;setTimeout(()=&gt;{_((0,h.M)(t)?"".concat(t,"?cache=").concat(+new Date):null),p(e=&gt;e+1)},2e3)}})})]})]})}},79468:function(e,t,n){n.d(t,{Z:function(){return WizardHeader}});var l=n(85893);function WizardHeader(e){let{wizard_array:t,wizard_id:n,set_wizard_id:i,disable_mobileview:o=!1}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"".concat(o?"flex":"hidden sm:flex"," items-center content-center border-b pb-4 border-gray-700"),children:t.map((e,t)=&gt;(0,l.jsx)("div",{className:"px-3 py-1 rounded-md cursor-pointer mr-2\n         ".concat(1==e.admin?"text-red-600":"","\n         ").concat(t==n?"bg-gray-700":""," hover:bg-gray-800"),onClick:()=&gt;i(t),children:e.title},t))}),!o&amp;&amp;(0,l.jsx)("div",{className:"sm:hidden block border-b pb-4  border-gray-700",children:(0,l.jsx)("select",{onChange:e=&gt;i(e.target.value),value:n,className:"rounded shadow border resize-none  cursor-pointer focus:shadow-outline text-xl w-full\n          \n          text-white placeholder-gray-500 bg-gray-800\n          ",children:t.map((e,t)=&gt;(0,l.jsxs)("option",{value:t,children:[t+1,". ",e.title]},t))})})]})}},84835:function(e,t,n){n.d(t,{Z:function(){return WizardOwner}});var l=n(85893),i=n(67294),o=n(68185),a=n(44080),s=n(46125),r=n(40466),d=n(30967),c=n(75403);let ModalWizardOwner=e=&gt;{var t;let{isOpen:n,closeModal:u,user_id:m,set_user_id:v,original_owner_id:p,original_owner_name:x,admin_user_name:h,set_admin_user_name:g,userdata:f,submitting:_,set_submitting:b,processing:y,set_processing:j,changes:w,set_changes:N,staffdata_active:S,set_staffdata_active:k,isAdmin:C}=e,M=(0,i.useRef)(null),{data:z,loading:T,error:F}=(0,r.Z)(null==f?void 0:f.id,"/api/private/user/select-by-staff",!0,d.vc.max_retries,d.vc.retry_interval,0);(0,i.useEffect)(()=&gt;{!z||T||F||(z.unshift({user_name:x,id:p,permissions:2047}),k(z))},[z,T,F]);let{data:Z,loading:O,error:P}=(0,r.Z)(h,"/api/public/v0/user/select-name?name=".concat(h),!0,d.vc.max_retries,d.vc.retry_interval,0);return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(a.u,{appear:!0,show:n,as:i.Fragment,children:(0,l.jsx)(s.V,{as:"div",open:n,className:"fixed inset-0 z-[100] overflow-y-scroll    bg-[rgb(0,0,0,0.85)]",onClose:()=&gt;u(),children:(0,l.jsxs)("div",{className:"min-h-screen px-5 max-w-xl mx-auto text-center",children:[(0,l.jsx)(a.u.Child,{as:i.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,l.jsx)(s.V.Overlay,{className:"fixed inset-0 "})}),(0,l.jsx)("span",{className:"inline-block h-screen align-middle","aria-hidden":"true",children:"​"}),(0,l.jsx)(a.u.Child,{as:i.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,l.jsxs)("div",{className:"inline-block w-full mb-10 border transform pb-1 mt-[48px] overflow-hidden text-left align-middle transition-all shadow-xl rounded-2xl bg-gray-900  border-gray-700",children:[(0,l.jsxs)("div",{className:"w-full content-center item-center flex py-2 px-4 shadow-md  bg-gray-700 border-b  border-gray-600",children:[(0,l.jsx)("div",{className:"flex-1 font-bold text-xl",children:"Set an owner name"}),(0,l.jsx)("div",{className:"flex-0",children:(0,l.jsx)("button",{type:"button",tabIndex:0,className:"mt-2",onClick:u,children:(0,l.jsx)(c.Z,{type:"fill",icon:"x-sm",className:" w-5 h-5 flex-0 my-auto ",title:"Close"})})})]}),(0,l.jsx)("div",{className:" w-full  overflow-y-auto content-center item-center flex px-2",children:(0,l.jsxs)("div",{className:"flex-1 py-2",children:[(0,l.jsxs)("select",{ref:M,className:"bg-gray-700 w-full",defaultValue:m,onChange:e=&gt;v(e.target.value),children:[null==S?void 0:S.map((e,t)=&gt;{var n;return(0,l.jsxs)("option",{value:null==e?void 0:e.id,children:[null==e?void 0:e.user_name," ",(null==e?void 0:null===(n=e.id)||void 0===n?void 0:n.toString())==(null==p?void 0:p.toString())?"(current)":""]},t)}),-1==S.map(e=&gt;{var t;return null==e?void 0:null===(t=e.id)||void 0===t?void 0:t.toString()}).indexOf(null==m?void 0:m.toString())&amp;&amp;(0,l.jsx)("option",{value:m,children:h}),C&amp;&amp;(0,l.jsx)("option",{value:"-1",className:"text-gray-400",children:"Manually enter a name"})]}),C&amp;&amp;(null==M?void 0:null===(t=M.current)||void 0===t?void 0:t.value)=="-1"&amp;&amp;(0,l.jsx)(o.Z,{type:"user",title:"Owner",description:"",helptip:"",name:"admin_user_name",placeholder:"Username",value:h,set_value:g,hidden_value:m,set_hidden_value:v,submitting:_,set_submitting:b,processing:y,set_processing:j,set_changes:N,changes:w})]})}),(0,l.jsx)("div",{className:" ",children:(0,l.jsx)("button",{type:"button",tabIndex:0,className:"mt-2 bg-blue-600 text-white hover:bg-blue-500 font-bold px-4 py-2 mx-2 mb-2 rounded-md",onClick:u,children:"Set and Close"})})]})})]})})})})};function WizardOwner(e){var t;let{isAdmin:n,bol_admin_user_name:a,set_bol_admin_user_name:s,admin_user_name:r,set_admin_user_name:d,user_id:c,set_user_id:u,submitting:m,set_submitting:v,processing:p,set_processing:x,changes:h,set_changes:g,title:f="Post Author",description:_="",userdata:b,owner_name:y,owner_id:j}=e,[w,N]=(0,i.useState)(y),[S,k]=(0,i.useState)(j),[C,M]=(0,i.useState)([{user_name:y,id:j,permissions:2047}]),[z,T]=(0,i.useState)(!1);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"mt-4 mb-2",children:[(0,l.jsx)("div",{children:(0,l.jsx)("h3",{className:"font-bold ",children:f})}),(0,l.jsx)("div",{className:"italic",children:_})]}),(0,l.jsx)("div",{className:"rounded-lg flex flex-item mx-1 overflow-hidden border \n                 \n                          \n                            border-blue-700\n                            ".concat(n&amp;&amp;"0"==a?" ":"","\n                    "),children:(0,l.jsx)("div",{className:"flex-1 flex items-center content-center",children:(0,l.jsxs)("div",{className:"flex-1  flex items-center content-center \n                                    text-white \n                                    \n                                    ",children:["0"==a&amp;&amp;(0,l.jsxs)("div",{className:"flex-1 text-md  flex items-center content-center",children:[(0,l.jsx)("div",{className:"flex-1 my-2 px-2",children:null!==C&amp;&amp;C.map(e=&gt;{var t;return null==e?void 0:null===(t=e.id)||void 0===t?void 0:t.toString()}).indexOf(null==c?void 0:c.toString())&gt;-1?null===(t=C.filter((e,t)=&gt;(null==e?void 0:e.id)==c)[0])||void 0===t?void 0:t.user_name:r}),n&amp;&amp;(0,l.jsx)("div",{className:"flex-0",children:(0,l.jsx)("div",{onClick:()=&gt;T(!0),className:"cursor-pointer text-white bg-blue-600 hover:bg-blue-500 font-bold px-4 py-2 rounded-r-md hover:opacity-75 w-20 text-center ",children:"Edit"})})]}),"1"==a&amp;&amp;(0,l.jsxs)("div",{className:"flex-1 font-bold text-xl flex items-center content-center",children:[(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsx)(o.Z,{type:"user",title:"Owner",description:"",helptip:"",name:"admin_user_name",placeholder:"Username",value:r,set_value:d,hidden_value:c,set_hidden_value:u,submitting:m,set_submitting:v,processing:p,set_processing:x,set_changes:g,changes:h})}),(0,l.jsx)("div",{className:"flex-0 ",children:(0,l.jsx)("div",{onClick:()=&gt;s("0"),className:"cursor-pointer text-white bg-blue-600 hover:bg-blue-500 font-bold px-4 py-2 rounded-r-md hover:opacity-75 w-20 text-center ",children:"Set"})})]})]})})})]}),(0,l.jsx)(ModalWizardOwner,{isOpen:z,closeModal:()=&gt;{T(!1)},user_id:c,set_user_id:u,original_owner_id:S,original_owner_name:w,admin_user_name:r,set_admin_user_name:d,userdata:b,submitting:m,set_submitting:v,processing:p,set_processing:x,set_changes:g,changes:h,staffdata_active:C,set_staffdata_active:M,isAdmin:n})]})}},79826:function(e,t,n){n.d(t,{Z:function(){return WizardPager}});var l=n(85893),i=n(5208),o=n(75403);function WizardPager(e){var t;let{wizard_id:n,set_wizard_id:a,submitting:s,changes:r,actionText:d,wizard_array:c}=e;return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"flex items-center content-center",children:(0,l.jsxs)("div",{className:"flex-1 flex items-center content-center ",children:[n&gt;0&amp;&amp;(0,l.jsx)("div",{className:"flex-1 mr-2  mt-4",children:(0,l.jsx)("div",{className:"inline-flex justify-center p-2  font-medium text-white bg-gray-500 hover:bg-gray-400 cursor-pointer border border-transparent rounded-md focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-red-500",onClick:()=&gt;{a(n-1)},children:(0,l.jsxs)("div",{className:"flex items-center content-center",children:[(0,l.jsx)(o.Z,{type:"fill",icon:"chevron-left-sm",className:" h-7 w-7",title:"Previous"}),(0,l.jsx)("div",{className:"mr-2 text-lg",children:"Previous"})]})})}),0==n&amp;&amp;(0,l.jsx)("div",{className:"flex-1"}),n&lt;c.length-1&amp;&amp;(0,l.jsx)("div",{className:"flex-0  mt-4",children:(0,l.jsx)("div",{className:"inline-flex justify-center p-2 font-medium cursor-pointer border border-transparent rounded-md focus:outline-none  text-white bg-blue-600 hover:bg-blue-500   ",onClick:()=&gt;{a(n+1)},children:(0,l.jsx)("span",{className:"block",children:(0,l.jsxs)("div",{className:"flex items-center content-center",children:[(0,l.jsx)("div",{className:"flex-0 ml-2 text-lg",children:null===(t=c[n+1])||void 0===t?void 0:t.short}),(0,l.jsx)("div",{className:"flex-0",children:(0,l.jsx)(o.Z,{type:"fill",icon:"chevron-right-sm",className:" h-7 w-7",title:"Next"})})]})})})}),n==c.length-1&amp;&amp;(0,l.jsx)("div",{className:"flex-0",children:(0,l.jsx)(i.Z,{submitting_state:s,changes:r,actionText:d,actionTextShort:d,className:" whitespace-nowrap text-xl inline-flex items-center justify-center px-4 py-2 border border-red-500 rounded-lg shadow-md  font-medium text-white bg-red-500 hover:bg-red-600 bg-gradient-to-b from-red-600  to-red-500 hover:from-red-700 hover:to-red-500 text-center flex-0"})})]})})})}},61816:function(e,t,n){n.d(t,{Z:function(){return WizardSectionForm}});var l=n(85893),i=n(67294),o=n(68185),a=n(44208);function WizardSectionForm(e){var t,n;let{section_id:s,wizard_id:r,set_wizard_id:d,wizard_array:c,submitting:u,set_submitting:m,processing:v,set_processing:p,changes:x,set_changes:h,children:g}=e;return(0,l.jsx)(a.Z,{section_id:s,wizard_id:r,set_wizard_id:d,wizard_array:c,children:(0,l.jsxs)(l.Fragment,{children:[null===(n=c[s])||void 0===n?void 0:null===(t=n.fields)||void 0===t?void 0:t.map((e,t)=&gt;(0,l.jsx)(i.Fragment,{children:(0,l.jsx)(o.Z,{type:null==e?void 0:e.type,title:null==e?void 0:e.title,description:null==e?void 0:e.description,helptip:null==e?void 0:e.helptip,name:null==e?void 0:e.name,placeholder:null==e?void 0:e.placeholder,options:null==e?void 0:e.options,value:null==e?void 0:e.value,set_value:null==e?void 0:e.set_value,hidden_value:null==e?void 0:e.hidden_value,set_hidden_value:null==e?void 0:e.set_hidden_value,meta:null==e?void 0:e.meta,show_condition:null==e?void 0:e.show_condition,submitting:u,set_submitting:m,set_changes:h,changes:x,processing:v,set_processing:p})},t)),(0,l.jsx)(l.Fragment,{children:g})]})})}},44208:function(e,t,n){n.d(t,{Z:function(){return WizardSection}});var l=n(85893);function WizardSection(e){let{section_id:t,wizard_id:n,set_wizard_id:i,wizard_array:o,children:a}=e;return(0,l.jsx)("div",{className:" ".concat(t==n?"":"hidden"," "),children:a})}},66067:function(e,t,n){n.d(t,{k:function(){return bumber}});function bumber(e){return"1"==e?"0":"1"}},81357:function(e,t,n){n.d(t,{EQ:function(){return isoToMysqlDateStr},Tj:function(){return extractDateObject},bv:function(){return domInputStringifyDateObject},i3:function(){return timezoneIsostringifyDateObject},mV:function(){return isostringifyDateObject}});var l=n(30381),i=n.n(l),o=n(31637),a=n(53583);function extractDateObject(e){var t,n,l,i,a,s;let r=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:"";if(!(0,o.M)(e))return null;s=(0,o.M)(r)?new Date(null==e?void 0:e.toLocaleString("en-US",{timeZone:r})).toISOString():new Date(e).toISOString();let d=null==s?void 0:null===(t=s.slice(0,10).toString())||void 0===t?void 0:t.split("-"),c=null==s?void 0:null===(n=s.slice(11,s.length).toString())||void 0===n?void 0:n.split(":");return{year:d[0],month:d[1],date:d[2],hour:c[0],minute:c[1],second:Math.round(parseInt(null===(l=c[2])||void 0===l?void 0:l.split(".")[0])),millisecond:Math.round(parseInt(null===(a=c[2])||void 0===a?void 0:null===(i=a.split(".")[1])||void 0===i?void 0:i.split("Z")[0])),meridian:12&gt;parseInt(c[0])?"AM":"PM"}}function timezoneIsostringifyDateObject(e,t){return"".concat(new Date(i()(isostringifyDateObject(e)).add(-i().tz(isostringifyDateObject(e),t).utcOffset(),"minutes").toDate()).toISOString())}function domInputStringifyDateObject(e){return"".concat((0,a.w)(null==e?void 0:e.year,4,"0"),"-").concat((0,a.w)(null==e?void 0:e.month,2,"0"),"-").concat((0,a.w)(null==e?void 0:e.date,2,"0"))}function isostringifyDateObject(e){var t;return"".concat((0,a.w)(null==e?void 0:e.year,4,"0"),"-").concat((0,a.w)(null==e?void 0:e.month,2,"0"),"-").concat((0,a.w)(null==e?void 0:e.date,2,"0"),"T").concat((0,a.w)(12==parseInt(t=parseInt(e.hour))||24==parseInt(t)?t-12:t,2,"0"),":").concat((0,a.w)(null==e?void 0:e.minute,2,"0"),":").concat((0,a.w)(null==e?void 0:e.second,2,"0"),".").concat((0,a.w)(null==e?void 0:e.millisecond,3,"0"),"Z")}function isoToMysqlDateStr(e){var t;return(0,o.M)(e)?null==e?void 0:null===(t=e.slice(0,19))||void 0===t?void 0:t.replace("T"," "):null}},99061:function(e,t,n){n.d(t,{J:function(){return getFileType},R:function(){return getFileThumbnail}});var l=n(30967);function getFileType(e){var t,n=e.split("."),i=".".concat(null===(t=n[n.length-1])||void 0===t?void 0:t.toLowerCase());return l.vc.upload.mime_types.image.indexOf(i)&gt;-1?"image":l.vc.upload.mime_types.audio.indexOf(i)&gt;-1?"audio":l.vc.upload.mime_types.video.indexOf(i)&gt;-1?"video":"unknown"}function getFileThumbnail(e){return({image:e.preview,audio:l.vc.upload.audio_thumb,video:l.vc.upload.video_thumb})[getFileType(e.name)]||l.vc.upload.unknown_thumb}},75138:function(e,t,n){n.d(t,{U:function(){return ifNull}});var l=n(31637);function ifNull(e,t){return(0,l.M)(e)?e:t}},53583:function(e,t,n){n.d(t,{B:function(){return padZero},w:function(){return padZeroVariable}});let padZero=e=&gt;e&lt;10?"0".concat(e):"".concat(e),padZeroVariable=(e,t,n)=&gt;String(e).length&lt;t?String(e).padStart(t-String(e).length+1,n):String(e)},68693:function(e,t,n){n.d(t,{NZ:function(){return sluginput},lV:function(){return slugify}});var l=n(31637);function slugify(e,t){var n;return"".concat(e,"-").concat(null==(n=null==(n=(0,l.M)(t)?null==t?void 0:t.replace(/[^a-zA-Z0-9-]/g,"-"):"untitled")?void 0:n.replace(/--+/g,"-"))?void 0:n.toLowerCase())}function sluginput(e,t,n){return slugify(e,(0,l.M)(t)?t:n).replace("".concat(e,"-"),"")}},34170:function(e,t,n){n.d(t,{U2:function(){return timerFormatClip},_W:function(){return timerFormatDHMS},f3:function(){return timerFormatSeconds},sE:function(){return timerFormat}});var l=n(46900),i=n(53583);let timerFormat=function(e){let t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]&amp;&amp;arguments[1];return"".concat(t?"".concat((0,i.B)(e.days),":"):"").concat((0,i.B)(e.hours),":").concat((0,i.B)(e.minutes),":").concat((0,i.B)(e.seconds))},timerFormatSeconds=function(e){let t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]&amp;&amp;arguments[1],n=(0,l.kB)(e);return"".concat(t?"".concat((0,i.B)(n.days),":"):"").concat((0,i.B)(n.hours),":").concat((0,i.B)(n.minutes),":").concat((0,i.B)(n.seconds))},timerFormatClip=e=&gt;"".concat((0,i.B)(e.minutes),":").concat((0,i.B)(e.seconds)),timerFormatDHMS=function(e){let t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]&amp;&amp;arguments[1],n=e.days&gt;0,l=n||e.hours&gt;0,i=l||e.minutes&gt;0;return t?"".concat(n?"".concat(e.days,"d "):"").concat(l?"".concat(e.hours,"h "):"").concat(i?"".concat(e.minutes,"m "):"").concat("".concat(e.seconds,"s ")):"".concat(n?"".concat(e.days," days, "):"").concat(l?"".concat(e.hours," hours, "):"").concat(i?"".concat(e.minutes," minutes, "):"").concat("".concat(e.seconds," seconds"))}}}]);
//# sourceMappingURL=329-e6d7bd1c4ac72ada.js.map</pre></body></html>