1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[40168],{40168:(e,t,a)=>{a.r(t),a.d(t,{default:()=>k});var s=a(95155),l=a(12115),r=a(18720),n=a(90368),o=a(27937),i=a(16485),c=a(65229),d=a(66630),u=a(35299),h=a(82158),m=a(57559),p=a(88590),x=a(21786),g=a(8525);function b(e){let{videoId:t,value:a,onChange:r,disabled:n}=e,[o,i]=(0,l.useState)(null),[d,h]=(0,l.useState)(null),m=(0,l.useRef)(null),p=[m,(0,l.useRef)(null),(0,l.useRef)(null)],b=(0,g.k)();async function y(e,s){var l,n;let o=null==s?void 0:s[0];if(o){if(h(null),!o.type.startsWith("image/"))return void h("Images only");if(o.size>0xa00000)return void h("Each image must be under 10 MB");i(e);try{let{data:{user:s}}=await b.auth.getUser();if(!s)throw Error("Not signed in");let n=(null==(l=o.name.split(".").pop())?void 0:l.toLowerCase())||"jpg",i="".concat(s.id,"/blog/").concat(t,"/").concat(crypto.randomUUID(),".").concat(n),{error:c}=await b.storage.from("product-images").upload(i,o,{cacheControl:"31536000",upsert:!1,contentType:o.type||"image/jpeg"});if(c)throw Error(c.message||"Upload failed");let{data:d}=b.storage.from("product-images").getPublicUrl(i);if(null==d?void 0:d.publicUrl){let t=[...a];t[e]=d.publicUrl,r(t)}}catch(e){h(e instanceof Error?e.message:"Upload failed")}finally{i(null);let t=null==(n=p[e])?void 0:n.current;t&&(t.value="")}}}return(0,s.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,s.jsx)("div",{className:"flex items-center gap-2 flex-wrap",children:[0,1,2].map(e=>{let t=a[e],l=o===e;return(0,s.jsxs)("div",{className:"flex flex-col items-center gap-1",children:[(0,s.jsx)("input",{ref:p[e],type:"file",accept:"image/jpeg,image/png,image/webp",className:"hidden",onChange:t=>y(e,t.target.files)}),t?(0,s.jsxs)("div",{className:"relative w-14 h-14 rounded-md overflow-hidden border border-gray-200 dark:border-white/10",children:[(0,s.jsx)("img",{src:t,alt:"Article image ".concat(e+1),className:"w-full h-full object-cover"}),(0,s.jsx)("button",{type:"button",onClick:()=>(function(e){let t=[...a];t[e]=null,r(t)})(e),"aria-label":"Remove image ".concat(e+1),className:"absolute top-0.5 right-0.5 w-4 h-4 rounded-full bg-black/60 hover:bg-[#ff3b30] text-white flex items-center justify-center",children:(0,s.jsx)(c.A,{size:9})})]}):(0,s.jsx)("button",{type:"button",onClick:()=>{var t,a;return null==(a=p[e])||null==(t=a.current)?void 0:t.click()},disabled:l||n,className:"w-14 h-14 rounded-md border border-dashed border-gray-300 dark:border-white/15 flex items-center justify-center text-[#86868b] dark:text-[#8e8e93] hover:border-[#7C3AED] hover:text-[#7C3AED] disabled:opacity-50 transition-colors",title:"Upload your own image ".concat(e+1," (optional)"),children:l?(0,s.jsx)(u.A,{size:14,className:"animate-spin"}):(0,s.jsx)(x.A,{size:14})}),(0,s.jsxs)("span",{className:"text-[10px] text-[#86868b] dark:text-[#8e8e93]",children:["Image ",e+1]})]},e)})}),(0,s.jsx)("span",{className:"text-[10px] text-[#86868b] dark:text-[#8e8e93]",children:a.some(Boolean)?"Only the photos you add here go in the article (no AI photos mixed in). Fill more slots for more images.":"Optional. By default we generate AI photos of the actual product in different real-world settings â or drop in up to 3 of your own above."}),d&&(0,s.jsx)("span",{className:"text-[10px] text-[#ff3b30]",children:d})]})}let y=[{key:"linkedin",label:"LinkedIn"},{key:"telegram",label:"Telegram"},{key:"facebook",label:"Facebook"},{key:"threads",label:"Threads"},{key:"twitter",label:"X / Twitter"},{key:"bluesky",label:"Bluesky"},{key:"pinterest",label:"Pinterest"}],f=["Su","Mo","Tu","We","Th","Fr","Sa"];function v(e){let{selectedYmd:t,onPickDay:a}=e,[r,i]=(0,l.useState)({}),c=/^\d{4}-\d{2}-\d{2}/.test(t)?{y:+t.slice(0,4),m:+t.slice(5,7),d:+t.slice(8,10)}:null,[d,u]=(0,l.useState)(()=>{if(c)return{y:c.y,m:c.m};let e=new Date;return{y:e.getFullYear(),m:e.getMonth()+1}});(0,l.useEffect)(()=>{let e=!1;return fetch("/api/blog/scheduled-list").then(e=>e.ok?e.json():null).then(t=>{if(e||!t)return;let a=Array.isArray(t.scheduled)?t.scheduled:Array.isArray(t.items)?t.items:Array.isArray(t)?t:[],s={};for(let e of a){if(e.status&&"pending"!==e.status&&"processing"!==e.status)continue;let t=e.scheduled_at;if(!t)continue;let a=new Date(t);if(isNaN(a.getTime()))continue;let l="".concat(a.getFullYear(),"-").concat(String(a.getMonth()+1).padStart(2,"0"),"-").concat(String(a.getDate()).padStart(2,"0"));(s[l]||(s[l]=new Set)).add(String(e.blog_post_id||e.id))}let l={};for(let e in s)l[e]=s[e].size;e||i(l)}).catch(()=>{}),()=>{e=!0}},[]);let h=new Date(d.y,d.m-1,1),m=h.getDay(),p=new Date(d.y,d.m,0).getDate(),x=[...Array(m).fill(null),...Array.from({length:p},(e,t)=>
1t+1)],g=h.toLocaleString("en-US",{month:"long",year:"numeric"}),b=e=>u(t=>{let a=t.m+e,s=t.y;return a<1&&(a=12,s--),a>12&&(a=1,s++),{y:s,m:a}}),y=new Date,v="".concat(y.getFullYear(),"-").concat(String(y.getMonth()+1).padStart(2,"0"),"-").concat(String(y.getDate()).padStart(2,"0"));return(0,s.jsxs)("div",{className:"rounded-lg border p-2.5 mb-2",style:{borderColor:"var(--border-bright, rgba(255,255,255,0.14))"},children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-1.5 px-1",children:[(0,s.jsx)("button",{type:"button",onClick:()=>b(-1),className:"w-6 h-6 grid place-items-center rounded hover:bg-white/10",style:{color:"var(--text, #F5F5F7)"},children:(0,s.jsx)(n.A,{size:15})}),(0,s.jsx)("span",{className:"text-[12.5px] font-semibold",style:{color:"var(--text, #F5F5F7)"},children:g}),(0,s.jsx)("button",{type:"button",onClick:()=>b(1),className:"w-6 h-6 grid place-items-center rounded hover:bg-white/10",style:{color:"var(--text, #F5F5F7)"},children:(0,s.jsx)(o.A,{size:15})})]}),(0,s.jsxs)("div",{className:"grid grid-cols-7 gap-0.5 text-center",children:[f.map(e=>(0,s.jsx)("div",{className:"text-[10px] font-medium py-0.5",style:{color:"var(--text-faint, rgba(255,255,255,0.5))"},children:e},e)),x.map((e,t)=>{if(null==e)return(0,s.jsx)("div",{},"e".concat(t));let l="".concat(d.y,"-").concat(String(d.m).padStart(2,"0"),"-").concat(String(e).padStart(2,"0")),n=r[l]||0,o=!!c&&c.y===d.y&&c.m===d.m&&c.d===e,i=l===v,u=new Date(d.y,d.m-1,e,23,59).getTime()<y.getTime();return(0,s.jsxs)("button",{type:"button",onClick:()=>a(d.y,d.m,e),className:"relative h-8 rounded text-[12px] transition-colors disabled:opacity-30",disabled:u,style:o?{background:"#7C3AED",color:"#fff",fontWeight:700}:{color:i?"#7C3AED":"var(--text, #F5F5F7)",fontWeight:i?700:400},title:n>0?"".concat(n," post").concat(1===n?"":"s"," scheduled"):void 0,children:[e,n>0&&(0,s.jsx)("span",{className:"absolute bottom-1 left-0 right-0 flex items-center justify-center gap-0.5",children:Array.from({length:Math.min(3,n)}).map((e,t)=>(0,s.jsx)("span",{className:"w-1 h-1 rounded-full",style:{background:o?"#fff":"#eab308"}},t))})]},l)})]}),(0,s.jsxs)("p",{className:"text-[10.5px] mt-1.5 px-1 flex items-center gap-1.5",style:{color:"var(--text-faint, rgba(255,255,255,0.5))"},children:[(0,s.jsx)("span",{className:"w-1.5 h-1.5 rounded-full inline-block",style:{background:"#eab308"}})," days with a post already scheduled"]})]})}function k(e){let{videoId:t,videoTitle:a,connectedChannels:n,userTier:o,siteId:x,existingPostId:g,includeImages:f=!0,onIncludeImagesChange:k,optionsSlot:j,open:w,onClose:N,onScheduled:C}=e,S=!!g,A=e=>n.has(e)&&(0,m.Et)(o,e),[F,D]=(0,l.useState)(()=>(function(){let e=new Date;e.setMinutes(e.getMinutes()+60),e.setMinutes(15*Math.ceil(e.getMinutes()/15)),e.setSeconds(0),e.setMilliseconds(0);let t=e=>String(e).padStart(2,"0");return"".concat(e.getFullYear(),"-").concat(t(e.getMonth()+1),"-").concat(t(e.getDate()),"T").concat(t(e.getHours()),":").concat(t(e.getMinutes()))})()),[E,P]=(0,l.useState)(!1),[I,M]=(0,l.useState)(()=>new Set(y.map(e=>e.key).filter(e=>A(e))));(0,l.useEffect)(()=>{w&&M(new Set(y.map(e=>e.key).filter(e=>A(e))))},[w,n]);let[T,z]=(0,l.useState)(!1),[R,U]=(0,l.useState)([null,null,null]),[W,O]=(0,l.useState)(!1),[_,L]=(0,l.useState)({}),[Y,B]=(0,l.useState)(!1);(0,l.useEffect)(()=>{w&&B(!1)},[w]);let H=E?"draft-flip":"wp-native",J=(0,l.useMemo)(()=>{let e=F?new Date(F):null;return!e||isNaN(e.getTime())?null:{dt:(0,p.W)(e,{dateStyle:"full",timeStyle:"short"}),list:[...I].map(e=>{var t;return(null==(t=y.find(t=>t.key===e))?void 0:t.label)||e}).join(", ")||"no social pushes"}},[F,I]);return!w||Y?null:(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 backdrop-blur-sm p-4",onClick:N,role:"presentation",children:(0,s.jsxs)("div",{className:"w-full max-w-xl rounded-2xl border shadow-2xl flex flex-col max-h-[calc(100dvh-2rem)] overflow-hidden",style:{backgroundColor:"var(--bg, #0E0E11)",color:"var(--text, #F5F5F7)",borderColor:"var(--border, rgba(255,255,255,0.08))"},onClick:e=>e.stopPropagation(),role:"dialog","aria-modal":"true","aria-labelledby":"schedule-modal-title",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between p-5 border-b shrink-0",style:{borderColor:"var(--border, rgba(255,255,255,0.08))"},children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(i.A,{size:18,className:"text-[#7C3AED]"}),(0,s.jsx)("h2",{id:"schedule-modal-title",className:"text-lg font-semibold",children:S?"Schedule social cascade":"Schedule post"})]}),(0,s.jsx)("button",{onClick:N,className:"opacity-60 hover:opacity-100 transition-opacity","aria-label":"Close",children:(0,s.jsx)(c.A,{size:18})})]}),(0,s.jsxs)("div",{className:"p-5 space-y-5 flex-1 overflow-y-auto min-h-0",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-[11px] uppercase tracking-wider mb-1",style:{color:"var(--text-faint, rgba(255,255,255,0.5))"},children:"Source video"}),(0,s.jsx)("p",{className:"text-sm font-medium truncate",children:a})]}),!S&&(k||j)&&(0,s.jsxs)("div",{className:"rounded-lg border p-3 space-y-2.5",style:{borderColor:"var(--border, rgba(255,255,255,0.08))",backgroundColor:"var(--surface, rgba(255,255,255,0.03))"},children:[(0,s.jsx)("p",{className:"text-[11px] uppercase tracking-wider",style:{color:"var(--text-faint, rgba(255,255,255,0.5))"},children:"Post options"}),k&&(0,s.jsxs)("label",{className:"flex items-center gap-2 cursor-pointer select-none",children:[(0,s.jsx)("input",{type:"checkbox",checked:f,onChange:e=>k(e.target.checked),className:"w-4 h-4 rounded accent-[#7C3AED]"}),(0,s.jsx)("span",{className:"text-sm",children:"Include photos in the article"})]}),f&&(0,s.jsx)(b,{videoId:t,value:R,onChange:U,disabled:Y}),j]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"schedule-when",className:"block text-sm font-medium mb-1.5",children:"Publish on"}),(0,s.jsx)(v,{selectedYmd:F,onPickDay:(e,t,a)=>{let s=e=>String(e).padStart(2,"0"),l=/T(\d{2}:\d{2})/.test(F)?F.slice(11,16):"09:00";
1D("".concat(e,"-").concat(s(t),"-").concat(s(a),"T").concat(l))}}),(0,s.jsx)("input",{id:"schedule-when",type:"datetime-local",value:F,onChange:e=>D(e.target.value),className:"w-full px-3 py-2 rounded-lg border bg-transparent text-sm",style:{borderColor:"var(--border-bright, rgba(255,255,255,0.14))",color:"var(--text, #F5F5F7)"}}),(0,s.jsxs)("p",{className:"text-[11px] mt-1",style:{color:"var(--text-faint, rgba(255,255,255,0.5))"},children:["Times are in your local timezone (",(0,p.$)(),"). Must be at least 1 minute in the future."]})]}),!S&&(0,s.jsxs)("label",{className:"flex items-start gap-3 cursor-pointer",children:[(0,s.jsx)("input",{type:"checkbox",checked:E,onChange:e=>P(e.target.checked),className:"mt-0.5 w-4 h-4 rounded accent-[#7C3AED]"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:"Save as draft until then so I can edit before it goes live"}),(0,s.jsx)("p",{className:"text-[12px]",style:{color:"var(--text-faint, rgba(255,255,255,0.5))"},children:E?"WordPress holds the post as a draft. MVP flips it to publish at the chosen time.":"WordPress holds the post as scheduled (status=future) and publishes it natively at the chosen time. Most reliable."})]})]}),S&&(0,s.jsxs)("div",{className:"rounded-lg border border-[#7C3AED]/30 bg-[#7C3AED]/5 p-3 text-xs",children:[(0,s.jsx)("p",{className:"font-medium",style:{color:"var(--text, #F5F5F7)"},children:"This post is already live."}),(0,s.jsx)("p",{style:{color:"var(--text-faint, rgba(255,255,255,0.6))"},children:"Only the social cascade gets queued â no generation, no WP status change."})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium mb-2",children:"Push to socials when it goes live"}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-2",children:y.map(e=>{let t=n.has(e.key),a=(0,m.Et)(o,e.key),l=t&&a,r=I.has(e.key),i=t&&!a,c=i?(0,m.T9)(e.key):null,d=c?(0,m.PN)(c):"a paid plan";return(0,s.jsxs)("label",{className:"flex items-center gap-2 px-3 py-2 rounded-lg border transition-colors ".concat(l?"cursor-pointer":"opacity-60 cursor-not-allowed"),style:{borderColor:r&&l?"#7C3AED":"var(--border, rgba(255,255,255,0.08))",backgroundColor:r&&l?"rgba(124,58,237,0.10)":"transparent"},title:l?"":i?"".concat(e.label," scheduling is a ").concat(d," feature."):"Connect this channel in Setup â Connect Socials to enable scheduling",children:[(0,s.jsx)("input",{type:"checkbox",checked:r&&l,disabled:!l,onChange:t=>{M(a=>{let s=new Set(a);return t.target.checked?s.add(e.key):s.delete(e.key),s})},className:"w-3.5 h-3.5 rounded accent-[#7C3AED]"}),(0,s.jsx)("span",{className:"text-sm",children:e.label}),i?(0,s.jsxs)("a",{href:"/pricing",onClick:e=>e.stopPropagation(),className:"ml-auto text-[10px] font-semibold px-1.5 py-0.5 rounded-full bg-[#7C3AED]/15 text-[#7C3AED] hover:bg-[#7C3AED]/25 whitespace-nowrap",title:"Upgrade to ".concat(d," to schedule ").concat(e.label),children:[d," \xb7 Upgrade â"]}):t?null:(0,s.jsx)("span",{className:"ml-auto text-[10px] opacity-70",children:"Connect to use"})]},e.key)})}),I.has("facebook")&&(0,s.jsxs)("label",{className:"flex items-start gap-2 mt-2 px-3 py-2 rounded-lg border cursor-pointer",style:{borderColor:"rgba(124,58,237,0.30)",backgroundColor:"rgba(124,58,237,0.06)"},children:[(0,s.jsx)("input",{type:"checkbox",checked:T,onChange:e=>z(e.target.checked),className:"w-3.5 h-3.5 rounded accent-[#7C3AED] mt-0.5"}),(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{className:"block text-sm",children:"Also add my affiliate link to Facebook"}),(0,s.jsx)("span",{className:"block text-[11px]",style:{color:"var(--text-faint, rgba(255,255,255,0.5))"},children:"Leads the caption with your product link + disclaimer. Only added when the post has a product link."}),(0,s.jsx)("span",{className:"block text-[11px] mt-1",style:{color:"var(--text-faint, rgba(255,255,255,0.5))"},children:"â Allowed on your own Page (list it in your Amazon Associates account). Just never boost or run paid ads on posts with the link."})]})]})]}),J&&(0,s.jsxs)("div",{className:"rounded-lg border p-3 text-sm",style:{borderColor:"var(--border, rgba(255,255,255,0.08))",backgroundColor:"var(--surface, rgba(255,255,255,0.03))"},children:[(0,s.jsxs)("p",{children:[(0,s.jsx)("span",{className:"font-semibold",children:"Goes live:"})," ",J.dt]}),(0,s.jsxs)("p",{className:"mt-1",children:[(0,s.jsx)("span",{className:"font-semibold",children:"The
1n pushes to:"})," ",(0,s.jsx)("span",{className:0===I.size?"opacity-60":"",children:J.list})]})]})]}),W&&(0,s.jsxs)("div",{className:"px-5 py-3 border-t shrink-0 max-h-44 overflow-y-auto space-y-2",style:{borderColor:"var(--border, rgba(255,255,255,0.08))",backgroundColor:"var(--surface, rgba(255,255,255,0.03))"},children:[(0,s.jsxs)("p",{className:"text-[11px]",style:{color:"var(--text-faint, rgba(255,255,255,0.5))"},children:["Minutes after the blog goes live that each channel fires. Default ",h.E.linkedin," min for all socials."]}),0===I.size&&(0,s.jsx)("p",{className:"text-[11px]",style:{color:"var(--text-faint, rgba(255,255,255,0.5))"},children:"Pick at least one channel above to set its timing."}),y.map(e=>{var t;if(!I.has(e.key))return null;let a=null!=(t=_[e.key])?t:h.E[e.key];return(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"text-sm w-28",children:e.label}),(0,s.jsx)("input",{type:"number",min:0,max:1440,value:a,onChange:t=>{let a=parseInt(t.target.value,10);L(t=>({...t,[e.key]:isNaN(a)?0:a}))},className:"w-20 px-2 py-1 rounded border bg-transparent text-sm",style:{borderColor:"var(--border-bright, rgba(255,255,255,0.14))",color:"var(--text, #F5F5F7)"}}),(0,s.jsx)("span",{className:"text-xs opacity-70",children:"min"})]},e.key)})]}),(0,s.jsxs)("div",{className:"p-5 border-t flex items-center justify-between gap-2 shrink-0",style:{borderColor:"var(--border, rgba(255,255,255,0.08))"},children:[(0,s.jsxs)("button",{type:"button",onClick:()=>O(e=>!e),disabled:Y,title:"Set how many minutes after the blog goes live each social fires",className:"inline-flex items-center gap-1.5 px-3 py-2 rounded-lg text-sm font-medium border transition-colors disabled:opacity-40",style:{borderColor:W?"#7C3AED":"var(--border-bright, rgba(255,255,255,0.14))",backgroundColor:W?"rgba(124,58,237,0.10)":"transparent",color:"var(--text, #F5F5F7)"},children:[(0,s.jsx)(d.A,{size:14}),W?"Hide timing":"Per-channel timing"]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("button",{onClick:N,disabled:Y,className:"px-3 py-2 rounded-lg text-sm font-medium opacity-80 hover:opacity-100 disabled:opacity-40",children:"Cancel"}),(0,s.jsxs)("button",{onClick:function(){let e=new Date(F).getTime();if(isNaN(e))return void r.oR.error("Pick a valid date/time");if(e<=Date.now()+6e4)return void r.oR.error("Pick a time at least 1 minute in the future");let s=[...I].map(e=>({platform:e,offsetMinutes:_[e],bodyText:a.slice(0,280),..."facebook"===e&&T?{includeAffiliateCta:!0}:{}})),l=new Date(F).toISOString(),n=null!=x?x:null,o=R.filter(e=>!!e),i=r.oR.loading(S?'Scheduling social cascade for "'.concat(a.slice(0,40)).concat(a.length>40?"â¦":"",'"â¦'):'Writing "'.concat(a.slice(0,40)).concat(a.length>40?"â¦":"",'" & schedulingâ¦'),{duration:1/0});B(!0),N(),(async()=>{try{var e,a,c;let d=S?{postId:g,scheduledFor:l,socials:s}:{videoId:t,siteId:n,scheduleMode:H,scheduledFor:l,socials:s,includeImages:f},u=await fetch(S?"/api/blog/schedule-cascade-only":"/api/blog/schedule-publish",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(d)}),h=await u.json().catch(()=>({}));if(!u.ok||!h.ok)return void r.oR.error(h.error||"Schedule failed (".concat(u.status,")"),{id:i,duration:8e3});if(h.warning&&r.oR.warning(h.warning),null==(e=h.skippedPlatforms)?void 0:e.length){let e=h.skippedPlatforms.map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(", ");r.oR.warning("".concat(e," skipped â not connected yet"),{description:"Connect it in Connect Socials and itâll be included next time.",duration:8e3})}r.oR.success("Scheduled for ".concat((0,p.W)(new Date(l),{dateStyle:"medium",timeStyle:"short"})),{id:i,duration:6e3});let m=h.wordpressPostId;if(!S&&f&&"number"==typeof m){let e="sch-img-".concat(m);r.oR.loading("Generating in-article images⦠(1-3 min â runs in the background)",{id:e,duration:1/0}),fetch("/api/blog/refresh-images",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({wordpressPostId:m,...o.length?{userImageUrls:o}:{}})}).then(async t=>{let a=await t.json().catch(()=>({}));t.ok&&"number"==typeof a.count&&a.count>0?r.oR.success("Added ".concat(a.count," in-article image").concat(1===a.count?"":"s"," to the scheduled post"),{id:e,duration:5e3}):r.oR.error("".concat(a.error||"Couldnât add in-article images."," Use âAdd imagesâ on the row once itâs live."),{id:e,duration:9e3})}).catch(t=>r.oR.error("".concat(t instanceof Error?t.message:"Image step failed."," Use âAdd imagesâ once itâs live."),{id:e,duration:9e3}))}C({parentScheduleId:null!=(a=h.parentScheduleId)?a:null,childScheduleIds:null!=(c=h.childScheduleIds)?c:[],mode:H,scheduledFor:l})}catch(e){r.oR.error(e instanceof Error?e.message:"Schedule failed",{id:i,duration:8e3})}finally{B(!1)}})()},disabled:Y,className:"px-4 py-2 rounded-lg text-sm font-semibold inline-flex items-center gap-2 bg-gradient-to-r from-[#7C3AED] to-[#5856D6] text-white shadow-md hover:shadow-lg transition-shadow disabled:opacity-60",children:[Y?(0,s.jsx)(u.A,{size:14,className:"animate-spin"}):(0,s.jsx)(i.A,{size:14}),Y?"Schedulingâ¦":"Schedule"]})]})]})]})})}},66630:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(71847).A)("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]])},82158:(e,t,a)=>{a.d(t,{E:()=>s});let s={facebook:5,threads:5,twitter:5,linkedin:5,bluesky:5,telegram:5,pinterest:5}},90368:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(71847).A)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])}}]);
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.