1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./pWb4Sb5l.js","./BzDDHjDY.js"])))=>i.map(i=>d[i]); 2import{_ as O,E as z,a as M,ae as G,b as Y,u as q,aj as B}from"./bkBFTh2e.js";import{_ as Q}from"./DKwiZyJj.js";import{a1 as W,a3 as X}from"./DTMGC8iU.js";import{m as w}from"./Dj48v9FO.js";import{h as j}from"./DlMBofn7.js";import{v as H}from"./D2wd3ysx.js";import{d as $}from"./BzpMVq59.js";import{K as h,O as m,W as f,S as i,a4 as l,a7 as s,Q as u,Z as g,Y as c,X as E,a9 as P,P as K}from"./zy72lt9b.js";import"./BzDDHjDY.js";import"./3iLyiP0y.js";import"./DSBJqnqI.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"fe05495fc0b2a196613b31984dce0ddcac482801"};var e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="1be55337-532b-45fd-848a-cdd8fcd00fa3",t._sentryDebugIdIdentifier="sentry-dbid-1be55337-532b-45fd-848a-cdd8fcd00fa3")}catch{}})();var x={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"bulkCreateThreadsPosts"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"posts"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"BulkThreadsPostSubmissionInput"}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fileName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkCreateThreadsPosts"},arguments:[{kind:"Argument",name:{kind:"Name",value:"posts"},value:{kind:"Variable",name:{kind:"Name",value:"posts"}}},{kind:"Argument",name:{kind:"Name",value:"fileName"},value:{kind:"Variable",name:{kind:"Name",value:"fileName"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"importGroupId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"validationErrors"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"row"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"errors"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:292}};x.loc.source={body:`mutation bulkCreateThreadsPosts( 3 $posts: [BulkThreadsPostSubmissionInput]! 4 $fileName: String! 5) { 6 bulkCreateThreadsPosts(posts: $posts, fileName: $fileName) { 7 success 8 importGroupId 9 validationErrors { 10 row 11 errors { 12 code 13 message 14 } 15 } 16 } 17} 18`,name:"GraphQL request",locationOffset:{line:1,column:1}};function _(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(o){_(o,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(o){_(o,e)}),t.definitions&&t.definitions.forEach(function(o){_(o,e)})}var V={};(function(){x.definitions.forEach(function(e){if(e.name){var n=new Set;_(e,n),V[e.name.value]=n}})})();function N(t,e){for(var n=0;n<t.definitions.length;n++){var o=t.definitions[n];if(o.name&&o.name.value==e)return o}}function Z(t,e){var n={kind:t.kind,definitions:[N(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var o=V[e]||new Set,d=new Set,a=new Set;for(o.forEach(function(p){a.add(p)});a.size>0;){var C=a;
18a=new Set,C.forEach(function(p){if(!d.has(p)){d.add(p);var y=V[p]||new Set;y.forEach(function(S){a.add(S)})}})}return d.forEach(function(p){var y=N(t,p);y&&n.definitions.push(y)}),n}Z(x,"bulkCreateThreadsPosts");const A=/^(\d*)([dh])/,J=500,ee="queue_next",te={name:"ThreadsBulkImport",mixins:[H],setup(){X({title:"Bulk Import Threads Posts"})},data(){return{activeStep:0,file:null,importErrors:[],importErrorRow:-1,csvParseErrors:[],posts:[],selectedPost:null,isValidating:!1,rowsValidated:0,totalRows:0,isSubmitting:!1,importGroup:null,importGroupId:null,thumbnails:null}},methods:{formatDateTime:z,goToStep(t){this.activeStep=t},validateRow(t,e){let n=[];if(t.text&&typeof t.text=="string"&&t.text.length>500&&n.push({code:`invalid-text-${e}`,field:"text",message:"Post text cannot be longer than 500 characters."}),!t.text&&!t.gallery.length&&n.push({code:`invalid-text-${e}`,field:"text",message:"Text or gallery is required."}),t.gallery?.length){const o=t.gallery.map(d=>d.trim().toLowerCase());new Set(o).size!==o.length&&n.push({code:`invalid-gallery-${e}`,field:"gallery",message:"Gallery contains duplicate media."})}if(t.account?this.hasAccountLinked(t.account)||n.push({code:`invalid-account-${e}`,field:"account",message:"Threads account is not linked to this Postpone account."}):n.push({code:`invalid-account-${e}`,field:"account",message:"Threads username is required."}),!t.post_at)n.push({code:`invalid-postAt-${e}`,field:"post_at",message:"Post at date/time is required."});else if(this.isQueueNext(t.post_at)){const o=this.linkedAccount(t.account);if(o&&!o.schedule?.length){const d=this.canManageSchedules?"Set one up in Settings > Account Schedules, or use a date.":"Ask an account admin to set one up, or use a date.";n.push({code:`invalid-postAt-${e}`,field:"post_at",message:`@${t.account} has no schedule. ${d}`})}}else w(t.post_at).isValid()?t.post_at<w()&&n.push({code:`invalid-postAt-${e}`,field:"post_at",message:"Post date/time in the past."}):n.push({code:`invalid-postAt-${e}`,field:"post_at",message:"Post at date/time is not valid (does this date exist?)."});return t.auto_repost&&!t.auto_repost.match(A)&&n.push({code:`invalid-autoRepost-${e}`,field:"auto_repost",message:"Value does not match a format like 3h or 5d."}),t.errors=n,n.length?t.$import=!1:t.$import=!0,n},getRepostAtAmount(t){if(t&&typeof t=="string"){const e=t.toLowerCase().match(A);if(e)return Number(e[1])}return null},getRepostAtUnit(t){if(t&&typeof t=="string"){const e=t.toLowerCase().match(A);if(e)return{h:"hour",d:"day"}[e[2]]}return""},hasAccountLinked(t){return!!this.linkedAccount(t)},linkedAccount(t){const e=String(t||"").trim().toLowerCase();return this.$store.threadsAccounts.find(n=>n.username.toLowerCase()===e)},isQueueNext(t){return String(t||"").trim().toLowerCase()===ee},rowClassSelector(t,e){return t.errors.length>0?"has-errors":""},hasFieldErrors(t,e){return this.fieldErrors(t,e).length},fieldErrors(t,e){return t.filter(n=>n.field===e)},async validatePosts(t){this.rowsValidated=0;let e=[];for(let n=0;n<t.length;n++)try{let o=t[n];if(!o.account)continue;o.$import=!0,o.row=n+1,o.account=o.account.trim().replace("@",""),o.errors=[],o.repostAtAmount=this.getRepostAtAmount(o.auto_repost),o.repostAtUnit=this.getRepostAtUnit(o.auto_repost),o.gallery=o.gallery?o.gallery.split(";").filter(d=>!!d):[],o.threadReply=o.thread_reply,o.gallery.length&&(e=e.concat(o.gallery)),this.validateRow(o,n),this.posts=[...this.posts,o]}catch(o){console.error(o),this.$buefy.toast.open({message:`Row ${n+1} could not be parsed.`,type:"is-warning",duration:5e3})}finally{this.rowsValidated+=1}e.length&&this.fetchThumbnails(e)},onSubmit(){this.isSubmitting=!0,this.goToStep(2);let t=this.postsToImport.map(e=>{const n=this.isQueueNext(e.post_at);return{row:e.row,account:e.account,text:e.text,contentWarning:e.contentWarning,postAt:n?null:w(e.post_at).toDate(),schedulingMode:n?"QUEUE_NEXT":null,repostAtAmount:e.repostAtAmount,repostAtUnit:e.repostAtUnit,gallery:e.gallery,threadId:""}});this.$apollo.mutate({mutation:x,variables:{posts:t,fileName:this.file.name}}).then(e=>{if(e.data.bulkCreateThreadsPosts.success)this.importGroupId=e.data.bulkCreateThreadsPosts.importGroupId,this.$store.getProfile(),this.goToStep(3);
18else if(e.data.bulkCreateThreadsPosts.validationErrors&&e.data.bulkCreateThreadsPosts.validationErrors.length){const n=e.data.bulkCreateThreadsPosts.validationErrors.sort((o,d)=>o.row-d.row);this.importErrors=n}else e.data.bulkCreateThreadsPosts.errors&&e.data.bulkCreateThreadsPosts.errors.length&&j(e.data.bulkCreateThreadsPosts.errors)}).finally(()=>{this.isSubmitting=!1})},startOver(){Object.assign(this.$data,this.$options.data.call(this)),this.clearErrors()},getThumbnail(t){return t=t.trim().toLowerCase(),this.thumbnails&&this.thumbnails[t]},hasThumbnail(t){return!!this.getThumbnail(t)},async fetchThumbnails(t=null){if(t||(t=this.posts.map(({link:o})=>o).filter(o=>o&&!B(o))),t.every(o=>this.hasThumbnail(o)))return;let n=(await this.$apollo.query({query:$,variables:{names:t}})).data.thumbnails.objects.reduce((o,d)=>(o[d.name.trim().toLowerCase()]={thumbnailUrl:d.thumbnailUrl,isImage:d.isImage||d.isGif},o),{});this.thumbnails={...this.thumbnails,...n}}},computed:{...Y(q,["profile"]),canManageSchedules(){return!!this.profile?.canAccessSettingsCustomSchedules},exampleImportDateTime(){return`${w().add(7,"days").format("YYYY-MM-DD")} 10:00`},exampleImportDateLong(){return w().add(7,"days").format("MMMM Do, YYYY")},postsToImport(){return this.posts.filter(t=>t.$import)},rowsWithErrorsCount(){let t=this.posts.filter(e=>e.errors.length>0).length;return t===0?this.importErrors.length:t}},watch:{async file(t,e){this.importErrors=[],this.csvParseErrors=[],this.totalRows=0,this.rowsValidated=0,t&&this.validateField("file",t,"required|ext:csv")&&(this.posts=[],this.isValidating=!0,(await G(async()=>{const{default:d}=await import("./pWb4Sb5l.js").then(a=>a.p);return{default:d}},__vite__mapDeps([0,1]),import.meta.url)).default.parse(this.file,{header:!0,worker:!1,complete:async(d,a)=>{if(this.csvParseErrors=d.errors,this.totalRows=d.data.length,this.totalRows>J){this.$buefy.snackbar.open({message:"Postpone allows uploading a maximum of 500 Threads posts at one time.",type:"is-warning",duration:5e3}),this.isValidating=!1;return}await this.validatePosts(d.data),this.isValidating=!1,this.goToStep(1)}}))}}},se={class:"title"},ie={class:"columns"},oe={class:"column"},ne={class:"field"},re={class:"section"},le={class:"content has-text-centered"},ae={key:0,class:"u-mt2"},de={key:0,class:"u-mt3"},ue={class:"column"},me={class:"card"},fe={class:"card-content"},pe={class:"content"},ge={key:0,class:"has-text-weight-semibold"},ce={key:0,class:"has-text-weight-semibold"},he={key:0,class:"image is-24x24 is-inline-block u-mr1"},be=["src"],ye={key:1,class:"has-text-weight-semibold"},ke={key:0,class:"is-flex is-align-items-center is-flex-gap-xs"},ve={key:2,class:"has-text-weight-semibold"},we={key:0},Se={key:1,class:"has-text-weight-semibold"},Te={key:0,class:"has-text-weight-semibold"},Ee={key:0},_e={key:1},xe={class:"content"},Ce={class:"u-mt1"},Pe={class:"u-mt2"};function Ae(t,e,n,o,d,a){const C=Q,p=h("b-icon"),y=h("b-upload"),S=h("b-field"),k=M,R=h("b-tag"),D=W,T=h("b-step-item"),v=h("b-table-column"),U=h("b-tooltip"),F=h("b-table"),I=h("b-message"),L=h("b-steps");return m(),f("div",null,[i("h1",se,[l(C,{platform:"threads",class:"u-mr1"}),e[2]||(e[2]=s(` Bulk Import Threads 19 Posts 20 `,-1))]),e[67]||(e[67]=s()),e[68]||(e[68]=i("h2",{class:"subtitle"},` 21 Schedule dozens of Threads posts at once by uploading a spreadsheet. 22 `,-1)),e[69]||(e[69]=s()),l(L,{modelValue:d.activeStep,"onUpdate:modelValue":e[1]||(e[1]=r=>d.activeStep=r),type:"is-info",animated:"",rounded:"","has-navigation":!1},{default:u(()=>[l(T,{label:"1. Upload",icon:"file-csv"},{default:u(()=>[e[34]||(e[34]=i("header",{class:"u-mb3 u-mt2"},[i("h3",{class:"title is-5"},"Upload your CSV file"),s(),i("p",{class:"subtitle is-6"},` 23 Upload a CSV file with your Threads posts. 24 `)],-1)),e[35]||(e[35]=s()),i("div",ie,[i("div",oe,[i("div",ne,[l(S,{label:"CSV File",type:t.hasError("file")?"is-danger":"",message:t.getError("file")},{default:u(()=>[l(S,null,{default:u(()=>[l(y,{modelValue:d.file,"onUpdate:modelValue":e[0]||(e[0]=r=>d.file=r),"drag-drop":""},{default:u(()=>[i("section",re,[i("div",le,[l(p,{icon:"file-csv",pack:"fad",size:"is-large"}),e[3]||(e[3]=s()),e[4]||(e[4]=i("span",null,` 25 Drag 'n' drop or click to upload a CSV file 26 `,-1))])])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["type","message"]),e[6]||(e[6]=s()),d.file?(m(),f("div",ae,[l(p,{icon:"file",pack:"fad",size:"is-small"}),e[5]||(e[5]=s()),i("span",null,g(d.file.name),1)])):c("",!0)]),e[8]||(e[8]=s()),d.isValidating?(m(),f("div",de,[l(p,{icon:"sync",size:"is-small",class:"fa-spin"}),e[7]||(e[7]=s(` 27 Validating file... 28 `,-1))])):c("",!0)]),e[33]||(e[33]=s()),i("div",ue,[i("div",me,[i("div",fe,[l(k,{tag:"a",href:"/downloads/threads-import-example.csv","icon-left":"file-download","icon-pack":"far"},{default:u(()=>[...e[9]||(e[9]=[s(` 29 Download CSV File Template 30 `,-1)])]),_:1}),e[28]||(e[28]=s()),e[29]||(e[29]=i("p",{class:"is-size-7 u-mt1"},[s(` 31 Download the CSV template to get started. 32 `),i("strong",null,"Do not alter or remove any column headers.")],-1)),e[30]||(e[30]=s()),e[31]||(e[31]=i("p",{class:"u-mt3"},` 33 The CSV file should contain rows with the following columns, 34 including a header row, in this order: 35 `,-1)),e[32]||(e[32]=s()),i("div",pe,[i("ul",null,[e[18]||(e[18]=i("li",null,[i("strong",null,"account"),s(` - the username of the Threads 36 account to submit the post. 37 `)],-1)),e[19]||(e[19]=s()),e[20]||(e[20]=i("li",null,[i("strong",null,"text"),s(` - the text of your post. Required if 38 you don't include any media. 39 `)],-1)),e[21]||(e[21]=s()),e[22]||(e[22]=i("li",null,[i("strong",null,"gallery"),s(` - the images (up to 4), GIF, or 40 video to submit with your post. Use the names of files 41 from your Content Library, and separate with a semicolon 42 if you include multiple. (e.g. 43 `),i("code",null,"image1.jpg;image2.png"),s(`) 44 `)],-1)),e[23]||(e[23]=s()),i("li",null,[e[12]||(e[12]=i("strong",null,"post_at",-1)),e[13]||(e[13]=s()),l(R,{type:"is-success",size:"is-small"},{default:u(()=>[...e[10]||(e[10]=[s("Updated!",-1)])]),_:1}),e[14]||(e[14]=s(` 45 - the date and time to submit the post in your time zone 46 (e.g. 47 `,-1)),i("code",null,g(a.exampleImportDateTime),1),s(` for 48 `+g(a.exampleImportDateLong)+`). Use 49 `,1),e[15]||(e[15]=i("code",null,"queue_next",-1)),e[16]||(e[16]=s(` to add the post to the next open 50 slot in the 51 `,-1)),l(D,{to:"/settings/custom-schedules"},{default:u(()=>[...e[11]||(e[11]=[s("account's queue",-1)])]),_:1}),e[17]||(e[17]=s(`. 52 `,-1))]),e[24]||(e[24]=s()),e[25]||(e[25]=i("li",null,[i("strong",null,"auto_repost"),s(),i("em",null,"(optional)"),s(` - how 53 long after the post is submitted for Postpone to 54 automatically repost it. Supports values like 55 `),i("code",null,"1d"),s(" (1 day later) or "),i("code",null,"5h"),s(` (5 hours 56 later). Leave this blank to disable auto-reposting.
57 `)],-1)),e[26]||(e[26]=s()),e[27]||(e[27]=i("li",null,[i("strong",null,"thread_reply"),s(),i("em",null,"(optional)"),s(` - the 58 text content for a reply to the post. Leave this blank to 59 not reply to the post. 60 `)],-1))])])])])])])]),_:1}),e[64]||(e[64]=s()),l(T,{label:"2. Review",icon:"file-check"},{default:u(()=>[e[46]||(e[46]=i("header",{class:"u-mb3 u-mt2"},[i("h3",{class:"title is-5"},"Review Your Posts"),s(),i("p",{class:"subtitle is-6"},` 61 If everything looks correct then click Import whenever you're ready. 62 `)],-1)),e[47]||(e[47]=s()),l(k,{type:"is-primary","icon-left":"file-upload",disabled:a.postsToImport.length===0,onClick:a.onSubmit},{default:u(()=>[s(` 63 Import `+g(a.postsToImport.length)+" "+g(t.$filters.pluralize(a.postsToImport.length,"Post")),1)]),_:1},8,["disabled","onClick"]),e[48]||(e[48]=s()),l(k,{"icon-left":"arrow-rotate-left",class:"u-ml1",onClick:a.startOver},{default:u(()=>[...e[36]||(e[36]=[s(` 64 Start Over`,-1)])]),_:1},8,["onClick"]),e[49]||(e[49]=s()),l(F,{data:d.posts,narrowed:"",hoverable:"",class:"u-mt3","row-class":a.rowClassSelector},{default:u(()=>[l(v,{field:"account",label:"Account"},{default:u(r=>[s(` 65 @`+g(r.row.account)+" ",1),a.hasFieldErrors(r.row.errors,"account")?(m(),f("p",ge,[l(p,{icon:"exclamation-triangle",pack:"far",type:"is-danger"}),s(" "+g(a.fieldErrors(r.row.errors,"account")[0].message),1)])):c("",!0)]),_:1}),e[41]||(e[41]=s()),l(v,{field:"text",label:"Text"},{default:u(r=>[s(g(r.row.text)+" ",1),a.hasFieldErrors(r.row.errors,"text")?(m(),f("p",ce,[l(p,{icon:"exclamation-triangle",pack:"far",type:"is-danger"}),s(" "+g(a.fieldErrors(r.row.errors,"text")[0].message),1)])):c("",!0)]),_:1}),e[42]||(e[42]=s()),l(v,{field:"gallery",label:"Gallery"},{default:u(r=>[r.row.gallery.length?(m(!0),f(E,{key:0},P(r.row.gallery,b=>(m(),f("span",{key:b.id},[a.hasThumbnail(b)?(m(),f("figure",he,[i("img",{src:a.getThumbnail(b).thumbnailUrl,class:"is-inline-block",loading:"lazy"},null,8,be)])):(m(),K(U,{key:1,type:"is-dark",label:`No file named ${b} found in your Content Library.`},{default:u(()=>[l(p,{pack:"fas",icon:"exclamation-triangle",type:"is-danger"})]),_:1},8,["label"]))]))),128)):c("",!0),e[37]||(e[37]=s()),a.hasFieldErrors(r.row.errors,"gallery")?(m(),f("p",ye,[l(p,{icon:"exclamation-triangle",pack:"far",type:"is-danger"}),s(" "+g(a.fieldErrors(r.row.errors,"gallery")[0].message),1)])):c("",!0)]),_:1}),e[43]||(e[43]=s()),l(v,{field:"post_at",label:"Scheduled At"},{default:u(r=>[a.isQueueNext(r.row.post_at)?(m(),f("span",ke,[l(p,{icon:"calendar-clock",pack:"far",size:"is-small"}),e[38]||(e[38]=s(` 66 Next open slot 67 `,-1))])):(m(),f(E,{key:1},[s(g(a.formatDateTime(r.row.post_at)),1)],64)),e[39]||(e[39]=s()),a.hasFieldErrors(r.row.errors,"post_at")?(m(),f("p",ve,[l(p,{icon:"exclamation-triangle",pack:"far",type:"is-danger"}),s(" "+g(a.fieldErrors(r.row.errors,"post_at")[0].message),1)])):c("",!0)]),_:1}),e[44]||(e[44]=s()),l(v,{field:"auto_repost",label:"Auto-Repost"},{default:u(r=>[r.row.repostAtAmount&&r.row.repostAtUnit?(m(),f("p",we,g(r.row.repostAtAmount)+" "+g(t.$filters.pluralize(r.row.repostAtAmount,r.row.repostAtUnit))+` 68 later 69 `,1)):c("",!0),e[40]||(e[40]=s()),a.hasFieldErrors(r.row.errors,"auto_repost")?(m(),f("p",Se,[l(p,{icon:"exclamation-triangle",pack:"far",type:"is-danger"}),s(" "+g(a.fieldErrors(r.row.errors,"auto_repost")[0].message),1)])):c("",!0)]),_:1}),e[45]||(e[45]=s()),l(v,{field:"thread_reply",label:"Thread Reply"},{default:u(r=>[s(g(r.row.threadReply)+" ",1),a.hasFieldErrors(r.row.errors,"thread_reply")?(m(),f("p",Te,[l(p,{icon:"exclamation-triangle",pack:"far",type:"is-danger"}),s(" "+g(a.fieldErrors(r.row.errors,"thread_reply")[0].message),1)])):c("",!0)]),_:1})]),_:1},8,["data","row-class"])]),_:1}),e[65]||(e[65]=s()),l(T,{label:"3. Import",icon:"file-upload"},{default:u(()=>[e[54]||(e[54]=i("header",{class:"u-mb3 u-mt2"},[i("h3",{class:"title is-5"},"Importing"),s(),i("p",{class:"subtitle is-6"},` 70 We'll import your posts and display any errors below. 71 `)],-1)),e[55]||(e[55]=s()),d.isSubmitting?(m(),f("div",Ee,[l(p,{icon:"sync",size:"is-small",class:"fa-spin"}),e[50]||(e[50]=s(` 72 Hang tight while we import your posts...
73 `,-1))])):c("",!0),e[56]||(e[56]=s()),d.importErrors.length?(m(),f("div",_e,[l(k,{"icon-left":"arrow-rotate-left",onClick:a.startOver},{default:u(()=>[...e[51]||(e[51]=[s(` 74 Start Over`,-1)])]),_:1},8,["onClick"]),e[53]||(e[53]=s()),l(I,{title:"Import was unsuccessful. The following rows had issues:",type:"is-warning",closable:!1,class:"u-mt2"},{default:u(()=>[(m(!0),f(E,null,P(d.importErrors,r=>(m(),f("div",{key:r.row,class:"u-mb2"},[i("p",null,[i("strong",null,"Row "+g(r.row)+" errors:",1)]),e[52]||(e[52]=s()),i("div",xe,[i("ul",Ce,[(m(!0),f(E,null,P(r.errors,b=>(m(),f("li",{key:`${r.row}-${b.code}`,class:"u-mt1"},g(b.message),1))),128))])])]))),128))]),_:1})])):c("",!0)]),_:1}),e[66]||(e[66]=s()),l(T,{label:"4. Results",icon:"face-party"},{default:u(()=>[e[61]||(e[61]=i("header",{class:"u-mb3 u-mt2"},[i("h3",{class:"title is-5"},"Import Succeeded!")],-1)),e[62]||(e[62]=s()),l(I,{type:"is-success",closable:!1},{default:u(()=>[i("p",null,[i("strong",null,`You successfully imported 75 `+g(a.postsToImport.length)+" posts.",1),e[57]||(e[57]=s(` 76 You can now import more or view your Scheduled Posts. 77 `,-1))])]),_:1}),e[63]||(e[63]=s()),i("div",Pe,[l(k,{tag:"router-link",to:"/scheduled","icon-left":"calendar",class:"u-mr1",type:"is-primary"},{default:u(()=>[...e[58]||(e[58]=[s(` 78 View Scheduled Posts 79 `,-1)])]),_:1}),e[60]||(e[60]=s()),l(k,{"icon-left":"arrow-rotate-left",onClick:a.startOver},{default:u(()=>[...e[59]||(e[59]=[s(` 80 Import More 81 `,-1)])]),_:1},8,["onClick"])])]),_:1})]),_:1},8,["modelValue"])])}const Ge=O(te,[["render",Ae],["__scopeId","data-v-1a169cd1"]]);export{Ge as default};
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.