1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d427b17c-22c7-5b41-b2a5-b074fda89445")}catch(e){}}(); 3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[19087,19266,73674],{860:(e,t,r)=>{"use strict";r.d(t,{S:()=>n.UpgradePlanDialog,r:()=>i.r});var n=r(19087),i=r(47082)},2226:(e,t,r)=>{"use strict";r.d(t,{Jl:()=>n.Jl,gJ:()=>n.gJ});var n=r(27398)},5222:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(5306);let i=function(e){let{user:t}=(0,n.A)(),r=t?.selectedTeam;return!!r?.features?.[e]}},5306:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(67505),i=r(82489),a=r(55755);let l=function(e){let{data:t,error:r,isLoading:l,refetch:s}=(0,a.yj)({enabled:!e?.skip}),o=(0,i.v8)(r),c=o?void 0:t,d=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(!c)return;let e=!c.selectedTeamId||!c.selectedTeam,t=`${c.id}:${e?"missing":"present"}`;d.current!==t&&(d.current=t,e&&s())},[c,s]);let u=c?.id?c:null;return{error:o?void 0:r,loading:l,refetch:s,data:{user:u},user:u,isGuest:!u}}},6905:(e,t,r)=>{"use strict";r.d(t,{Io:()=>n,f_:()=>a,jA:()=>s,kG:()=>l,yY:()=>i});let n="Free plan supports only native RSS feeds. Upgrade your plan to continue.",i="Upgrade your plan to convert Newsletters to feeds.",a="Upgrade your plan to use RSS Builder.",l="Free plan doesn't support Email Digest. Please upgrade your plan.",s={telegram:"Free plan doesn't support Telegram alerts. Please upgrade your plan.",slack:"Free plan doesn't support Slack alerts. Please upgrade your plan.",discord:"Free plan doesn't support Discord alerts. Please upgrade your plan."}},7531:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(94285),i=r(67505),a=r(75315),l=r(65360),s=r(28755),o=r(21633);let c=i.forwardRef(({children:e,...t},r)=>(0,n.jsx)(a.A,{ref:r,...(0,s.w)(t),children:t.loading?(0,n.jsx)(l.e,{size:t.size,hasIcon:!!t.startIcon,children:e}):(0,o.I)(e)}))},9359:(e,t,r)=>{"use strict";r.d(t,{A:()=>a,BY:()=>h,C:()=>o,D4:()=>v,FX:()=>m,Fu:()=>n,LC:()=>d,O6:()=>j,OK:()=>C,Q8:()=>c,QF:()=>y,RY:()=>u,To:()=>b,bS:()=>_,f_:()=>i,i5:()=>l,jS:()=>s,mI:()=>f,nt:()=>p,vT:()=>g,vo:()=>x,zo:()=>w});let n="/api/site/v1/me",i="/api/site/v1/me/settings",a="/api/site/v1/me/api-key",l="/api/site/v1/teams/{id}",s="/api/site/v1/teams/{id}/invites",o="/api/site/v1/team-invites/{token}",c="/api/site/v1/teams/{id}/email-digest",d="/api/site/v1/feeds/{id}",u="/api/site/v1/feeds/{id}/settings",p="/api/site/v1/feeds/{id}/attach",h="/api/site/v1/feeds/{id}/follow",m="/api/site/v1/feeds/{id}/toggle-disable",g="/api/site/v1/following/order",f="/api/site/v1/collections",b="/api/site/v1/moderation",x="/api/site/v1/bundles/{id}",_="/api/site/v1/newsletters/inboxes",C="/api/site/v1/newsletters/inboxes/{id}/domain",w="/api/site/v1/newsletters/inboxes/{id}/refresh",v="/api/site/v1/newsletters/inboxes/{id}/test-email";function y(e,t){return[e,t]}function j(e,t,r){return e.invalidateQueries({queryKey:[t,r]})}},9614:e=>{e.exports={anchorLayer:"onboardingTour_anchorLayer__Ul73m",body:"onboardingTour_body___FqbR",arrow:"onboardingTour_arrow__HgbUJ",arrowJs:"onboardingTour_arrowJs__7bcxK",header:"onboardingTour_header__3HZuu",title:"onboardingTour_title__tfKYp",description:"onboardingTour_description__93CR3",footer:"onboardingTour_footer__brJAV",stepCounter:"onboardingTour_stepCounter__0e74g",closeBtn:"onboardingTour_closeBtn__kNta7",closeIcon:"onboardingTour_closeIcon__jkGK2",btn:"onboardingTour_btn__Nefum",btnContained:"onboardingTour_btnContained__cqW7K",btnGrey:"onboardingTour_btnGrey__wXzb_",btnSpaced:"onboardingTour_btnSpaced__7fv_Q"}},13585:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=e=>"string"==typeof e?e:e instanceof Error&&e.message||"object"==typeof e&&null!==e&&"message"in e&&"string"==typeof e.message?"Unexpected token < in JSON at position 0"===e.message?"Something went wrong.":e.message.replace("GraphQL error: ",""):"Something went wrong."},15011:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(94285);r(67505);var i=r(38110);let a=function(e){return(0,n.jsx)(i.A,{width:"6",height:"10",viewBox:"0 0 6 10",...e,style:{fill:"none",...e.style||{}},children:(0,n.jsx)("path",{d:"M0.5 1L4.5 5L0.5 9",stroke:"currentColor"})})}},19087:(e,t,r)=>{"use strict";r.r(t),r.d(t,{UpgradePlanDialog:()=>x});var n=r(94285);r(67505);var i=r(30543),a=r(7178),l=r(89071),s=r(32765),o=r(21275),c=r.n(o),d=r(70597),u=r(43789),p=r(7531),h=r(60034),m=r(47082),g=r(6905),f=r(99951);let b=(0,a.n9)()(()=>({dialog:{maxWidth:560,[`@media(max-width: ${f.Bm})`]:{width:"100%"}}}));function x({...e}){let{classes:t}=b(),{message:r,setMessage:a}=(0,m.r)(),o=r===g.Io,f=()=>a("");return r?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(i.A,{...e,open:!0,onClose:f,fullWidth:!0,classes:{paper:t.dialog},children:[(0,n.jsx)(l.A,{title:"Upgrade Your Plan",noWrap:!0,onClose:f}),(0,n.jsxs)(s.A,{children:[(0,n.jsx)(d.A,{fontWeight:400,variant:"subtitle1",children:r}),o&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.A,{variant:"subtitle1",fontWeight:500,mt:"24px",children:"Whatâs a native RSS feed?"}),(0,n.jsxs)(d.A,{variant:"subtitle1",mb:"24px",children:["Hereâs an example:"," ",(0,n.jsx)(d.A,{variant:"subtitle1",color:"customText.tertiary",component:"span",children:"https://techcrunch.com/feed"})]}),(0,n.jsxs)(d.A,{variant:"subtitle1",children:["You can discover more native RSS feeds at"," ",(0,n.jsx)(d.A,{variant:"subtitle1",component:"a",color:"primary",sx:{textDecoration:"underline"},href:"https://rssfinder.app/",target:"_blank",children:"rssfinder.com"})]})]})]}),(0,n.jsxs)(u.A,{children:[(0,n.jsx)(h.A,{variant:"outlined",size:"32",ga:"button-cancel",onClick:f,children:"Cancel"}),(0,n.jsx)(p.A,{component:c(),href:"/plans",color:"primary",ga:"button-upgrade",variant:"contained",onClick:f,size:"32",children:"Upgrade"})]})]})}):null}},19266:(e,t,r)=>{"use strict";r.d(t,{nj:()=>h,bf:()=>u,_b:()=>c,tQ:()=>p,s$:()=>o,P5:()=>d,z:()=>s,Lx:()=>l});var n=r(94285);r(67505);var i=r(55167),a=r(47521);let l=["beauty","business","celebrity","cooking","cryptocurrency","culture","design","entertainment","fashion","finance","fitness","gaming","health","infosecurity","lifestyle","logistics","magazine","marketing","music","news","politics","realEstate","science","shopping","sports","technology","travel"],s={en:{beauty:"Beauty",business:"Business",celebrity:"Celebrity",cooking:"Cooking",cryptocurrency:"Cryptocurrency",culture:"Culture",design:"Design",entertainment:"Entertainment",fashion:"Fashion",finance:"Finance",fitness:"Fitness",gaming:"Gaming",health:"Health",infosecurity:"Infosecurity",lifestyle:"Lifestyle",logistics:"Logistics",magazine:"Magazine",marketing:"Marketing",music:"Music",news:"News",politics:"Politics",realEstate:"Real Estate",science:"Science",shopping:"Shopping",sports:"Sports",technology:"Technology",travel:"Travel"},ja:{beauty:"ç¾ãã",business:"ä»äº",celebrity:"æå人",cooking:"æç",cryptocurrency:"æå·é貨",culture:"æå",design:"ãã¶ã¤ã³",entertainment:"ã¨ã³ã¿ã¼ãã¤ã¡ã³ã",fashion:"ãã¡ãã·ã§ã³",finance:"ãã¡ã¤ãã³ã¹",fitness:"ãã£ãããã¹",gaming:"ã²ã¼ã ",health:"å¥åº·",infosecurity:"æ å ±ã»ãã¥ãªãã£",lifestyle:"ã©ã¤ãã¹ã¿ã¤ã«",logistics:"ãã¸ã¹ãã£ã¯ã¹",magazine:"éèª",marketing:"ãã¼ã±ãã£ã³ã°",music:"鳿¥½",news:"ãã¥ã¼ã¹",politics:"æ¿æ²»",realEstate:"ä¸åç£",science:"åå¦",shopping:"è²·ãç©",sports:"ã¹ãã¼ã",technology:"ãã¯ããã¸ã¼",travel:"æ è
3¡"}},o=50,c=28,d=[{label:"Websites",href:"website",ga:"tab-website",icon:(0,n.jsx)(function(e){return(0,n.jsx)(i.I,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,n.jsx)("path",{d:"M4.16667 17.5C3.70833 17.5 3.31597 17.3368 2.98958 17.0104C2.66319 16.684 2.5 16.2917 2.5 15.8333V4.16667C2.5 3.70833 2.66319 3.31597 2.98958 2.98958C3.31597 2.66319 3.70833 2.5 4.16667 2.5H15.8333C16.2917 2.5 16.684 2.66319 17.0104 2.98958C17.3368 3.31597 17.5 3.70833 17.5 4.16667V15.8333C17.5 16.2917 17.3368 16.684 17.0104 17.0104C16.684 17.3368 16.2917 17.5 15.8333 17.5H4.16667ZM4.16667 15.8333H15.8333V6.66667H4.16667V15.8333Z",fill:"currentColor"})})},{})},{label:"Topics",href:"topics",ga:"tab-topics",icon:(0,n.jsx)(function(e){return(0,n.jsx)(i.I,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,n.jsx)("path",{d:"M5.8333 16.6666V7.47914C5.8333 7.0208 5.99997 6.63192 6.3333 6.31247C6.66664 5.99303 7.06247 5.8333 7.5208 5.8333H16.6666C17.125 5.8333 17.5173 5.9965 17.8437 6.32289C18.1701 6.64928 18.3333 7.04164 18.3333 7.49997V14.1666L14.1666 18.3333H7.49997C7.04164 18.3333 6.64928 18.1701 6.32289 17.8437C5.9965 17.5173 5.8333 17.125 5.8333 16.6666ZM1.68747 5.2083C1.60414 4.74997 1.69442 4.33678 1.9583 3.96872C2.22219 3.60067 2.5833 3.37497 3.04164 3.29164L12.0833 1.68747C12.5416 1.60414 12.9548 1.69442 13.3229 1.9583C13.6909 2.22219 13.9166 2.5833 14 3.04164L14.2083 4.16664H12.5L12.3541 3.3333L3.3333 4.93747L4.16664 9.6458V15.4583C3.94442 15.3333 3.75344 15.1666 3.59372 14.9583C3.434 14.75 3.3333 14.5139 3.29164 14.25L1.68747 5.2083ZM7.49997 7.49997V16.6666H13.3333V13.3333H16.6666V7.49997H7.49997Z",fill:"currentColor"})})},{})},{label:"Newsletters",href:"newsletters",ga:"tab-newsletters",icon:(0,n.jsx)(function(e){return(0,n.jsx)(i.I,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,n.jsx)("path",{d:"M3.33341 17.5C2.87508 17.5 2.48272 17.3368 2.15633 17.0104C1.82994 16.684 1.66675 16.2917 1.66675 15.8333V5.83333H3.33341V15.8333H15.8334V17.5H3.33341ZM6.66675 14.1667C6.20841 14.1667 5.81605 14.0035 5.48966 13.6771C5.16328 13.3507 5.00008 12.9583 5.00008 12.5V2.5H19.1667V12.5C19.1667 12.9583 19.0036 13.3507 18.6772 13.6771C18.3508 14.0035 17.9584 14.1667 17.5001 14.1667H6.66675ZM6.66675 12.5H17.5001V4.16667H6.66675V12.5ZM8.33341 10H11.6667V5.83333H8.33341V10ZM12.5001 10H15.8334V8.33333H12.5001V10ZM12.5001 7.5H15.8334V5.83333H12.5001V7.5Z",fill:"currentColor"})})},{})}],u=[{icon:function(e){return(0,n.jsx)(i.I,{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",...e,children:(0,n.jsx)("path",{d:"M2.66536 14C2.2987 14 1.98481 13.8694 1.7237 13.6083C1.46259 13.3472 1.33203 13.0333 1.33203 12.6667V4.66667H2.66536V12.6667H12.6654V14H2.66536ZM5.33203 11.3333C4.96536 11.3333 4.65148 11.2028 4.39036 10.9417C4.12925 10.6806 3.9987 10.3667 3.9987 10V2H15.332V10C15.332 10.3667 15.2015 10.6806 14.9404 10.9417C14.6793 11.2028 14.3654 11.3333 13.9987 11.3333H5.33203ZM5.33203 10H13.9987V3.33333H5.33203V10ZM6.66536 8H9.33203V4.66667H6.66536V8ZM9.9987 8H12.6654V6.66667H9.9987V8ZM9.9987 6H12.6654V4.66667H9.9987V6Z",fill:"currentColor"})})},value:a.b4.News,titleKey:"content_type_news",descriptionKey:"content_type_news_description"},{icon:function(e){return(0,n.jsx)(i.I,{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",...e,children:(0,n.jsx)("path",{d:"M12.6667 12.6667V10.6667H3.33333V12.6667H12.6667ZM12.6667 9.33333V6.66667H3.33333V9.33333H12.6667ZM12.6667 5.33333V3.33333H3.33333V5.33333H12.6667ZM3.33333 14C2.96667 14 2.65278 13.8694 2.39167 13.6083C2.13056 13.3472 2 13.0333 2 12.6667V3.33333C2 2.96667 2.13056 2.65278 2.39167 2.39167C2.65278 2.13056 2.96667 2 3.33333 2H12.6667C13.0333 2 13.3472 2.13056 13.6083 2.39167C13.8694 2.65278 14 2.96667 14 3.33333V12.6667C14 13.0333 13.8694 13.3472 13.6083 13.6083C13.3472 13.8694 13.0333 14 12.6667 14H3.33333Z",fill:"currentColor"})})},value:a.b4.Table,titleKey:"content_type_table",descriptionKey:"content_type_table_description"},{icon:function(e){return(0,n.jsx)(i.I,{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",...e,children:(0,n.jsx)("path",{d:"M2 13.3327V11.9993H3.83333L3.56667 11.766C2.98889 11.2549 2.58333 10.6716 2.35 10.016C2.11667 9.36046 2 8.69935 2 8.03268C2 6.79935 2.36944 5.70213 3.10833 4.74102C3.84722 3.7799 4.81111 3.14379 6 2.83268V4.23268C5.2 4.52157 4.55556 5.01324 4.06667 5.70768C3.57778 6.40213 3.33333 7.17713 3.33333 8.03268C3.33333 8.53268 3.42778 9.01879 3.61667 9.49102C3.80556 9.96324 4.1 10.3993 4.5 10.7993L4.66667 10.966V9.33268H6V13.3327H2ZM13.95 7.33268H12.6C12.5444 6.94379 12.425 6.57157 12.2417 6.21602C12.0583 5.86046 11.8111 5.52157 11.5 5.19935L11.3333 5.03268V6.66602H10V2.66602H14V3.99935H12.1667L12.4333 4.23268C12.8889 4.69935 13.2389 5.19379 13.4833 5.71602C13.7278 6.23824 13.8833 6.77713 13.95 7.33268ZM11.3333 15.3327L11.1333 14.3327C11 14.2771 10.875 14.2188 10.7583 14.1577C10.6417 14.0966 10.5222 14.0216 10.4 13.9327L9.43333 14.2327L8.76667 13.0993L9.53333 12.4327C9.51111 12.2771 9.5 12.1327 9.5 11.9993C9.5 11.866 9.51111 11.7216 9.53333 11.566L8.76667 10.8993L9.43333 9.76602L10.4 10.066C10.5222 9.97713 10.6417 9.90213 10.7583 9.84102C10.875 9.7799 11 9.72157 11.1333 9.66602L11.3333 8.66602H12.6667L12.866
37 9.66602C13 9.72157 13.125 9.78268 13.2417 9.84935C13.3583 9.91602 13.4778 9.99935 13.6 10.0993L14.5667 9.76602L15.2333 10.9327L14.4667 11.5993C14.4889 11.7327 14.5 11.8716 14.5 12.016C14.5 12.1605 14.4889 12.2993 14.4667 12.4327L15.2333 13.0993L14.5667 14.2327L13.6 13.9327C13.4778 14.0216 13.3583 14.0966 13.2417 14.1577C13.125 14.2188 13 14.2771 12.8667 14.3327L12.6667 15.3327H11.3333ZM12 13.3327C12.3667 13.3327 12.6806 13.2021 12.9417 12.941C13.2028 12.6799 13.3333 12.366 13.3333 11.9993C13.3333 11.6327 13.2028 11.3188 12.9417 11.0577C12.6806 10.7966 12.3667 10.666 12 10.666C11.6333 10.666 11.3194 10.7966 11.0583 11.0577C10.7972 11.3188 10.6667 11.6327 10.6667 11.9993C10.6667 12.366 10.7972 12.6799 11.0583 12.941C11.3194 13.2021 11.6333 13.3327 12 13.3327Z",fill:"currentColor"})})},value:a.b4.ChangeDetection,titleKey:"content_type_change_detection",descriptionKey:"content_type_change_detection_description"},{icon:function(e){return(0,n.jsx)(i.I,{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",...e,children:(0,n.jsx)("path",{d:"M5.33333 10.6667H10.6667V5.33333H5.33333V10.6667ZM3.33333 14C2.96667 14 2.65278 13.8694 2.39167 13.6083C2.13056 13.3472 2 13.0333 2 12.6667V3.33333C2 2.96667 2.13056 2.65278 2.39167 2.39167C2.65278 2.13056 2.96667 2 3.33333 2H12.6667C13.0333 2 13.3472 2.13056 13.6083 2.39167C13.8694 2.65278 14 2.96667 14 3.33333V12.6667C14 13.0333 13.8694 13.3472 13.6083 13.6083C13.3472 13.8694 13.0333 14 12.6667 14H3.33333ZM3.33333 12.6667H12.6667V3.33333H3.33333V12.6667Z",fill:"currentColor"})})},value:a.b4.Logs,titleKey:"content_type_logs",descriptionKey:"content_type_logs_description"},{icon:function(e){return(0,n.jsx)(i.I,{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",...e,children:(0,n.jsx)("path",{d:"M7.33203 8.66732V6.00065H8.66536V7.33398H9.9987V8.66732H7.33203ZM11.9987 8.66732V7.33398H13.332V6.00065H14.6654V8.66732H11.9987ZM7.33203 4.00065V1.33398H9.9987V2.66732H8.66536V4.00065H7.33203ZM13.332 4.00065V2.66732H11.9987V1.33398H14.6654V4.00065H13.332ZM2.26536 14.6673L1.33203 13.734L5.06536 10.0007H1.9987V8.66732H7.33203V14.0007H5.9987V10.934L2.26536 14.6673Z",fill:"currentColor"})})},value:a.b4.AnyElement,titleKey:"content_type_any_element",descriptionKey:"content_type_any_element_description"}];a.b4.News,a.b4.Table,a.b4.ChangeDetection,a.b4.Logs,a.b4.AnyElement;let p={[a.b4.News]:"instruction_news",[a.b4.Table]:"instruction_table",[a.b4.ChangeDetection]:"instruction_change_detection",[a.b4.Logs]:"instruction_logs",[a.b4.AnyElement]:"instruction_any_element"};a.b4.News,a.b4.Table,a.b4.ChangeDetection,a.b4.Logs,a.b4.AnyElement;let h=[{value:a.JQ.Text,titleKey:"change_detection_text"},{value:a.JQ.Url,titleKey:"change_detection_url"},{value:a.JQ.Image,titleKey:"change_detection_image"}];a.JQ.Text,a.JQ.Url,a.JQ.Image},21633:(e,t,r)=>{"use strict";r.d(t,{I:()=>a});var n=r(94285),i=r(67505);let a=e=>"string"==typeof e?(0,n.jsx)("span",{children:e}):Array.isArray(e)?i.Children.map(e,e=>"string"==typeof e?(0,n.jsx)("span",{children:e}):e):e},23650:(e,t,r)=>{"use strict";r.d(t,{Xx:()=>o,ZK:()=>p,rf:()=>d,uq:()=>u});var n=r(15050),i=r(9406),a=r(61808),l=r(58479),s=r(82489);function o(e,t,r){return[e,t,r??null]}async function c(e,t,r){let n=(0,l.D7)(),i=await n.request(e,t,r);return(0,s.k$)(i,t)}function d(e,t,...[r,i]){return(0,n.I)({...i,queryKey:o(e,t,r),queryFn:({signal:n})=>c(e,t,{...r,signal:n})})}function u(e,t,r){return(0,i.n)({...r,mutationKey:[e,t],mutationFn:r=>c(e,t,r)})}function p(e,t,r,n){let{keyInit:i,initForOffset:l,nextOffset:s,initialOffset:d=0}=r;return(0,a.q)({...n,queryKey:[...o(e,t,i),"infinite"],initialPageParam:d,queryFn:({pageParam:r,signal:n})=>c(e,t,{...l(r),signal:n}),getNextPageParam:(e,t)=>s(t)})}},28005:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/rss-builder/webpage/[buildUrl]",function(){return r(40427)}])},28755:(e,t,r)=>{"use strict";r.d(t,{w:()=>n});let n=({disabled:e,loading:t,sx:r,roboto:n,startIcon:i,...a})=>({disabled:e||t,sx:r,roboto:n,...a,startIcon:!t&&i})},30390:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(e,t)=>{let{getTopLevelDomain:r}=t??{};try{let t=new URL(e);if(t){let e;return(r?(e=t.hostname.split(".")).length>=2?e[e.length-2]:null:t.hostname).replace("www.","").replace("ww2.","")}}catch(e){}return""}},30543:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(99469).A},32765:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(2451).A},33813:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(42101).A},39556:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(94285);r(67505);var i=r(38110);function a(e){return(0,n.jsx)(i.A,{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...e,children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.23887 12.77C5.92038 12.4628 5.92038 11.9649 6.23887 11.6577L10.0311 8.00037L6.23886 4.34303C5.92038 4.03588 5.92038 3.53789 6.23886 3.23073C6.55735 2.92358 7.07372 2.92358 7.3922 3.23073L11.7611 7.44421C12.0796 7.75137 12.0796 8.24936 11.7611 8.55652L7.3922 12.77C7.07372 13.0772 6.55735 13.0772 6.23887 12.77Z",fill:"currentColor"})})}a.displayName="ArrowRight";let l=a},40427:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSG:()=>i,default:()=>a});var n=r(76406),i=!0;let a=n.A},42196:e=>{e.exports={root:"icon_root__pqfPI",inherit:"icon_inherit__xvCEk",small:"icon_small__UyYQS",medium:"icon_medium__Ubb8w",large:"icon_large__v172K"}},42802:e=>{e.exports={inputBox:"webpageDomain_inputBox__bApMe",host:"webpageDomain_host__TowuD",copyButton:"webpageDomain_copyButton__l8MD0",copyIcon:"webpageDomain_copyIcon__mJYWI"}},43789:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(95960).A},47082:(e,t,r)=>{"use strict";r.d(t,{r:()=>a});var n=r(67505),i=r(374);let a=()=>{let[e,t]=(0,i.Ul)("UPGRADE_PLAN_DIALOG","");return(0,n.useEffect)(()=>()=>{t("")},[]),{message:e,setMessage:t}}},47521:(e,t,r)=>{"use strict";r.d(t,{CF:()=>f,J1:()=>x,JQ:()=>h,b4:()=>_,dR:()=>b,i4:()=>g,lS:()=>v,nO:()=>w,u3:()=>C,w2:()=>m});var n,i,a,l,s,o,c,d,u,p,h=((n={}).Image="IMAGE",n.Site="SITE",n.Text="TEXT",n.Url="URL",n),m=((i={}
3).Carousel="carousel",i.Feed="feed",i.Grid="grid",i.Imageboard="imageboard",i.List="list",i.Magazine="magazine",i.Ticker="ticker",i.Wall="wall",i),g=((a={}).AiBriefFeed="AI_BRIEF_FEED",a.Api="API",a.ApprovalFeed="APPROVAL_FEED",a.Builder="BUILDER",a.Collection="COLLECTION",a.ConvertFeed="CONVERT_FEED",a.Explore="EXPLORE",a.Extension="EXTENSION",a.FeedFromBundle="FEED_FROM_BUNDLE",a.Generator="GENERATOR",a.Import="IMPORT",a.Newsletter="NEWSLETTER",a.Picker="PICKER",a.RssFinder="RSS_FINDER",a.RssJson="RSS_JSON",a.RssNative="RSS_NATIVE",a.RssValidator="RSS_VALIDATOR",a.RssViewer="RSS_VIEWER",a.Topic="TOPIC",a),f=((l={}).ForwardEmail="forward_email",l.Newsletter="newsletter",l.Notification="notification",l),b=((s={}).AiBrief="AI_BRIEF",s.Source="SOURCE",s),x=((o={}).Footer="FOOTER",o.Header="HEADER",o),_=((c={}).AnyElement="ANY_ELEMENT",c.ChangeDetection="CHANGE_DETECTION",c.Logs="LOGS",c.News="NEWS",c.Table="TABLE",c),C=((d={}).Id="id",d.List="list",d),w=((u={}).Accepted="accepted",u.Declined="declined",u.Pending="pending",u),v=((p={}).Admin="admin",p.Owner="owner",p.Participant="participant",p)},50548:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(94285),i=r(67505),a=r(75315),l=r(28908),s=r(7178),o=r(21633);let c=(0,s.n9)()(()=>({loader:{position:"absolute",offset:0,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#ffffff44",width:"100%",height:"100%",borderRadius:4},button:{letterSpacing:"0.15px"}})),d=i.forwardRef(({children:e,loading:t,disabled:r,className:i,...s},d)=>{let{classes:u,cx:p}=c(),h="grey"===s.color?"inherit":s.color;return(0,n.jsxs)(a.A,{ref:d,disabled:t||r,...s,className:p(u.button,i),children:[t&&(0,n.jsx)("span",{className:u.loader,children:(0,n.jsx)(l.A,{color:h||"inherit",size:16})}),(0,o.I)(e)]})})},53963:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(94285),i=r(67505),a=r(7178),l=r(28342),s=r(93736),o=r(60222);let c=(0,a.n9)({name:"AnimateLoading"})(e=>({root:{zIndex:3e3,backgroundColor:"rgba(0, 0, 0, 0.5)"},container:{display:"flex",alignItems:"center",margin:"0 42px",maxWidth:759,width:"100%",height:345,borderRadius:20,background:"#FFFFFF","@media(max-width: 746px)":{margin:"0 20px"},"@media(max-width: 700px)":{maxWidth:"380px",flexDirection:"column",height:"auto"}},halfBox:{display:"flex",justifyContent:"flex-end",width:"55%",height:"100%","&:first-of-type":{display:"flex",width:"45%",padding:32},"@media(max-width: 700px)":{width:"100%","&:first-of-type":{width:"100%"}},"@media(max-width: 400px)":{"&:first-of-type":{padding:48},"&:nth-child(2)":{display:"none"}}},descriptionBox:{width:"100%",margin:"auto"},progressLine:{background:"#AEC9EA","& > .MuiLinearProgress-barColorPrimary":{background:"#3874CB"}},title:{marginBottom:8,fontWeight:600,fontSize:"24px",lineHeight:"33px",color:"#252631"},description:{marginBottom:24,fontWeight:600,fontSize:"14px",lineHeight:"19px",color:"#999999"}})),d=({title:e,open:t,animation:r,className:a,text:d})=>{let{classes:u,cx:p}=c(),[h,m]=i.useState(0);return i.useEffect(()=>{if(!t)return void m(0);let e=setInterval(()=>{m(e=>100===e?0:Math.min(e+10*Math.random(),100))},500);return()=>{clearInterval(e)}},[t]),(0,n.jsx)(l.A,{open:t,className:p(u.root,a),children:t&&(0,n.jsxs)("div",{className:u.container,children:[(0,n.jsx)("div",{className:u.halfBox,children:(0,n.jsxs)("div",{className:u.descriptionBox,children:[(0,n.jsx)(o.A,{variant:"subtitle1",className:u.title,children:e}),(0,n.jsx)(o.A,{className:u.description,children:d||(0,n.jsxs)(n.Fragment,{children:["Hold tight, it might take up to ",(0,n.jsx)("br",{})," 20 seconds."]})}),(0,n.jsx)(s.A,{variant:"determinate",value:h,className:u.progressLine})]})}),(0,n.jsx)("div",{className:u.halfBox,children:(0,n.jsx)("img",{src:r,alt:"animation",style:{height:"100%"}})})]})})}},55167:(e,t,r)=>{"use strict";r.d(t,{I:()=>s});var n=r(94285);r(67505);var i=r(3638),a=r(42196),l=r.n(a);function s({fontSize:e="medium",className:t,viewBox:r="0 0 24 24",children:a,...o}){return(0,n.jsx)("svg",{focusable:"false","aria-hidden":"true",viewBox:r,...o,className:(0,i.A)(l().root,l()[e],t),children:a})}},55755:(e,t,r)=>{"use strict";r.d(t,{wz:()=>l,yj:()=>s});var n=r(9359),i=r(23650);let a={},l=()=>(0,i.Xx)("get",n.Fu,a);function s(e){return(0,i.rf)("get",n.Fu,a,e)}},60034:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(94285),i=r(67505),a=r(75315),l=r(4177),s=r(65360),o=r(28755);let c=(0,l.Ay)(a.A)(({variant:e,theme:t})=>
3"outlined"===e&&["text","customGrey","customBackgroundSecondary"].every(e=>e in t.palette)?{color:t.palette.text.primary,borderColor:t.palette.customGrey.dark,"& > .MuiButton-startIcon":{color:t.palette.text.secondary},"&:hover":{backgroundColor:t.palette.customBackgroundSecondary.light,borderColor:t.palette.customGrey.dark},"&.Mui-disabled":{backgroundColor:t.palette.background.paper,color:t.palette.customGrey.dark,borderColor:t.palette.customGrey.main,"& > .MuiButton-startIcon":{color:t.palette.customGrey.dark}}}:"text"===e&&["text","customGrey","customBackgroundSecondary"].every(e=>e in t.palette)?{color:t.palette.text.primary,"& > .MuiButton-startIcon":{color:t.palette.text.secondary},"&:hover":{backgroundColor:t.palette.customBackgroundSecondary.light},"&.Mui-disabled":{backgroundColor:t.palette.background.paper,color:t.palette.customGrey.dark,"& > .MuiButton-startIcon":{color:t.palette.customGrey.dark}}}:{}),d=i.forwardRef(({children:e,...t},r)=>(0,n.jsx)(c,{ref:r,...(0,o.w)(t),children:t.loading?(0,n.jsx)(s.e,{size:t.size,hasIcon:!!t.startIcon,children:e}):e}))},60769:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(94285),i=r(67505),a=r(50548),l=r(851),s=r(10488),o=r(86499),c=r(67592);let d=function(){let e=i.useRef(null),t=i.useCallback(()=>{e.current&&clearInterval(e.current)},[]),r=i.useCallback((r,n)=>{t(),e.current=setInterval(r,n)},[]);return i.useEffect(()=>()=>{t()},[]),[r,t]},u=async()=>{try{return(await fetch("/getBuildId").then(e=>e.json())).buildId}catch{}},p=()=>{let e=(()=>{let[e]=d(),[t,r]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{let t=async()=>{let e=await u(),t=window.buildId;t&&e!==t&&(window.buildId=e,r(!0))};return u().then(e=>{window.buildId||(window.buildId=e)}),e(t,3e4),window.addEventListener("focus",t),()=>{window.removeEventListener("focus",t)}},[]),t})(),{t}=(0,o.Bd)();return e?(0,n.jsx)(l.A,{ContentProps:{sx:{color:"white",background:"#1A1D21",fontWeight:600}},anchorOrigin:{vertical:"bottom",horizontal:"left"},open:!0,onClose:()=>document.location.reload(),message:(0,n.jsxs)(s.A,{display:"flex",alignItems:"center",columnGap:"16px",children:[(0,n.jsx)(c.A,{style:{color:"#B2BECF"}}),(0,n.jsx)("span",{children:t("dashboard/common:new_version_available")})]}),action:(0,n.jsx)(a.A,{tabIndex:1,variant:"contained",color:"primary",size:"small",onClick:()=>document.location.reload(),children:t("dashboard/common:refresh")})}):null};p.displayName="HasNewDeploy";let h=p},62307:(e,t,r)=>{"use strict";r.d(t,{$1:()=>c,TY:()=>n,wX:()=>o});let n="/r/myfeeds",i="https://rss.app",a=i?`${i.replace(/\/+$/,"")}/r`:"/r",l=e=>{if(e.startsWith("/r/")||"/r"===e)return e;let t=e.startsWith("/")?e:`/${e}`;return`/r${t}`},s=e=>{let t=e.match(/^\/(myfeeds|teams)([/?#].*)?$/);if(t){let[,e,r=""]=t;return`/r/${e}${r}`}let r=e.match(/^\/team((?:\/[^?#]*)?)([?#].*)?$/);if(r){let[,e="",t=""]=r;return`/r/team${e}${t}`}return e},o=e=>{if(/^https?:\/\//i.test(e)){let t=new URL(e),r=s(`${t.pathname}${t.search}${t.hash}`);return`${t.origin}${r}`}return s(e)},c=e=>{if(!e)return a;
3if(/^https?:\/\//i.test(e))return e;let t=(e=>{if(!e)return"/r";if(/^https?:\/\//i.test(e)){let t=new URL(e),r=l(`${t.pathname}${t.search}${t.hash}`);return`${t.origin}${r}`}return e.startsWith("/r/")||"/r"===e?e:l(e)})(e);return i?`${i.replace(/\/+$/,"")}${t}`:t}},62759:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(94285);r(67505);var i=r(55167);let a=e=>(0,n.jsx)(i.I,{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...e,children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.23037 5.23886C3.53752 4.92038 4.03551 4.92038 4.34267 5.23886L8 9.03113L11.6573 5.23886C11.9645 4.92038 12.4625 4.92038 12.7696 5.23886C13.0768 5.55735 13.0768 6.07372 12.7696 6.3922L8.55615 10.7611C8.249 11.0796 7.751 11.0796 7.44385 10.7611L3.23037 6.3922C2.92321 6.07372 2.92321 5.55735 3.23037 5.23886Z",fill:"currentColor"})})},62815:(e,t,r)=>{"use strict";r.d(t,{L:()=>i,Z:()=>a});var n=r(99951);let i=e=>{if(n.S$)return null;try{return window.localStorage.getItem(e)}catch(e){return null}},a=(e,t)=>{if(!n.S$)try{window.localStorage.setItem(e,t)}catch(e){return null}}},64798:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>a,Qb:()=>l,_S:()=>i});var n=r(5306);let i=e=>{let t=e?.selectedTeam;return t?.subscription?.plan==="free"},a=()=>{let{user:e}=(0,n.A)();return!!i(e)},l=()=>{let e,{user:t}=(0,n.A)();return e=t?.selectedTeam,e?.subscription?.isTrial}},65293:(e,t,r)=>{"use strict";r.d(t,{Qp:()=>u.A,bm:()=>l,JL:()=>d,UT:()=>o});var n=r(94285);r(67505);var i=r(38110);function a(e){return(0,n.jsx)(i.A,{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...e,children:(0,n.jsx)("path",{d:"M3.80033 13.4004C3.46896 13.7317 2.93171 13.7317 2.60033 13.4004C2.26896 13.069 2.26896 12.5317 2.60033 12.2004L6.80033 8.00037L2.60033 3.80037C2.26896 3.46899 2.26896 2.93174 2.60033 2.60037C2.93171 2.26899 3.46896 2.26899 3.80033 2.60037L8.00033 6.80036L12.2003 2.60037C12.5317 2.26899 13.069 2.26899 13.4003 2.60037C13.7317 2.93174 13.7317 3.46899 13.4003 3.80037L9.20034 8.00037L13.4003 12.2004C13.7317 12.5317 13.7317 13.069 13.4003 13.4004C13.069 13.7317 12.5317 13.7317 12.2003 13.4004L8.00033 9.20037L3.80033 13.4004Z",fill:"currentColor"})})}a.displayName="Close";let l=a;function s(e){return(0,n.jsx)(i.A,{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...e,children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5976 2.26922C9.34225 1.70076 7.93424 1.55877 6.58997 1.8652C5.24573 2.17163 4.03999 2.9094 3.15784 3.96472C2.27572 5.02 1.7659 6.33448 1.70634 7.70612C1.69188 8.03909 1.41024 8.29728 1.07728 8.28283C0.744318 8.26837 0.48612 7.98673 0.500579 7.65377C0.571655 6.01697 1.18003 4.44898 2.23186 3.19067C3.28365 1.93241 4.72061 1.05347 6.32174 0.688491C7.92285 0.323513 9.59994 0.492567 11.0954 1.1698C12.2239 1.68081 13.202 2.45992 13.9483 3.4315V1.1503C13.9483 0.817029 14.2184 0.546856 14.5517 0.546856C14.885 0.546856 15.1552 0.817029 15.1552 1.1503V5.27429C15.1552 5.60756 14.885 5.87774 14.5517 5.87774H10.4138C10.0805 5.87774 9.81034 5.60756 9.81034 5.27429C9.81034 4.94101 10.0805 4.67084 10.4138 4.67084H13.3405C12.6863 3.62049 11.7329 2.78335 10.5976 2.26922ZM14.9283 7.76466C15.2611 7.78219 15.5167 8.0662 15.4991 8.39901C15.4133 10.0298 14.7942 11.5875 13.7368 12.8343C12.6795 14.081 11.2421 14.9482 9.64428 15.304C8.04651 15.6597 6.37579 15.4845 4.88717 14.805C3.76567 14.2931 2.79381 13.5161 2.05173 12.5487V14.8969C2.05173 15.2302 1.78156 15.5004 1.44828 15.5004C1.11501 15.5004 0.844838 15.2302 0.844838 14.8969V10.7729C0.844838 10.4397 1.11501 10.1695 1.44828 10.1695H5.58621C5.91948 10.1695 6.18966 10.4397 6.18966 10.7729C6.18966 11.1062 5.91948 11.3764 5.58621 11.3764H2.70231C3.35173 12.3918 4.28317 13.2027 5.38832 13.7071C6.63786 14.2775 8.04052 14.4246 9.38198 14.1259C10.7234 13.8272 11.9296 13.0993 12.8164 12.0536C13.7031 11.008 14.222 9.70216 14.2939 8.33554C14.3115 8.00273 14.5955 7.74713 14.9283 7.76466Z",fill:"currentColor"})})}s.displayName="Update";let o=s;function c(e){return(0,n.jsxs)(i.A,{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...e,children:[(0,n.jsxs)("g",{clipPath:"url(#clip0_info_outlined)",children:[(0,n.jsx)("path",{d:"M8 0.500366C3.8645 0.500366 0.5 3.86487 0.5 8.00037C0.5 12.1359 3.8645 15.5004 8 15.5004C12.1355 15.5004 15.5 12.1359 15.5 8.00037C15.5 3.86487 12.1355 0.500366 8 0.500366ZM8 14.0004C4.69175 14.0004 2 11.3086 2 8.00037C2 4.69212 4.69175 2.00037 8 2.00037C11.3083 2.00037 14 4.69212 14 8.00037C14 11.3086 11.3083 14.0004 8 14.0004Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M7.25 7.25037H8.75V11.7504H7.25V7.25037ZM7.25 4.25037H8.75V5.75037H7.25V4.25037Z",fill:"currentColor"})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"clip0_info_outlined",children:(0,n.jsx)("rect",{width:"16",height:"16",fill:"white",transform:"translate(0 0.000366211)"})})})]})}c.displayName="InfoOutlined";let d=c;var u=r(39556)},65360:(e,t,r)=>{"use strict";r.d(t,{e:()=>a});var n=r(94285);r(67505);var i=r(28908);let a=({size:e,hasIcon:t,children:r})=>{let a="24"===e?12:16,l=t?("24"===e?4:8)+a:0;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{style:{position:"absolute",height:"24"===e?"13px":"16px"},children:(0,n.jsx)(i.A,{sx:{color:"inherit"},size:a})}),(0,n.jsx)("span",{style:{visibility:"hidden",paddingLeft:r?`${l}px`:void 0},children:r})]})}},66786:e=>{e.exports={root:"webpageSidebar_root__hCFAX",selectors:"webpageSidebar_selectors__xadAs",selectorsGrow:"webpageSidebar_selectorsGrow__tg3yg",selectorsHalf:"webpageSidebar_selectorsHalf__dMolB",selectorsScroll:"webpageSidebar_selectorsScroll__dnVFw",divider:"webpageSidebar_divider__GWKtZ",switchWrapper:"webpageSidebar_switchWrapper__z4wnI",selectMatching:"webpageSidebar_selectMatching__5aeNT",selectMatchingOpen:"webpageSidebar_selectMatchingOpen__jCsO3",selectMatchingTitle:"webpageSidebar_selectMatchingTitle__f4Jxk",selectMatchingTitleOpen:"webpageSidebar_selectMatchingTitleOpen__S48KZ",matchingArrow:"webpageSidebar_matchingArrow___LpCW",selectWrapper:"webpageSidebar_selectWrapper__LVrKn",wrapper:"webpageSidebar_wrapper__s0_3E",radioGroup:"webpageSidebar_radioGroup__E3_6i",row:"webpageSidebar_row___Gp_3",row52:"webpageSidebar_row52__wbenh",row64:"webpageSidebar_row64__jWB1x",helpLink:"webpageSidebar_helpLink__Tz3xT",startIcon:"webpageSidebar_startIcon__C5NQc",startIconGlyph:"webpageSidebar_startIconGlyph__mlMVo",sectionLabel:"webpageSidebar_sectionLabel__fkUMl",sectionLabelPush:"webpageSidebar_sectionLabelPush__6_BKh",selectValueLabel:"webpageSidebar_selectValueLabel__7Gudi",selectValueRow:"webpageSidebar_selectValueRow__6d2UV",instructions:"webpageSidebar_instructions__W7K5X",matchingTitle:"webpageSidebar_matchingTitle__QDBKN",matchingCount:"webpageSidebar_matchingCount__RGbgx",menuIcon:"webpageSidebar_menuIcon___rhzt",formControl:"webpageSidebar_formControl__gew_D",radios:"webpageSidebar_radios__2V9cR",radioLabel:"webpageSidebar_radioLabel__jllvH",radio:"webpageSidebar_radio__aFGoY",radioInput:"webpageSidebar_radioInput__992pg",radioGlyph:"webpageSidebar_radioGlyph__8wj8c",radioLabelText:"webpageSidebar_radioLabelText__3f61P",radioLabelTextChecked:"webpageSidebar_radioLabelTextChecked__jv1G8"}},67592:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(94285),i=r(55167);let a=function(e){return(0,n.jsx)(i.I,{viewBox:"0 0 24 24",...e,children:(0,n.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"})})}},68439:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(67505);function i(e,t){let[r,i]=n.useState(e);return n.useEffect(()=>{let r=setTimeout(()=>{i(e)},t);return()=>{clearTimeout(r)}},[e,t]),r}},73757:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(94285);r(67505);var i=r(52670);let a=(0,r(7178).n9)({name:"TooltipInfo"})(e=>({tooltip:{background:e.palette.background.paper,border:"1px solid",borderColor:e.palette.customGrey.light,color:e.palette.text.primary||"#666666",padding:"10px 12px",boxShadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.1)",maxWidth:500,"&&&":{marginBottom:0}}})),l=({children:e,...t})=>
3{let{classes:r,cx:l}=a();return(0,n.jsx)(i.A,{...t,classes:{...t.classes,tooltip:l(r.tooltip,t.classes?.tooltip)},enterTouchDelay:0,children:(0,n.jsx)("span",{children:e})})}},75787:e=>{e.exports={webpageHeaderRoot:"webpageHeader_webpageHeaderRoot__DqdZJ",closeWrapper:"webpageHeader_closeWrapper__H4NDM",mobileWrapper:"webpageHeader_mobileWrapper__qV6xW",jsWrapper:"webpageHeader_jsWrapper__2ldrT",formControlLabel:"webpageHeader_formControlLabel__ro2XU",formControlLabelDisabled:"webpageHeader_formControlLabelDisabled__8siX7",jsInputForm:"webpageHeader_jsInputForm__8RGIu",jsLabel:"webpageHeader_jsLabel__1g3v2",jsLabelDisabled:"webpageHeader_jsLabelDisabled__lxhuz",switch:"webpageHeader_switch__1lKwT",switchBase:"webpageHeader_switchBase__03QYF",switchInput:"webpageHeader_switchInput__KdwuU",switchThumb:"webpageHeader_switchThumb__ERga9",switchTrack:"webpageHeader_switchTrack__dEeQR",timeoutRow:"webpageHeader_timeoutRow__Qe73V",tinySelect:"webpageHeader_tinySelect__0BYjX",tinySelectLabel:"webpageHeader_tinySelectLabel__ES2NS",domainRow:"webpageHeader_domainRow__KdD_B",backBtn:"webpageHeader_backBtn__uoOGg",backIcon:"webpageHeader_backIcon__cf_59",tooltipTrigger:"webpageHeader_tooltipTrigger__sFlIP",iconBtn:"webpageHeader_iconBtn__iaH1d",closeBtn:"webpageHeader_closeBtn__Wu2sP",startIcon:"webpageHeader_startIcon__GuZiu",closeIcon:"webpageHeader_closeIcon__HTqjO"}},76406:(e,t,r)=>{"use strict";r.d(t,{A:()=>eq});var n=r(94285),i=r(67505),a=r(55646),l=r(23422),s=r(10272),o=r(35058),c=r(99951),d=r(22382),u=r(97203),p=r(2226),h=r(13585),m=r(73710),g=r(29076),f=r(47521),b=r(61549),x=r(62307),_=r(7178);let C=function(){let e="test";if("u"<typeof localStorage)return!1;try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}};var w=r(37325),v=r(86499),y=r(92798);let j=(0,i.forwardRef)(({src:e,style:t,onError:r,onErrorMessage:a,className:l,onLoad:s,renderWithJs:o=!1,jsTimeout:c="auto",...d},u)=>{let p=(0,i.useRef)(null),h=C()?localStorage.getItem("x-csrf-token"):window.xCsrfToken,{t:m}=(0,v.Bd)(["dashboard/new-rss-feed","dashboard/common"]),g=(0,w.A)("(max-width:1224px)"),f=(0,w.A)("(max-width:700px)"),b=()=>{if(!p.current)return;let e=p.current?.contentDocument?.body;e&&(f?(p.current.style.height=`${e.scrollHeight+20}px`,e.style.overflow="hidden",e.scrollIntoView(!0)):(p.current.style.height=g?"200%":"150%",e.style.overflow="auto",e.style.height="auto"))};(0,i.useEffect)(()=>{let e=new ResizeObserver(()=>{b()});return e.observe(document.body),()=>e.unobserve(document.body)},[f]);let x={display:"block",overflow:"hidden",transformOrigin:"0 0",transform:"scale(0.6666)",width:"150%",height:"150%",border:"none",...t||{},...g?{transform:"scale(0.5)",width:"200%",height:"200%"}:{},...f?{transform:"scale(1)",width:"100%",height:"100%"}:{}},_=new URL(`${y.A.APP_URL}/api/picker`);_.searchParams.append("site",e),_.searchParams.append("enableJs",String(Number(o||0))),_.searchParams.append("jsTimeout",c),_.searchParams.append("x-csrf-token",h);let j=e&&h?_.toString():"";return(0,n.jsx)("iframe",{ref:e=>{p.current=e,"function"==typeof u?u(e):null!==u&&(u.current=e)},title:m("website_preview_title"),width:"100%",height:"100%",sandbox:"allow-same-origin allow-scripts",...d,src:j,onLoad:e=>{let t=e.target,n=t.contentDocument&&t.contentDocument.title;if(!t.contentDocument){r&&r(e);return}if(n?.startsWith("RssAppError")){if(r&&r(e),n.split("RssAppError: ")[1]){let e=n.split("RssAppError: ")[1];if(e.includes("Your session has expired. Please reload the page or sign up"))return;a&&a(e)}}else s&&s(e);b()},style:x})}),A=function(e){let t=[];for(let r in e)e.hasOwnProperty(r)&&t.push(`${encodeURIComponent(r)}=${encodeURIComponent(e[r])}`);return t.join("&")},T=function(e,t={}){let r={...e};for(let n in e)(!r[n]||t[n]&&t[n].includes(r[n]))&&delete r[n];return r};var N=r(48307),S=r(93736),L=r(86223);let k=function(e){i.useEffect(()=>(e?(0,L.Cg)():(0,L.Zd)(),L.Zd),[e])};var I=r(18574),R=r(7531),H=r(33813),E=r(70597),V=r(374);let D=()=>{let[e,t]=(0,V.Ul)("TITLE_SELECT_ERROR",!1);return{titleSelectorError:e,setTitleSelectorError:t}},M=(0,_.n9)()(e=>({root:{display:"flex",alignItems:"center",justifyContent:"space-between",flexDirection:"column",padding:"12px 16px",borderTop:"1px solid",borderColor:e.palette.customGrey.light,background:e.palette.background.paper,gap:8,zIndex:1e3,"& .MuiAlert-action":{alignItems:"center",paddingLeft:12},"& .MuiAlert-icon":{marginRight:8},"@media(max-width: 700px)":{position:"fixed",bottom:0,left:0,right:0,padding:16,gap:16,borderTop:"1px solid",borderColor:e.palette.customGrey.light,flexDirection:"column",alignItems:"stretch"}},mobileAlert:{display:"none",width:"100%",alignItems:"start","@media(max-width: 700px)":{display:"flex"},"& .MuiAlert-icon":{marginTop:2}}})),B=({matching:e,submitText:t,onClick:r,error:i,onLimitErrorChange:a,advanced:l})=>{let{classes:s}=M(),{titleSelectorError:o}=D(),{t:c}=(0,v.Bd)(["dashboard/new-rss-feed","dashboard/common"]);return(0,n.jsxs)("div",{className:s.root,children:[i&&(0,n.jsx)(H.A,{severity:"error",sx:{width:"100%"},variant:"filled",onClose:()=>a(!1),children:i}),(0,n.jsxs)(H.A,{severity:"info",variant:"outlined",className:s.mobileAlert,children:[(0,n.jsx)(E.A,{variant:"subtitle2",fontWeight:600,color:"primary.main",mb:"4px",children:c("mobile_alert_heading")}),(0,n.jsx)(E.A,{variant:"subtitle2",color:"primary.main",children:c("mobile_alert_body")})]}),(0,n.jsx)(R.A,{variant:"contained",color:"primary",onClick:r,ga:"generate-button",size:"40",disabled:o&&!l||0===e.length,fullWidth:!0,children:t||c("generate_feed")})]})};var W=r(3638),F=r(25828),P=r(55167);function $(e){return(0,n.jsx)(P.I,{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...e,children:(0,n.jsx)("path",{d:"M3.80033 13.4004C3.46896 13.7317 2.93171 13.7317 2.60033 13.4004C2.26896 13.069 2.26896 12.5317 2.60033 12.2004L6.80033 8.00037L2.60033 3.80037C2.26896 3.46899 2.26896 2.93174 2.60033 2.60037C2.93171 2.26899 3.46896 2.26899 3.80033 2.60037L8.00033 6.80036L12.2003 2.60037C12.5317 2.26899 13.069 2.26899 13.4003 2.60037C13.7317 2.93174 13.7317 3.46899 13.4003 3.80037L9.20034 8.00037L13.4003 12.2004C13.7317 12.5317 13.7317 13.069 13.4003 13.4004C13.069 13.7317 12.5317 13.7317 12.2003 13.4004L8.00033 9.20037L3.80033 13.4004Z",fill:"currentColor"})})}function Z(e){return(0,n.jsx)(P.I,{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...e,children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.76114 3.23073C10.0796 3.53789 10.0796 4.03588 9.76114 4.34303L5.96887 8.00037L9.76114 11.6577C10.0796 11.9649 10.0796 12.4628 9.76114 12.77C9.44265 13.0772 8.92628 13.0772 8.6078 12.77L4.23886 8.55652C3.92038 8.24936 3.92038 7.75137 4.23886 7.44422L8.6078 3.23073C8.92628 2.92358 9.44265 2.92358 9.76114 3.23073Z",fill:"currentColor"})})}$.displayName="Close",Z.displayName="ArrowLeft";var O=r(5306),G=r(26714),J=r(16832);function U(e){return(0,n.jsx)(P.I,{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...e,children:(0,n.jsx)("path",{d:"M3.41176 15.5004C3.02353 15.5004 2.69118 15.3535 2.41471 15.0597C2.13824 14.766 2 14.4129 2 14.0004V4.20625C2 3.8164 2.31603 3.50037 2.70588 3.50037C3.09573 3.50037 3.41176 3.8164 3.41176 4.20625V14.0004H10.4265C10.8407 14.0004 11.1765 14.3362 11.1765 14.7504C11.1765 15.1646 10.8407 15.5004 10.4265 15.5004H3.41176ZM6.23529 12.5004C5.84706 12.5004 5.51471 12.3535 5.23824 12.0597C4.961
376 11.766 4.82353 11.4129 4.82353 11.0004V2.00037C4.82353 1.58787 4.96176 1.23474 5.23824 0.940991C5.51471 0.647241 5.84706 0.500366 6.23529 0.500366H12.5882C12.9765 0.500366 13.3088 0.647241 13.5853 0.940991C13.8618 1.23474 14 1.58787 14 2.00037V11.0004C14 11.4129 13.8618 11.766 13.5853 12.0597C13.3088 12.3535 12.9765 12.5004 12.5882 12.5004H6.23529ZM6.23529 11.0004H12.5882V2.00037H6.23529V11.0004Z",fill:"currentColor"})})}U.displayName="Copy";let z=function(){let e=i.useRef(null),t=i.useCallback(()=>{e.current&&clearTimeout(e.current)},[]),r=i.useCallback((r,n)=>{t(),e.current=setTimeout(r,n)},[t]);return i.useEffect(()=>()=>{t()},[t]),[r,t]};var q=r(30390),Q=r(42802),K=r.n(Q);let X=({inputValue:e})=>{let{t}=(0,J.Bd)(),[r,a]=i.useState(!1),[l,s]=i.useState(!1),[o]=z(),c=r?`${t("dashboard/common:copied")} ${e}`:`${t("dashboard/common:copy")} ${e}`;return(0,n.jsxs)("div",{className:K().inputBox,children:[(0,n.jsx)("h6",{className:K().host,children:(0,n.jsx)(F.m_,{title:e,children:(0,n.jsx)(n.Fragment,{children:(0,q.A)(e)})})}),(0,n.jsx)(F.m_,{title:c,open:l||r,onOpenChange:s,dataSlot:"copy-domain-url-tooltip",children:(0,n.jsx)(G.CopyToClipboard,{text:e,onCopy:()=>{a(!0),s(!0),o(()=>a(!1),1e3)},children:(0,n.jsx)("button",{type:"button",className:K().copyButton,"aria-label":c,children:(0,n.jsx)(U,{className:K().copyIcon})})})})]})};var Y=r(73757),ee=r(65293);let et=({title:e,tooltipProps:t,width:r=300,disabled:i,size:a="small"})=>{let l={small:14,medium:16,large:20}[a],s={small:"15px",medium:"16px",large:"20px"}[a];return(0,n.jsx)(Y.A,{title:e,style:{lineHeight:s,marginLeft:"4px",verticalAlign:"middle",height:s},PopperProps:{sx:{maxWidth:`${r}px`}},...t,children:(0,n.jsx)(ee.JL,{sx:e=>({fontSize:`${l}px`,color:i?e.palette.customText.tertiary:e.palette.text.secondary})})})};var er=r(64798),en=r(75787),ei=r.n(en);let ea=({headerContent:e,inputValue:t,className:r,goBackClick:i,withoutCloseIcon:a,onChangeRenderWithJs:l,onJsTimeoutChange:s,renderWithJs:o,jsTimeout:c,renderJsRef:d})=>{let{t:u}=(0,v.Bd)(["dashboard/new-rss-feed","dashboard/common"]),{user:p}=(0,O.A)(),h=!(0,er.Ay)(),m=(0,g.U)("(max-width: 700px)"),f=!(p&&h),b=()=>(0,n.jsxs)("div",{className:ei().jsWrapper,children:[(0,n.jsx)(F.m_,{title:f?u("dashboard/common:paidPlansOnly"):"",tone:"light",size:"lg",children:(0,n.jsxs)("label",{ref:d,className:(0,W.A)(ei().formControlLabel,ei().jsInputForm,f&&ei().formControlLabelDisabled),children:[(0,n.jsxs)("span",{className:ei().switch,children:[(0,n.jsxs)("span",{className:ei().switchBase,children:[(0,n.jsx)("input",{type:"checkbox",className:ei().switchInput,checked:o,disabled:f,onChange:e=>{var t;return t=e.target.checked,void l?.(t)}}),(0,n.jsx)("span",{className:ei().switchThumb})]}),(0,n.jsx)("span",{className:ei().switchTrack})]}),(0,n.jsxs)("h6",{className:(0,W.A)(ei().jsLabel,f&&ei().jsLabelDisabled),children:[u("render_js_label")," ",(0,n.jsx)(et,{tooltipProps:{placement:"top"},width:270,title:f?"":u("render_js_helper_text"),disabled:f})]})]})}),o&&(0,n.jsx)("div",{className:ei().timeoutRow,children:(0,n.jsx)("div",{children:(0,n.jsxs)("div",{className:ei().tinySelect,children:[(0,n.jsx)("span",{className:ei().tinySelectLabel,children:u("timeout_label")}),(0,n.jsxs)(F.l6,{value:c,variant:"plain",size:"sm",fullWidth:!0,ariaLabel:u("timeout_label"),onValueChange:s,children:[(0,n.jsx)(F.eb,{value:"auto",children:u("mode_auto")}),(0,n.jsx)(F.eb,{value:"5",children:"5"}),(0,n.jsx)(F.eb,{value:"10",children:"10"}),(0,n.jsx)(F.eb,{value:"15",children:"15"}),(0,n.jsx)(F.eb,{value:"20",children:"20"}),(0,n.jsx)(F.eb,{value:"25",children:"25"})]})]})})})]});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:(0,W.A)(ei().webpageHeaderRoot,r),children:[!m&&(0,n.jsx)(b,{}),e||(0,n.jsxs)("div",{className:ei().domainRow,children:[m&&(0,n.jsx)("button",{type:"button",className:ei().backBtn,onClick:i,children:(0,n.jsx)(Z,{className:ei().backIcon})}),(0,n.jsx)(X,{inputValue:t})]}),!a&&(0,n.jsx)("div",{className:ei().closeWrapper,children:(0,n.jsx)(F.m_,{title:u("close_builder"),children:(0,n.jsx)("span",{className:ei().tooltipTrigger,children:(0,n.jsx)("button",{type:"button",ga:"close-builder",className:(0,W.A)(ei().iconBtn,ei().closeBtn),onClick:i,children:(0,n.jsx)("span",{className:ei().startIcon,children:(0,n.jsx)($,{className:ei().closeIcon})})})})})})]}),m&&(0,n.jsx)("div",{className:ei().mobileWrapper,children:(0,n.jsx)(b,{})})]})};var el=r(21275),es=r.n(el),eo=r(68439),ec=r(19002),ed=r(10488),eu=r(79750),ep=r(5222);let eh=(0,_.n9)({name:"PickerMatching"})(e=>({title:{fontSize:14,fontWeight:500,lineHeight:"18px",WebkitLineClamp:2,WebkitBoxOrient:"vertical",display:"-webkit-box",textOverflow:"ellipsis",overflow:"hidden",maxWidth:"100%"},description:{fontSize:12,fontWeight:400,lineHeight:"16px",WebkitLineClamp:3,WebkitBoxOrient:"vertical",display:"-webkit-box",textOverflow:"ellipsis",overflow:"hidden",maxWidth:"100%",marginBottom:4},link:{fontSize:12,fontWeight:400,lineHeight:"16px",color:e.palette.primary.main},caption:{fontSize:"12px",fontWeight:"400",lineHeight:"16px",letterSpacing:"0.25px",textAlign:"left",color:e.palette.text.secondary,gap:1}}
3)),em=function(e){let t=(0,ep.A)("isBeta"),{options:r,website:a,plainTextDescription:l=!1}=e,{classes:s}=eh(),[o,c]=i.useState(!1);return(0,n.jsx)(n.Fragment,{children:r.filter(e=>e.title||e.description||e.image).slice().map((e,d)=>{let{title:u,generalTitle:p,image:h,link:m,description:g,author:f,date:b}=e||{};return(0,n.jsxs)(i.Fragment,{children:[(0,n.jsxs)(ed.A,{p:2,children:[u&&(0,n.jsx)(E.A,{className:s.title,style:{marginBottom:6},children:u}),h&&!o&&(0,n.jsx)("img",{src:h,alt:"",onError:()=>c(!0),style:{width:"100%",maxHeight:200,objectFit:"contain",borderRadius:4}}),g&&(0,n.jsx)(n.Fragment,{children:t&&!l?(0,n.jsx)(E.A,{className:s.description,dangerouslySetInnerHTML:{__html:g}}):(0,n.jsx)(E.A,{className:s.description,children:g})}),(f||b)&&(0,n.jsx)(ed.A,{my:1,className:s.caption,children:[f,b].filter(Boolean).join(" ⢠")}),(m||p)&&(0,n.jsx)(E.A,{noWrap:!0,className:s.link,children:p?`${p.startsWith("/")?a+p:p}`:`${m.startsWith("/")?a+m:m}`})]}),r.length-1!==d&&(0,n.jsx)(ec.Ay,{item:!0,xs:12,children:(0,n.jsx)(eu.A,{})})]},d)})})};function eg(e){return(0,n.jsxs)(P.I,{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 1.36585C4.33606 1.36585 1.36585 4.33606 1.36585 8C1.36585 11.6639 4.33606 14.6341 8 14.6341C11.6639 14.6341 14.6341 11.6639 14.6341 8C14.6341 4.33606 11.6639 1.36585 8 1.36585ZM0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.19695 5.04283C7.84497 4.98246 7.48298 5.0486 7.1751 5.22955C6.86721 5.41049 6.6333 5.69456 6.51479 6.03145C6.38963 6.38724 5.99974 6.57421 5.64394 6.44905C5.28814 6.32389 5.10117 5.93399 5.22634 5.5782C5.45188 4.93703 5.89707 4.39638 6.48304 4.052C7.06901 3.70762 7.75796 3.58173 8.42785 3.69664C9.09775 3.81154 9.70536 4.15982 10.1431 4.67979C10.5807 5.19971 10.8203 5.85772 10.8193 6.53732C10.819 7.63113 10.0076 8.35784 9.41768 8.7511C9.10188 8.96163 8.79094 9.11661 8.56165 9.21852C8.44603 9.26991 8.34873 9.30887 8.27874 9.33554C8.24368 9.34889 8.21531 9.35922 8.19474 9.36654L8.16979 9.37527L8.16193 9.37796L8.15919 9.37889L8.15812 9.37924C8.15791 9.37931 8.15726 9.37953 7.94724 8.74949L8.15812 9.37924C7.8003 9.49852 7.41269 9.30543 7.29342 8.94761C7.1743 8.59025 7.36703 8.20403 7.72397 8.08423C7.72442 8.08407 7.72488 8.08392 7.72534 8.08377L7.94117 8.73128C7.72534 8.08377 7.72551 8.08371 7.72534 8.08377L7.73716 8.07961C7.74874 8.0755 7.76753 8.06868 7.7925 8.05917C7.84255 8.0401 7.91675 8.01047 8.00692 7.97039C8.18921 7.88937 8.42706 7.76996 8.66004 7.61464C9.16757 7.27629 9.45349 6.90569 9.45349 6.53653L9.45349 6.53551C9.45403 6.17839 9.32815 5.83261 9.09817 5.5594C8.86818 5.2862 8.54893 5.1032 8.19695 5.04283Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.31707 11.6585C7.31707 11.2814 7.62283 10.9756 8 10.9756H8.00732C8.38449 10.9756 8.69024 11.2814 8.69024 11.6585C8.69024 12.0357 8.38449 12.3415 8.00732 12.3415H8C7.62283 12.3415 7.31707 12.0357 7.31707 11.6585Z",fill:"currentColor"})]})}let ef=function(e){return(0,n.jsxs)(P.I,{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",...e,children:[(0,n.jsx)("path",{opacity:"1",d:"M12 2.62201C6.486 2.62201 2 7.10801 2 12.622C2 18.136 6.486 22.622 12 22.622C17.514 22.622 22 18.136 22 12.622C22 7.10801 17.514 2.62201 12 2.62201ZM12 20.622C7.589 20.622 4 17.033 4 12.622C4 8.21101 7.589 4.62201 12 4.62201C16.411 4.62201 20 8.21101 20 12.622C20 17.033 16.411 20.622 12 20.622Z"}),(0,n.jsx)("path",{opacity:"1",d:"M11 11.622H13V17.622H11V11.622ZM11 7.62201H13V9.62201H11V7.62201Z"})]})};var eb=r(96508),ex=r.n(eb);let e_=({title:e,type:t,link:r,placeholder:i,isRequired:a,selectError:l,tooltipTitle:s,changeError:o,onChangeSelectors:c,onChangeType:d,disabled:u,inputRef:p})=>{let{t:h}=(0,v.Bd)(["dashboard/new-rss-feed","dashboard/common"]);return(0,n.jsxs)("div",{ref:p,children:[(0,n.jsxs)("div",{className:ex().labelRow,children:[(0,n.jsxs)("label",{className:(0,W.A)(ex().label,u&&ex().labelDisabled),children:[e,e&&a&&(0,n.jsx)("span",{className:ex().star,children:"*"})]}),(0,n.jsx)(F.m_,{title:s,tone:"light",size:"sm",children:(0,n.jsx)("span",{className:ex().tooltipTrigger,children:(0,n.jsx)(ef,{className:(0,W.A)(ex().helpIcon,u&&ex().helpIconDisabled)})})})]}),(0,n.jsx)("div",{className:ex().inputContainer,children:(0,n.jsx)("div",{className:(0,W.A)(ex().field,u&&ex().fieldDisabled),children:(0,n.jsx)("input",{type:"text",className:ex().input,value:r||"",placeholder:i,disabled:u,autoComplete:"off",onChange:e=>{e.target.value&&l&&o(!1),c({[t]:e.target.value})},onFocus:()=>d(t)})})}),l&&(0,n.jsx)("span",{className:ex().error,children:h("selector_invalid_anchor")})]})};var eC=r(62759),ew=r(19266),ev=r(66786),ey=r.n(ev);let ej=({name:e,value:t,label:r,checked:i,onSelect:a})=>(0,n.jsxs)("label",{className:ey().radioLabel,children:[(0,n.jsxs)("span",{className:ey().radio,children:[(0,n.jsx)("input",{type:"radio",className:ey().radioInput,name:e,value:t,checked:i,onChange:a}),(0,n.jsxs)("svg",{className:ey().radioGlyph,focusable:"false","aria-hidden":"true",viewBox:"0 0 16 16",children:[(0,n.jsx)("circle",{cx:"8",cy:"8",r:"7.5",fill:"#fff"}),i&&(0,n.jsx)("circle",{cx:"8",cy:"8",r:"5",stroke:"none"})]})]}),(0,n.jsx)("span",{className:(0,W.A)(ey().radioLabelText,i&&ey().radioLabelTextChecked),children:r})]}),eA=({className:e,link:t,type:r,advanced:a,selectors:l,matching:s,contentType:o=f.b4.News,changeDetectionVariant:c=f.JQ.Text,setContentType:d,onLimitErrorChange:u,onChangeAdvanced:p,onChangeType:h,onChangeSelectors:m,setChangeDetectionVariant:g,loading:b,onBoardingRefs:x,..._})=>{let[C,w]=(0,i.useState)(!0),{t:v}=(0,J.Bd)(["dashboard/new-rss-feed","dashboard/common"]),{titleSelectorError:y,setTitleSelectorError:j}=D(),A=(0,eo.A)(l.generalTitle,1e3),T=(0,i.useId)();i.useEffect(()=>{if(!l.generalTitle||o!==f.b4.News)return j(!1);j(!s.some(e=>e.generalTitle))},[A,s]);let N=e=>{m&&m({...l,...e})},S=e=>{h&&h(e)},L=()=>{j(!1),p&&p(!a),a?S("generalTitle"):S("container")};return(0,n.jsxs)("div",{..._,className:(0,W.A)(ey().root,e),children:[(0,n.jsx)("div",{className:(0,W.A)(ey().row,ey().row52,ey().wrapper),children:(0,n.jsxs)(es(),{className:ey().helpLink,target:"_blank",href:"https://help.rss.app/en/articles/10587094-how-to-use-rss-builder",children:[(0,n.jsx)("span",{className:ey().startIcon,children:(0,n.jsx)(eg,{className:ey().startIconGlyph})}),v("learn_more")]})}),(0,n.jsxs)("div",{className:(0,W.A)(ey().row,ey().row64,ey().wrapper),ref:x.typeOfContentRef,children:[(0,n.jsx)("h6",{className:ey().sectionLabel,children:v("type_of_content")}),(0,n.jsx)("div",{className:ey().selectWrapper,children:(0,n.jsx)(F.l6,{value:o,fullWidth:!0,size:"sm",ariaLabel:v("type_of_content"),onValueChange:e=>{d(e)},renderValue:e=>{let{titleKey:t}=ew.bf?.find(t=>t.value===e);
3return(0,n.jsx)("span",{className:ey().selectValueRow,children:(0,n.jsx)("h6",{className:ey().selectValueLabel,children:v(t)})})},children:ew.bf.map(({icon:e,value:t,titleKey:r,descriptionKey:i})=>(0,n.jsx)(F.eb,{value:t,description:v(i),icon:(0,n.jsx)(e,{className:ey().menuIcon}),textValue:v(r),children:v(r)},t))})})]}),o===f.b4.ChangeDetection&&(0,n.jsxs)("div",{className:(0,W.A)(ey().row,ey().row64,ey().wrapper),children:[(0,n.jsx)("h6",{className:(0,W.A)(ey().sectionLabel,ey().sectionLabelPush),children:v("target_element")}),(0,n.jsx)("div",{className:ey().selectWrapper,children:(0,n.jsx)(F.l6,{value:c,fullWidth:!0,size:"sm",ariaLabel:v("target_element"),onValueChange:e=>{g(e)},children:ew.nj.map(({value:e,titleKey:t})=>(0,n.jsx)(F.eb,{value:e,children:v(t)},e))})})]}),o===f.b4.News&&(0,n.jsxs)("div",{className:ey().switchWrapper,ref:x.modeRef,children:[(0,n.jsx)("h6",{className:ey().sectionLabel,children:v("mode_label")}),(0,n.jsx)("div",{className:(0,W.A)(ey().formControl,ey().radioGroup),children:(0,n.jsxs)("div",{role:"radiogroup",className:ey().radios,children:[(0,n.jsx)(ej,{name:T,value:"auto",label:v("mode_auto"),checked:!a,onSelect:()=>{a&&L()}}),(0,n.jsx)(ej,{name:T,value:"manual",label:v("mode_manual"),checked:a,onSelect:()=>{a||L()}})]})})]}),(0,n.jsxs)("div",{className:(0,W.A)(ey().selectors,(a||!C)&&ey().selectorsGrow,a&&C&&ey().selectorsHalf,a&&ey().selectorsScroll),children:[!a&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:ey().instructions,children:v(ew.tQ[o])}),(0,n.jsx)("div",{ref:x.titleSelectorRef,children:(0,n.jsx)(e_,{title:o===f.b4.Table?v("table_css_selector"):o===f.b4.ChangeDetection?v("css_selector_change_detection"):o===f.b4.AnyElement?v("css_selector_any_element"):o===f.b4.Logs?v("css_selector_logs"):v("title_css_selector"),type:"generalTitle",link:l.generalTitle,active:"generalTitle"===r,placeholder:v("placeholder_enter_or_click_element"),isRequired:!0,selectError:!b&&y,changeError:()=>j(!1),onChangeSelectors:N,onChangeType:()=>S("generalTitle"),tooltipTitle:v("tooltip_general_selector")})})]}),a&&o===f.b4.News&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:ey().instructions,children:v("selector_instructions")}),(0,n.jsx)("div",{ref:x.articleContainerRef,children:(0,n.jsx)(e_,{title:v("article_container"),type:"container",link:l.container,active:"container"===r,placeholder:v("placeholder_enter_or_select_article_container"),isRequired:!0,onChangeSelectors:N,onChangeType:()=>S("container"),tooltipTitle:v("tooltip_article_container")})}),(0,n.jsx)(e_,{title:v("link_label"),type:"link",link:l.link,active:"link"===r,placeholder:v("placeholder_enter_or_select_link"),isRequired:!0,onChangeSelectors:N,disabled:!l.container,onChangeType:()=>S("link"),tooltipTitle:v("tooltip_manual_enter_link"),inputRef:x.articleLinkRef}),(0,n.jsx)("hr",{className:ey().divider}),(0,n.jsx)(e_,{title:v("title_label"),type:"title",link:l.title,active:"title"===r,placeholder:v("placeholder_enter_or_select_title"),onChangeSelectors:N,disabled:!(l.container&&l.link),onChangeType:()=>S("title"),tooltipTitle:v("tooltip_manual_enter_title"),inputRef:x.articleTitleRef}),(0,n.jsx)(e_,{title:v("description_label"),type:"description",link:l.description,active:"description"===r,placeholder:v("placeholder_enter_or_select_description"),onChangeSelectors:N,disabled:!(l.container&&l.link),onChangeType:()=>S("description"),tooltipTitle:v("tooltip_manual_enter_description")}),(0,n.jsx)(e_,{title:v("image_label"),type:"image",link:l.image,active:"image"===r,placeholder:v("placeholder_enter_or_select_image"),onChangeSelectors:N,disabled:!(l.container&&l.link),onChangeType:()=>S("image"),tooltipTitle:v("tooltip_manual_enter_image")}),(0,n.jsx)(e_,{title:v("date_label"),type:"date",link:l.date,active:"date"===r,placeholder:v("placeholder_enter_or_select_date"),onChangeSelectors:N,disabled:!(l.container&&l.link),onChangeType:()=>S("date"),tooltipTitle:v("tooltip_manual_enter_date")}),(0,n.jsx)(e_,{title:v("author_label"),type:"author",link:l.author,active:"author"===r,placeholder:v("placeholder_enter_or_select_author"),onChangeSelectors:N,disabled:!(l.container&&l.link),onChangeType:()=>S("author"),tooltipTitle:v("tooltip_manual_enter_author")})]})]}),s.length>0&&(0,n.jsxs)("div",{className:(0,W.A)(ey().selectMatching,C&&ey().selectMatchingOpen),style:{flexGrow:C?1:"initial",height:C&&a?"50%":"initial"},children:[(0,n.jsxs)("div",{className:(0,W.A)(ey().selectMatchingTitle,C&&ey().selectMatchingTitleOpen),children:[(0,n.jsxs)("h6",{className:ey().matchingTitle,children:[v("matching_entr
3ies")," ",(0,n.jsxs)("span",{className:ey().matchingCount,children:[s.length," ",1===s.length?v("matching_element_singular"):v("matching_element_plural")]})]}),(0,n.jsx)(eC.A,{className:ey().matchingArrow,style:{transform:C?"rotate(180deg)":"rotate(0deg)"},onClick:()=>w(e=>!e)})]}),C&&(0,n.jsx)(em,{website:t,options:s,plainTextDescription:o===f.b4.ChangeDetection})]})]})},eT=e=>{if(!e)return null;let t=e.getAttribute("src"),{backgroundImage:r}=e.style;return t||r?.replace(/url\(['"]?(.*?)['"]?\)/i,"$1")||null};function eN(e,t){let r=e;for(let e=0;e<10;e+=1){if("true"===r.getAttribute("aria-hidden")&&(r.style.pointerEvents="none"),t(r))return r;if(!(r=r.parentElement))break}return null}class eS{static getSelectorFromTarget(e){let{target:t,type:r,container:n,contentType:i}=e;if(i!==f.b4.News){let e=[],r=t;for(;r.parentNode;){let t=r.tagName.toLowerCase(),n=Array.from(r.parentNode.children).indexOf(r)+1;e.unshift([f.b4.ChangeDetection,f.b4.Table].includes(i)?`${t}:nth-child(${n})`:t),r=r.parentNode}return e.filter(e=>!["html","body"].some(t=>e.startsWith(t))).join(" > ")}let{tagName:a}=t,l=t.parentNode,s=Array.prototype.indexOf.call(l.children,t)+1,o=[a+("container"===r?"":`:nth-child(${s})`)],c=t.parentElement;for(;c&&"html"!==c.tagName;)o.push(c.tagName),c=c.parentElement;let d=o.reverse().slice(2).map(e=>e.toLowerCase()).join(" > ");return(n||(d=d.replace(/:nth-child\(\d+\)(?!.*:nth-child\(\d+\))/,"")),"link"===r&&d.slice(0,-13)===n)?n:d}static{this.isArticle=e=>{if("ARTICLE"===e.tagName)return!0;if("string"==typeof e.className&&["item","block","article","post"].some(t=>e.className.includes(t))){let t=e?.parentElement?.children;if(t&&t.length>=3)return!0}let t=e?.parentElement?.children;return!!t&&!!(t.length>=4)&&(!e.className||!!function(e,t){if("string"!=typeof e)return;let[r,n]=e.split(" ");return r&&Array.from(t).filter(e=>e.className&&"string"==typeof e.className&&e.className.includes(r)).length>=4?r:n&&Array.from(t).filter(e=>e.className&&"string"==typeof e.className&&e.className.includes(n)).length>=4?n:void 0}(e.className,t))}}static{this.isLink=e=>"A"===e.tagName}static{this.tableElement=e=>"TABLE"===e.tagName}static{this.isTitle=e=>["H6","H5","H4","H3","H2","H1","A"].includes(e.tagName)}static{this.isDescription=e=>"P"===e.tagName||e.textContent&&e.textContent.length>20}static{this.isImage=e=>"IMG"===e.tagName||null!==eT(e)}static{this.isText=e=>0!==e.textContent.length}static{this.isDate=e=>{let t="TIME"===e.tagName,r=e.getAttribute("datetime")||e.getAttribute("date"),n=r?"number"==typeof new Date(r).getTime():null,i="number"==typeof new Date(e.textContent).getTime();return t||n||i}}static{this.isAuthor=e=>!!("string"==typeof e.className&&["author"].some(t=>e.className.includes(t)))||["SPAN","A","P"].includes(e.tagName)&&e.textContent.length>3&&e.textContent.length<100}static{this.isAnyElement=e=>{let t=e?.parentElement?.children;return e?.textContent!==""&&t?.length>1}}static{this.findDown=({target:e,type:t,contentType:r,changeDetectionVariant:n})=>{switch(t){case"generalTitle":return r===f.b4.Table?eN(e,eS.tableElement):r===f.b4.ChangeDetection?({[f.JQ.Image]:()=>eN(e,eS.isImage),[f.JQ.Url]:()=>eN(e,eS.isLink),[f.JQ.Text]:()=>eN(e,eS.isText),[f.JQ.Site]:()=>null})[n]():r!==f.b4.News?eN(e,eS.isAnyElement):eN(e,eS.isLink);case"container":return eN(e,eS.isArticle);case"link":return eN(e,eS.isLink);case"title":return eN(e,eS.isTitle);case"description":return eN(e,eS.isDescription);case"image":return eN(e,eS.isImage);case"date":return eN(e,eS.isDate);case"author":return eN(e,eS.isAuthor);default:return null}}}}let eL=(e,t)=>{if(!e||!t)return null;let r=null;try{r=e.querySelector(t)}catch(e){}return r},ek=e=>{let t=null;return!function e(r){if(!r)return;let n=eT(r);if(n){t=n;return}let{children:i}=r;for(let t=0;t<i.length;t+=1)e(i[t])}(e),t};class eI{constructor(e,t){this.maxSelectedCount=15,this.iframeRef=e;const{maxSelectedCount:r=15}=t||{};this.maxSelectedCount=r}isValidSelector(e){try{return document.createDocumentFragment().querySelector(e),!0}catch(e){return!1}}bindEvents({onClick:e,onMouseOver:t,onMouseOut:r}){if(!this.iframeRef.current)return()=>{};let n=this.iframeRef.current.contentDocument;return n?(n.addEventListener("click",e),n.addEventListener("mouseover",t),n.addEventListener("mouseout",r),
3()=>{n.removeEventListener("click",e),n.removeEventListener("mouseover",t),n.removeEventListener("mouseout",r)}):()=>{}}clearSelectedNodes(){if(!this.iframeRef.current)return[];let e=this.iframeRef.current.contentDocument;if(!e)return[];let t=Array.from(e.querySelectorAll('*[rss-aria-selected="true"]'));for(let e of t)e.getAttribute("rss-aria-selected")&&(e.classList.remove("RssGenerated-root"),e.removeAttribute("rss-aria-selected"));return t}setSelectedNodes(e,t){if(!e)return[];let r=this.getElements(e).splice(0,t||this.maxSelectedCount);for(let e of r)this.fixWidthElement(e),"true"!==e.getAttribute("rss-aria-selected")&&(e.classList.add("RssGenerated-root"),e.setAttribute("rss-aria-selected","true"));return r}getMatches(e,t){let{advanced:r,contentType:n,changeDetectionVariant:i}=t||{};if(!this.iframeRef.current)return[];let a={};for(let t in e)this.isValidSelector(e[t])&&(a[t]=e[t]);if(n===f.b4.ChangeDetection&&a.generalTitle){let e=this.getElements(a.generalTitle).slice(0,this.maxSelectedCount)[0];if(i===f.JQ.Url){let t=eL(e,"a"),r=e?.getAttribute("href")||t?.getAttribute("href");if(r)return[{description:e.textContent,link:r}]}if(i===f.JQ.Text){let t=e?.textContent?.trim();if(t)return[{description:t}]}if(i===f.JQ.Image){let t=ek(e)||e?.getAttribute("src");if(t)return[{image:t}]}return[]}if(n===f.b4.Table&&a.generalTitle){let e=this.getElements(a.generalTitle).slice(0,this.maxSelectedCount)[0];if(!e)return[];let t=((e,t)=>{if(!e)return null;let r=[];try{r=e.querySelectorAll(t)}catch(e){}return r})(e,"tr");return t?.length?Array.from(t).map(e=>({title:e?.textContent?.trim()||null,image:ek(e)})):[]}return n!==f.b4.News&&a.generalTitle?this.getElements(a.generalTitle).slice(0,this.maxSelectedCount).map(e=>{let t=eL(e,"a"),r=e?.getAttribute("href")||t?.getAttribute("href")||null,i=ek(e),a=(e=>{for(let t of["h1","h2","h3","h4","h5","h6","strong","b"]){let r=eL(e,t);if(r)return r}})(e)?.textContent?.trim()||null,l=e?.innerHTML?.replace(/style=".*"/gm,""),s=(n===f.b4.Logs?l.innerHTML:l?.textContent)?.trim()||null;return null!==a&&null!==s&&a!==s?{title:a,link:r,description:s,image:i}:{title:a||e?.textContent?.trim(),link:r,image:i}}):r?this.getElements(a.container).slice(0,this.maxSelectedCount).map(e=>{let t=eL(e,a.link?.replace(a.container,"")||a.link);a.link===a.container&&(t=e);let r=eL(e,a.title)||t,n=eL(e,a.description),i=eL(e,a.image),l=eL(e,a.date),s=eL(e,a.author);return{title:r?r.textContent:null,link:t?t.getAttribute("href"):null,description:n?n.textContent:null,image:eT(i),date:l?l.textContent:null,author:s?s.textContent:null}}).filter(({title:e})=>null!==e):a.generalTitle?this.getElements(a.generalTitle).slice(0,this.maxSelectedCount).map(e=>({title:e.textContent,generalTitle:e.getAttribute("href")})):[]}getElements(e){if(!this.iframeRef.current)return[];let t=this.iframeRef.current.contentDocument,r=this.isValidSelector(e);return t&&r?Array.from(t.querySelectorAll(e)):[]}setHoveredNodes(e){let t=this.getElements(e);for(let e of t)this.fixWidthElement(e),e.setAttribute("rss-aria-hovered","true"),void 0!==e.className&&("string"!=typeof e.className||e.className.includes("RssGenerated-root"))||(e.className+=" RssGenerated-root");return t}clearHoveredNodes(){if(!this.iframeRef.current)return[];let e=this.iframeRef.current.contentDocument;if(!e)return[];let t=Array.from(e.querySelectorAll('*[rss-aria-hovered="true"]'));for(let e of t)e.setAttribute("rss-aria-hovered","false");return t}fixWidthElement(e){0===e.offsetWidth&&(e.style.display="block")}}var eR=r(87584);let eH=["container","link","title","description","image","date","author"],eE=(e,t,r)=>Array.isArray(e)?e.find(e=>e===t)||r:e===t?t:r,eV="rss_builder_tour";var eD=r(89597),eM=r.n(eD);let eB=({isOnTop:e})=>(0,n.jsx)(P.I,{width:"16",height:"19",viewBox:"0 0 16 19",fill:"none",style:{transform:e?"rotate(90deg)":"none"},children:(0,n.jsx)("path",{d:"M0 9.5L16 0V19L0 9.5Z",className:eM().fill})});var eW=r(9614),eF=r.n(eW);let eP=({steps:e,inputRefs:t,onFinish:r,onClose:a})=>{let[l,s]=(0,i.useState)(0),[o,c]=(0,i.useState)(null),{t:d}=(0,v.Bd)(["dashboard/new-rss-feed"]);(0,i.useEffect)(()=>{let r=t[e[l]?.id],n=()=>{r?.current&&c(r.current.getBoundingClientRect())};
3return n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[l,e,t]);let u=()=>{e[l]?.onClickPrev?.(),l>0&&s(e=>e-1)},p=e[l],h=!!o;return(0,n.jsxs)(F.AM,{open:h,modal:!0,children:[(0,n.jsx)("div",{className:eF().anchorLayer,style:o?{top:o.top+(p?.top??0),left:o.left+(p?.left??0)}:void 0,children:(0,n.jsx)(F.dT,{children:(0,n.jsx)("div",{style:o?{width:o.width,height:o.height}:void 0})})}),(0,n.jsx)(F.hl,{side:"right",align:"center",size:"md",sideOffset:0,children:(0,n.jsxs)("div",{className:eF().body,children:[(0,n.jsx)("div",{className:(0,W.A)(eF().arrow,"renderJsRef"===p.id&&eF().arrowJs),children:(0,n.jsx)(eB,{isOnTop:"renderJsRef"===p.id})}),(0,n.jsxs)("div",{className:eF().header,children:[(0,n.jsx)("h6",{className:eF().title,children:p?.title}),(0,n.jsx)("button",{type:"button",className:eF().closeBtn,onClick:()=>{a?.(),r?.(),c(null)},children:(0,n.jsx)($,{className:eF().closeIcon})})]}),(0,n.jsx)("h6",{className:eF().description,children:p?.description}),(0,n.jsxs)("div",{className:eF().footer,children:[(0,n.jsx)("p",{className:eF().stepCounter,children:d("step_of",{current:l+1,total:e.length})}),(0,n.jsxs)("div",{children:[l>0&&(l<e.length-1?(0,n.jsx)("button",{type:"button",className:(0,W.A)(eF().btn,eF().btnGrey,eF().btnSpaced),onClick:u,children:d("previous")}):(0,n.jsx)("button",{type:"button",className:(0,W.A)(eF().btn,eF().btnContained,eF().btnSpaced),onClick:u,children:(0,n.jsx)("span",{children:d("previous")})})),l===e.length-1?(0,n.jsx)("button",{type:"button",className:(0,W.A)(eF().btn,eF().btnGrey),onClick:()=>{r?.(),c(null)},children:d("finish")}):(0,n.jsx)("button",{type:"button",className:(0,W.A)(eF().btn,eF().btnContained),onClick:()=>{e[l]?.onClickNext?.(),l<e.length-1?s(e=>e+1):r?.()},children:(0,n.jsx)("span",{children:d("next")})})]})]})]})})]})};var e$=r(62815),eZ=r(22324);let eO=(0,_.n9)({name:"BuilderPicker"})(e=>({bottomWrapper:{width:"100%",display:"flex","@media(max-width: 700px)":{flexDirection:"column-reverse",maxHeight:"100vh",overflow:"auto"}},leftWrapper:{display:"flex",flexDirection:"column",width:340,height:"100vh",borderRight:"1px solid",borderColor:e.palette.customGrey.light,"@media(max-width: 715px)":{height:"initial"},"@media(max-width: 700px)":{width:"100%"}},rightWrapper:{flex:"1 0 0",height:"100vh",position:"relative","@media(max-width: 715px)":{height:"100vh"},"@media(max-width: 700px)":{height:"initial"}},sidebarContent:{flex:"1 0 0",overflow:"auto"},customFrame:{height:"100%",minHeight:"unset",border:"unset"},wallPapper:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.7)",marginTop:52,zIndex:100}})),eG=({className:e,open:t=!0,link:r,error:l,submitText:s,headerContent:o,onLoading:c,onIframeLoaded:d,onError:u,onLoad:p,goBackClick:h,setError:m,onCreateFeed:g,withoutCloseIcon:b,showTour:x,setShowTour:_})=>{let C,[w,v]=(0,i.useState)(!0),[y,L]=(0,i.useState)("generalTitle"),{values:R,reset:H,setValue:V}=(()=>{let e,t,r=(0,a.useRouter)(),{getValues:n}=(t={url:(e=(0,a.useRouter)()).query.url,advanced:"1"===e.query.adv,renderWithJs:"1"===e.query.js,jsTimeout:eE([void 0,"auto","5","10","15","20","25"],e.query.jsTimeout,"auto"),contentType:eE([f.b4.AnyElement,f.b4.ChangeDetection,f.b4.Logs,f.b4.News,f.b4.Table],e.query.contentType,f.b4.News),changeDetectionVariant:eE([void 0,f.JQ.Image,f.JQ.Site,f.JQ.Text,f.JQ.Url],e.query.changeDetectionVariant,void 0),cssGeneralTitle:e.query.cssGeneralTitle,cssContainer:e.query.cssContainer,cssLink:e.query.cssLink,cssTitle:e.query.cssTitle,cssDescription:e.query.cssDescription,cssImage:e.query.cssImage,cssAuthor:e.query.cssAuthor,cssDate:e.query.cssDate},{getValues:e=>{let r=e||t;return{url:r.url||"",advanced:!!r.advanced,jsTimeout:r.jsTimeout||"auto",contentType:r.contentType||f.b4.News,changeDetectionVariant:r.changeDetectionVariant||f.JQ.Text,renderWithJs:!!r.renderWithJs,selectors:{generalTitle:r.cssGeneralTitle,container:r.cssContainer,link:r.cssLink,title:r.cssTitle,image:r.cssImage,description:r.cssDescription,author:r.cssAuthor,date:r.cssDate}}}}),[l,s]=(0,i.useState)(n());return(0,i.useEffect)(()=>{r.isReady&&s(n())},[r]),{values:l,reset:()=>s({...n({}),url:""}),setValue:(e,t)=>
3{s(r=>({...r,[e]:t}))}}})(),{selectors:D}=R,{classes:M,cx:W}=eO(),{inputRefs:F,steps:P}=(({onNextMode:e,onNextRenderJs:t,isMarketing:r})=>{let{t:a}=(0,J.Bd)("dashboard/new-rss-feed"),l=(0,i.useRef)(null),s=(0,i.useRef)(null),o=(0,i.useRef)(null),c=(0,i.useRef)(null),d=(0,i.useRef)(null),u=(0,i.useRef)(null),p=(0,i.useRef)(null);return{steps:[{id:"typeOfContentRef",title:a("onboarding_typeOfContent_title"),description:a("onboarding_typeOfContent_description"),top:45,left:25},{id:"modeRef",title:a("onboarding_modes_title"),description:(0,n.jsxs)(ed.A,{children:[(0,n.jsx)(E.A,{mt:"4px",variant:"subtitle2",color:"textSecondary",children:a("onboarding_modes_selectMode")}),(0,n.jsxs)(ed.A,{component:"ul",children:[(0,n.jsxs)(E.A,{variant:"subtitle2",mt:"20px",ml:"24px",pl:"4px",component:"li",sx:{"&::marker":{fontSize:12}},color:"textSecondary",fontWeight:400,children:[(0,n.jsx)(E.A,{component:"span",variant:"subtitle2",color:"textSecondary",children:a("onboarding_modes_autoMode")})," ",a("onboarding_modes_autoDescription")]}),(0,n.jsxs)(E.A,{variant:"subtitle2",ml:"24px",pl:"4px",component:"li",sx:{"&::marker":{fontSize:12,color:"textSecondary"}},color:"textSecondary",children:[(0,n.jsx)(E.A,{component:"span",variant:"subtitle2",color:"textSecondary",children:a("onboarding_modes_manualMode")})," ",a("onboarding_modes_manualDescription")]})]})]}),onClickNext:e,top:100,left:25},{id:"titleSelectorRef",title:a("onboarding_titleSelector_title"),description:a("onboarding_titleSelector_description"),top:80,left:40},{id:"renderJsRef",title:a("onboarding_renderJs_title"),description:a("onboarding_renderJs_description"),onClickNext:t,onClickPrev:e,top:60,left:-160},{id:"articleContainerRef",title:a("onboarding_articleContainer_title"),description:a("onboarding_articleContainer_description"),top:70,left:40},{id:"articleLinkRef",title:a("onboarding_articleLink_title"),description:a("onboarding_articleLink_description"),top:60,left:40},{id:"articleTitleRef",title:a("onboarding_articleTitle_title"),description:a("onboarding_articleTitle_description"),top:70,left:40}],inputRefs:{typeOfContentRef:l,modeRef:s,titleSelectorRef:o,renderJsRef:c,articleContainerRef:d,articleLinkRef:u,articleTitleRef:p}}})({onNextMode:()=>{V("advanced",!1)},onNextRenderJs:()=>{V("advanced",!0)},isMarketing:!0});C="function"==typeof window.Intercom?window.Intercom:void 0,(0,i.useEffect)(()=>{C&&C("update",{hide_default_launcher:!0})},[C]),(0,i.useEffect)(()=>()=>{C&&C("update",{hide_default_launcher:!1})},[]);let[$,Z]=(0,i.useState)(0),{manager:O,iframeRef:G}=(e=>{let{type:t,container:r,generalTitle:n,contentType:a,changeDetectionVariant:l}=e,s=(()=>{let{subscription:e}=(0,eR.A)();return e?.selectedPlan?.maxPostLimit||15})(),o=(0,i.useRef)(null),c=(0,i.useMemo)(()=>new eI(o,{maxSelectedCount:s}),[e]);return(0,i.useEffect)(()=>{""===n&&c.clearSelectedNodes()},[e]),(0,i.useEffect)(()=>o.current?c.bindEvents({onClick:n=>{n.preventDefault();let i=eS.findDown({target:n.target,type:t,contentType:a,changeDetectionVariant:l});if(!i)return;let s=eS.getSelectorFromTarget({target:i,type:t,container:r,contentType:a});c.clearSelectedNodes();let o=c.setSelectedNodes(s);e?.onClick({selector:s,type:t,elements:o})},onMouseOut:()=>{c.clearHoveredNodes()},onMouseOver:e=>{let r=eS.findDown({target:e.target,type:t,contentType:a,changeDetectionVariant:l});if(!r)return;let n=eS.getSelectorFromTarget({target:r,contentType:a});c.setHoveredNodes(n)}}):()=>{},[e]),{manager:c,iframeRef:o}})({onClick:({selector:e,type:t})=>{let r={...D};if("container"!==t&&R.advanced?r[t]=e.replace(`${D.container} > `,""):r[t]=e,V("selectors",r),R.advanced){let e=eH.filter(e=>!r[e])[0];e&&e!==t&&L(e)}},type:y,container:D.container,contentType:R.contentType,changeDetectionVariant:R.changeDetectionVariant,loadCount:$}),U=(0,i.useMemo)(()=>{let e=O.getMatches(D,{advanced:R.advanced,contentType:R.contentType,changeDetectionVariant:R.changeDetectionVariant});return[f.b4.ChangeDetection].includes(R.contentType)?e.slice(0,1):e},[O,D,R.advanced,R.contentType,R.changeDetectionVariant,w]);(0,i.useEffect)(()=>{let{advanced:e,changeDetectionVariant:t,renderWithJs:n}=R,i={adv:Number(e),cssGeneralTitle:D.generalTitle,cssLink:D.link,
3cssContainer:D.container,cssTitle:D.title,cssDescription:D.description,cssImage:D.image,cssAuthor:D.author,cssDate:D.date};i.js=+!!n,i.jsTimeout=R.jsTimeout,i.url=r,i.contentType=R.contentType,R.contentType===f.b4.ChangeDetection&&(i.changeDetectionVariant=t);let a=A(T(i));if(a){if((0,N.isEqual)(new URLSearchParams(window.location.search).toString(),new URLSearchParams(a).toString()))return;window.history.replaceState(null,"",`${window.location.pathname}?${a}${window.location.hash}`)}},[R.advanced,R.renderWithJs,R.jsTimeout,R.contentType,D.generalTitle,D.link,D.container,D.title,D.description,D.image,D.author,D.date,t]);let z=()=>{if(O.clearSelectedNodes(),D&&R.advanced){if("container"===y)O.setSelectedNodes(D[y]);else{let e=`${D.container} > ${D[y]}`;O.setSelectedNodes(e)}return}"generalTitle"===y&&O.setSelectedNodes(D[y],[f.b4.ChangeDetection,f.b4.Table].includes(R.contentType)?1:void 0)};return(0,i.useEffect)(()=>{z()},[O,D,y]),k(t),(0,n.jsx)(I.A,{theme:eZ.W.light,children:(0,n.jsxs)("div",{className:W(M.bottomWrapper,e),children:[(0,n.jsxs)("div",{className:M.leftWrapper,children:[(0,n.jsx)("div",{className:M.sidebarContent,children:(0,n.jsx)(eA,{type:y,link:r,matching:U,advanced:R.advanced,selectors:D,onLimitErrorChange:()=>m(""),onChangeType:L,onChangeAdvanced:e=>V("advanced",e),onChangeSelectors:e=>V("selectors",e),contentType:R.contentType,setContentType:e=>{V("advanced",!1),V("contentType",e),V("selectors",{})},changeDetectionVariant:R.changeDetectionVariant,setChangeDetectionVariant:e=>V("changeDetectionVariant",e),loading:w,onBoardingRefs:F})}),(0,n.jsx)(B,{submitText:s,onClick:()=>g(R),matching:U,error:l,onLimitErrorChange:()=>m(""),advanced:R.advanced})]}),(0,n.jsxs)("div",{className:M.rightWrapper,children:[(0,n.jsx)(ea,{inputValue:r,goBackClick:()=>h().then(H),headerContent:o,withoutCloseIcon:b,jsTimeout:R.jsTimeout,onJsTimeoutChange:e=>{c(!0),d(!1),V("jsTimeout",e)},renderWithJs:R.renderWithJs,onChangeRenderWithJs:()=>{c(!0),d(!1),V("renderWithJs",!R.renderWithJs)},renderJsRef:F.renderJsRef}),w&&(0,n.jsx)(S.A,{color:"primary",sx:{position:"absolute",left:0,right:0}}),r&&x&&(0,n.jsx)("div",{className:M.wallPapper}),r&&(0,n.jsx)(j,{className:M.customFrame,ref:e=>{G.current=e},src:r,renderWithJs:R.renderWithJs,jsTimeout:R.jsTimeout,onError:u,onLoad:()=>{Z(e=>e+1),v(!1),p(),z()},onErrorMessage:e=>{v(!1),m(e)}}),x&&(0,n.jsx)(eP,{inputRefs:F,steps:P,onFinish:()=>{_?.(!1),(0,e$.Z)(eV,"true"),V("advanced",!1)},onClose:()=>_(!1)})]})]})})};var eJ=r(48097),eU=r(98580),ez=r.n(eU);let eq=()=>{let e=(0,a.useRouter)(),t=(0,d.A)(),[,r]=(0,u.A)();(0,i.useEffect)(()=>(r(!0),()=>{r(!1)}),[]);let[_,C]=(0,i.useState)(null),w=e.query.buildUrl,v=(0,g.U)("(max-width: 850px)"),[y,j]=(0,i.useState)(!1),[A,T]=(0,i.useState)(!1),N=async n=>{let{jsTimeout:i,contentType:a,changeDetectionVariant:d,selectors:u,renderWithJs:g,advanced:b}=n;if(_&&C(null),!(0,m.A)(w))return void C("Enter a valid URL");r(!0);try{let r={jsTimeout:i,contentType:a,changeDetectionVariant:d,isJS:g},{generalTitle:n,...l}=u||{},c=await t(w,{simulate:!1,interfaceType:f.i4.Picker,scrapingRules:b?{...r,strategy:"cssSelectors",cssSelectors:l}:{strategy:"cssAnchor",cssAnchor:n,...r}}),{feedUrl:p}=(0,s.zl)(c),h=(0,o.A)(p);await e.push((0,x.$1)(`/feed/${h}`),void 0,{locale:!1})}catch(e){if("FEED_NOT_SUPPORTED"===(0,eJ.S)(e))return;((0,h.A)(e)===c.Xp||"POSTS_NOT_FOUND"===(0,eJ.S)(e))&&C((0,h.A)(e)),(0,p.gJ)((0,h.A)(e)),(0,h.A)(e)===c.Ql&&l.default.captureException(e,{extra:{link:w}})}finally{r(!1)}};return(0,n.jsx)(b.A,{ga:"create-feed-page",className:ez().root,section:"RSS Builder",sectionClass:ez().sectionClass,loadingTitle:y?void 0:"Loading Website!",loadingText:y?void 0:"We are working on loading the website.",headerClassName:ez().header,children:(0,n.jsx)(eG,{open:!0,error:_,setError:C,link:w,onCreateFeed:N,onLoad:()=>{j(!0),r(!1),"true"===(0,e$.L)(eV)||v||T(!0)},goBackClick:()=>e.push("/rss-feed/rss-builder/"),onLoading:r,onIframeLoaded:j,onError:()=>{j(!0),r(!1)},showTour:A,setShowTour:T})})}},76557:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(67505),i=r(5306),a=r(47521),l=r(9359),s=r(23650);let o=e=>{let{user:t,loading:r,error:o}=(0,i.A)(),{data:c,isLoading:d,isFetched:u}=(0,s.rf)("get",l.i5,{params:{path:{id:e}}},{enabled:!!e}
3),p=!!e,h=p&&(!u||d)?null:c||t?.selectedTeam,m=p?h:t?.selectedTeam,g=m?.id,{data:f=[],isLoading:b,error:x,refetch:_}=(0,s.rf)("get",l.jS,{params:{path:{id:g}}},{enabled:!!g}),{owners:C,participants:w,members:v}=n.useMemo(()=>{let e=m?.teamUsers?.reduce((e,t)=>(t&&(e.all.push(t),t.user&&(t.role===a.lS.Owner?e.owners.push({id:t.userId,name:`${t.user.firstName} ${t.user.lastName}`,email:t.user.email,role:t.role}):e.participants.push({id:t.userId,name:`${t.user.firstName} ${t.user.lastName}`,email:t.user.email,role:t.role,avatarUrl:t.user.photo,status:"Active"}),e.members.push({id:t.userId,name:`${t.user.firstName} ${t.user.lastName}`,email:t.user.email,role:t.role,avatarUrl:t.user.photo,status:"Active"}))),e),{owners:[],participants:[],members:[],all:[]});return e?.participants.push(...(f||[]).map(e=>({...e,status:"Pending"}))),e?.members.push(...(f||[]).map(e=>({...e,status:"Pending"}))),e},[m,f])||{owners:[],participants:[],members:[]},y=m?.teamUsers?.some(e=>e?.userId===t?.id&&e?.role===a.lS.Owner),j=m?.teamUsers?.some(e=>e?.userId===t?.id&&e?.role===a.lS.Admin);return{data:{team:m,teamInvites:f,owners:C,participants:w,members:v,user:t,isOwner:y,isAdmin:j},loading:r||d||b,error:o||x,team:m,refetch:_}}},79603:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(92798),i=r(47993);let a="https://cdn.firstpromoter.com/fpr.js",l=(e,t)=>{if(e.querySelector(`script[src="${a}"]`))return;t.fpr=t.fpr||function(){t.fpr.q=t.fpr.q||[],t.fpr.q["set"===arguments[0]?"unshift":"push"](arguments)},t.fpr("init",{cid:n.A.FIRST_PROMOTER}),t.fpr("click");let r=e.createElement("script");r.src=a,r.async=!0,e.body.appendChild(r),t.fpr("onReady",function({tid:e}){if(e){let t=new Date;t.setTime(t.getTime()+2592e6);let r=`expires=${t.toUTCString()}`;(0,i.sK)(`cf_tid=${e}; ${r}; path=/; SameSite=Lax`)}})}},86223:(e,t,r)=>{"use strict";function n(){"u">typeof $crisp&&$crisp.push(["do","chat:hide"])}function i(){"u">typeof $crisp&&$crisp.push(["do","chat:show"])}function a(){"u">typeof $crisp&&$crisp.push(["do","chat:open"])}r.d(t,{Cg:()=>n,Zd:()=>i,kZ:()=>a})},87584:(e,t,r)=>{"use strict";r.d(t,{A:()=>l,j:()=>a});var n=r(76557);let i=()=>{let{data:{team:e,owners:t,user:r,isOwner:i,isAdmin:a},loading:l}=(0,n.A)();return{subscription:e?.subscription,team:e,user:r,teamOwners:t,hasUnpaidInvoice:e?.hasUnpaidInvoice,isOwner:i,isAdmin:a,loading:l}},a=()=>{let{subscription:e}=i();return e?.selectedPlan},l=i},89071:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(94285);r(67505);var i=r(92814),a=r(60222),l=r(71156),s=r(7178),o=r(38110);let c=function(e){return(0,n.jsx)(o.A,{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...e,children:(0,n.jsx)("path",{d:"M3.2 14 2 12.8 6.8 8 2 3.2 3.2 2 8 6.8 12.8 2 14 3.2 9.2 8l4.8 4.8-1.2 1.2L8 9.2 3.2 14Z"})})};var d=r(15011);let u=(0,s.n9)({name:"DialogTitle"})(e=>({root:{flexDirection:"column"},fullScreen:{padding:"16px 16px 15px"},innerWrap:{display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:8},innerWrapWindowed:{minHeight:32},title:{marginRight:"auto",textWrap:"initial"},button:{flexShrink:0,padding:6,transform:"translateX(6px)"},fullScreenButton:{padding:4},icon:{width:16,height:16,fill:e.palette.text.secondary},iconBack:{transform:"rotate(180deg)"},subtitle:{display:"flex",marginTop:4,marginRight:32,color:e.palette.text.secondary}})),p=function({className:e,title:t,onBack:r,onClose:s,subtitle:o,fullScreen:p,...h}){let{classes:m,cx:g}=u();return(0,n.jsxs)(i.A,{className:g(m.root,{[m.fullScreen]:p},e),component:"div",...h,children:[(0,n.jsxs)("div",{className:g(m.innerWrap,{[m.innerWrapWindowed]:!p}),children:[r&&p&&(0,n.jsx)(l.A,{className:g(m.button,{[m.fullScreenButton]:p}),"aria-label":"back",onClick:r,children:(0,n.jsx)(d.A,{className:g(m.icon,m.iconBack)})}),(0,n.jsx)(a.A,{className:m.title,variant:p?"subtitle1":"h6",component:"h2",fontWeight:"600",lineHeight:p?"22px":"28px",children:t}),s&&(0,n.jsx)(l.A,{className:g(m.button,{[m.fullScreenButton]:p}),"aria-label":"close",onClick:()=>s({},"escapeKeyDown"),children:(0,n.jsx)(c,{className:m.icon})})]}),!!o&&(0,n.jsx)(a.A,{variant:"subtitle2",className:m.subtitle,children:o})]})}},89597:e=>{e.exports={fill:"onBoardingArrow_fill__issqP"}},96508:e=>{e.exports={labelRow:"webSelectorInput_labelRow__ud9VN",label:"webSelectorInput_label__lgD8u",labelDisabled:"webSelectorInput_labelDisabled__zY33R",star:"webSelectorInput_star__tssIJ",tooltipTrigger:"webSelectorInput_tooltipTrigger___98e4",helpIcon:"webSelectorInput_helpIcon___g8r2",helpIconDisabled:"webSelectorInput_helpIconDisabled__mCObJ",inputContainer:"webSelectorInput_inputContainer__hOZ3q",f
3ield:"webSelectorInput_field__3UF7a",fieldDisabled:"webSelectorInput_fieldDisabled__5WafQ",input:"webSelectorInput_input__4EP_c",error:"webSelectorInput_error__wgI1A"}},97203:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(374);let i=function(e=!1){return(0,n.Ul)("loading",e)}},98580:e=>{e.exports={root:"webpage_root__OfMIe",sectionClass:"webpage_sectionClass__0mIED",header:"webpage_header__JZyz9"}}},e=>{e.O(0,[86265,56577,21275,66311,31066,6014,37002,75315,71535,67187,585,75326,70545,77576,72276,47022,41738,52670,64263,38424,23422,25828,56454,61549,90636,46593,38792],()=>e(e.s=28005)),_N_E=e.O()}]); 4//# debugId=d427b17c-22c7-5b41-b2a5-b074fda89445
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.