1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"[email protected]+a0ce631"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1f824ac1-86b0-4304-8c64-7868963fee76",e._sentryDebugIdIdentifier="sentry-dbid-1f824ac1-86b0-4304-8c64-7868963fee76")}catch(e){}}(),(self.webpackChunk_putdotio_app=self.webpackChunk_putdotio_app||[]).push([[5023],{69908:(e,t,r)=>{r.d(t,{U:()=>g});var s=r(28114),o=r(4099),n=r(9617),a=r(75964),i=r(2784),l=r(13749),d=r(75778),_=r(44094),u=r(40153),c=r(30965),p=r(784),m=r(18756),y=r(32315);const f=e=>(0,y.j)(e,[{error_type:"URL_NOT_VALID",kind:"api_error_type",localize:()=>({message:"Invalid URL",recoverySuggestion:{description:"Please check your URL and try again.",type:"instruction"}})},{error_type:"FEED_CANNOT_FETCHED",kind:"api_error_type",localize:()=>({message:"We couldn't fetch the feed",recoverySuggestion:{description:"Please make sure the URL contains a valid RSS feed.",type:"instruction"}})},{error_type:"FEED_CANNOT_PARSED",kind:"api_error_type",localize:()=>({message:"We couldn't parse this feed",recoverySuggestion:{description:"Please make sure the RSS feed is formatted correctly.",type:"instruction"}})},{kind:"api_status_code",localize:()=>({message:o.ZP.generic_error_title(),recoverySuggestion:{description:o.ZP.subs_inactive_account_message(),type:"instruction"}}),status_code:402},{error_type:"TOO_MANY_RSS_FEEDS",kind:"api_error_type",localize:()=>({message:"Too many RSS feeds",recoverySuggestion:{description:"Maximum 100 RSS feeds are allowed. Please delete some feeds and try again.",type:"instruction"}})}]);var b=r(52322);const g=e=>{let{feed:t,onSubmit:r}=e;const y=(0,i.useCallback)((async e=>{const{rss_source_url:t,title:o}=e,n=s.z.required(o),i=s.z.required(t);if(n||i)return{rss_source_url:i,title:n};try{await r(e)}catch(e){return{[a.Ck]:f(e)}}}),[r]);return(0,b.jsx)(d.Z,{title:t.title||o.ZP.sub_addnew_title(),type:"form",children:(0,b.jsx)(l.l0,{initialValues:t,onSubmit:y,render:e=>{let{handleSubmit:r,submitError:s,submitting:a}=e;return(0,b.jsxs)(_.Y,{onSubmit:r,spacing:20,submitError:s,children:[(0,b.jsx)(l.gN,{component:u.d,label:o.ZP.sub_form_title_title(),name:"title"}),(0,b.jsx)(l.gN,{autosize:!0,component:c.l,description:o.ZP.sub_form_url_help(),label:o.ZP.sub_form_url_title(),maxRows:4,minRows:4,name:"rss_source_url"}),(0,b.jsx)(l.gN,{component:n.a,description:o.ZP.sub_form_defaultdownload_help(),label:o.ZP.sub_form_defaultdownload_title(),name:"parent_dir_id"}),(0,b.jsx)(l.gN,{component:p.X,label:o.ZP.sub_form_oldfiles_title(),name:"dont_process_whole_feed",type:"checkbox"}),(0,b.jsx)(l.gN,{component:p.X,label:o.ZP.sub_form_deleteoldfiles_title(),name:"delete_old_files",type:"checkbox"}),(0,b.jsx)(l.gN,{component:u.d,description:o.ZP.sub_form_keywords_help(),label:o.ZP.sub_form_keywords_title(),name:"keyword"}),(0,b.jsx)(l.gN,{component:u.d,description:o.ZP.sub_form_negativekeywords_help(),label:o.ZP.sub_form_negativekeywords_title(),name:"unwanted_keywords"}),(0,b.jsx)(m.z,{loading:a,type:"submit",variant:"primary",children:t.title?o.ZP.sub_update_label():o.ZP.sub_create_label()})]})}})})}},15023:(e,t,r)=>{r.r(t),r.d(t,{default:()=>l}),r(36728);var s=r(91369),o=r(69908),n=r(96223),a=r(26993),i=r(52322);const l=e=>{let{router:t}=e;const[r]=(0,s.R)("default_download_folder"),l=(0,a.K)();return(0,i.jsx)(o.U,{feed:{parent_dir_id:r},onSubmit:async e=>{await l.mutateAsync(e),t.push(n.p.ROOT)}})}},26993:(e,t,r)=>{r.d(t,{K:()=>d,o:()=>l});var s=r(98355),o=r(58943),n=r(93599),a=r(43079),i=r(49024);const l=e=>[(0,o.a)({queryFn:async()=>(await i.Z.RSS.Get(e)).data.feed,queryKey:["rss-feed",e]}),{updateMutation:(0,n.D)({mutationFn:t=>i.Z.RSS.Update(e,t),onError:()=>{},onSuccess:()=>{a.Z.Show({message:(0,s.I)("sub_update_success_message"),type:a.Z.TYPE.SUCCESS})}})}],d=()=>(0,n.D)({mutationFn:e=>i.Z.RSS.Create(e),onError:()=>{},onSuccess:()=>{a.Z.Show({message:(0,s.I)("sub_create_success_message"),type:a.Z.TYPE.SUCCESS})}})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.