PageSourceSearch

https://www.postpone.app/_nuxt/BitsGNLq.js

js postpone.app collected 2026-10-02 10:33:49 UTC 27,435 bytes, 92 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DQswyZrm.js","./C-OzLE0_.js"])))=>i.map(i=>d[i]);
2import{_ as R,E as M,an as B,a as z,ae as Y,b as G,u as q,aj as Q,al as h}from"./JX7cFKKt.js";import{_ as j}from"./CgL_A4y7.js";import{$ as W,a1 as X}from"./wamUqNAp.js";import{m as y}from"./nONxPwN9.js";import{h as H}from"./BeZ52qsl.js";import{v as K}from"./BE0H3tBu.js";import{d as Z}from"./C0Xut-fI.js";import{K as k,O as f,W as c,S as i,a4 as a,a7 as t,Q as u,Z as m,Y as g,X as E,a9 as I,P as J}from"./CIEBbpzO.js";import"./C-OzLE0_.js";import"./NMUp8mdr.js";import"./DyoFqzgu.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};s.SENTRY_RELEASE={id:"bb50ab016c9c190fc534363a83213cea92fa47e8"};var e=new s.Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="f657e1c4-1aeb-4109-9b50-cad2d7f634f0",s._sentryDebugIdIdentifier="sentry-dbid-f657e1c4-1aeb-4109-9b50-cad2d7f634f0")}catch{}})();var P={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"bulkCreateTikTokPosts"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"posts"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"BulkTikTokPostInput"}}}},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:"bulkCreateTikTokPosts"},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:279}};P.loc.source={body:`mutation bulkCreateTikTokPosts(
3  $posts: [BulkTikTokPostInput]!
4  $fileName: String!
5) {
6  bulkCreateTikTokPosts(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 C(s,e){if(s.kind==="FragmentSpread")e.add(s.name.value);else if(s.kind==="VariableDefinition"){var r=s.type;r.kind==="NamedType"&&e.add(r.name.value)}s.selectionSet&&s.selectionSet.selections.forEach(function(l){C(l,e)}),s.variableDefinitions&&s.variableDefinitions.forEach(function(l){C(l,e)}),s.definitions&&s.definitions.forEach(function(l){C(l,e)})}var x={};(function(){P.definitions.forEach(function(e){if(e.name){var r=new Set;C(e,r),x[e.name.value]=r}})})();function D(s,e){for(var r=0;r<s.definitions.length;r++){var l=s.definitions[r];if(l.name&&l.name.value==e)return l}}function $(s,e){var r={kind:s.kind,definitions:[D(s,e)]};s.hasOwnProperty("loc")&&(r.loc=s.loc);var l=x[e]||new Set,d=new Set,n=new Set;for(l.forEach(function(p){n.add(p)});n.size>0;){var V=n;
18n=new Set,V.forEach(function(p){if(!d.has(p)){d.add(p);var v=x[p]||new Set;v.forEach(function(T){n.add(T)})}})}return d.forEach(function(p){var v=D(s,p);v&&r.definitions.push(v)}),r}$(P,"bulkCreateTikTokPosts");const ee=500,te="queue_next",se={name:"TikTokBulkImport",mixins:[K],setup(){X({title:"Bulk Import TikTok Posts"})},data(){return{activeStep:0,file:null,importErrors:[],importErrorRow:-1,csvParseErrors:[],posts:[],isValidating:!1,rowsValidated:0,totalRows:0,isSubmitting:!1,importGroup:null,importGroupId:null,thumbnails:null,privacyLevelOptions:{private:"SELF_ONLY",friends:"MUTUAL_FOLLOW_FRIENDS",public:"PUBLIC_TO_EVERYONE"}}},methods:{formatBoolean:B,formatDateTime:M,goToStep(s){this.activeStep=s},validateRow(s,e){let r=[];if(s.caption&&typeof s.caption=="string"&&s.caption.length>2200&&r.push({code:`invalid-caption-${e}`,field:"caption",message:"Caption cannot be longer than 2200 characters."}),s.description&&typeof s.description=="string"&&s.description.length>4e3&&r.push({code:`invalid-description-${e}`,field:"description",message:"Description cannot be longer than 4000 characters."}),!s.gallery&&!s.media&&r.push({code:`invalid-gallery-${e}`,field:"gallery",message:"Gallery is required for TikTok posts."}),s.gallery?.length){const l=s.gallery.map(d=>d.trim().toLowerCase());new Set(l).size!==l.length&&r.push({code:`invalid-gallery-${e}`,field:"gallery",message:"Gallery contains duplicate media."})}if(s.account?this.hasAccountLinked(s.account)||r.push({code:`invalid-account-${e}`,field:"account",message:"TikTok account is not linked to this Postpone account."}):r.push({code:`invalid-account-${e}`,field:"account",message:"TikTok account is required."}),!s.post_at)r.push({code:`invalid-postAt-${e}`,field:"post_at",message:"Post at date/time is required."});else if(this.isQueueNext(s.post_at)){const l=this.getTikTokAccount(s.account);if(l&&!l.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.";r.push({code:`invalid-postAt-${e}`,field:"post_at",message:`@${s.account} has no schedule. ${d}`})}}else y(s.post_at).isValid()?y(s.post_at)<y()&&r.push({code:`invalid-postAt-${e}`,field:"post_at",message:"Post date/time in the past."}):r.push({code:`invalid-postAt-${e}`,field:"post_at",message:"Post at date/time is not valid (does this date exist?)."});return typeof s.is_brand_content!="boolean"&&r.push({code:`invalid-isBrandContent-${e}`,field:"is_brand_content",message:"Must be true or false."}),typeof s.is_paid_partnership!="boolean"&&r.push({code:`invalid-isPaidPartnership-${e}`,field:"is_paid_partnership",message:"Must be true or false."}),s.privacy_level!==void 0&&(s.privacy_level=s.privacy_level.toLowerCase(),Object.keys(this.privacyLevelOptions).includes(s.privacy_level)||r.push({code:`invalid-privacyLevel-${e}`,field:"privacy_level",message:"Invalid option."})),s.allow_users_to_comment!==void 0&&typeof s.allow_users_to_comment!="boolean"&&r.push({code:`invalid-allowUsersToComment-${e}`,field:"allow_users_to_comment",message:"Must be true or false."}),s.allow_users_to_duet!==void 0&&typeof s.allow_users_to_duet!="boolean"&&r.push({code:`invalid-allowUsersToDuet-${e}`,field:"allow_users_to_duet",message:"Must be true or false."}),s.allow_users_to_stitch!==void 0&&typeof s.allow_users_to_stitch!="boolean"&&r.push({code:`invalid-allowUsersToStitch-${e}`,field:"allow_users_to_stitch",message:"Must be true or false."}),s.errors=r,r.length?s.$import=!1:s.$import=!0,r},hasAccountLinked(s){return!!this.getTikTokAccount(s)},isQueueNext(s){return String(s||"").trim().toLowerCase()===te},rowClassSelector(s,e){return s.errors.length>0?"has-errors":""},hasFieldErrors(s,e){return this.fieldErrors(s,e).length},fieldErrors(s,e){return s.filter(r=>r.field===e)},async validatePosts(s){this.rowsValidated=0;let e=[];for(let r=0;r<s.length;r++)try{let l=s[r];if(!l.account)continue;this.setOptionalFieldsDefaults(l),l.is_brand_content!==void 0&&(l.is_brand_content=h(l.is_brand_content)),l.is_brand_content!==void 0&&(l.is_paid_partnership=h(l.is_paid_partnership)),l.allow_users_to_comment=h(l.allow_users_to_comment),l.allow_users_to_duet=h(l.allow_users_to_duet),l.allow_users_to_stitch=h(l.allow_users_to_stitch),l.auto_add_music=h(l.auto_add_music),l.$import=!0,l.row=r+1,l.account=l.account.trim().replace("@",""),l.errors=[],l.media?(l.gallery=[l.media],delete l.media):l.gallery=l.gallery?l.gallery.split(";").filter(d=>!!d):[],l.gallery.length&&(e=e.concat(l.gallery)),this.validateRow(l,r),this.posts=[...this.posts,l]}
18catch(l){console.error(l),this.$buefy.toast.open({message:`Row ${r+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 s=this.postsToImport.map(e=>{const r=this.isQueueNext(e.post_at);return{row:e.row,account:e.account,caption:e.caption,description:e.description,gallery:e.gallery,postAt:r?null:y(e.post_at).toDate(),schedulingMode:r?"QUEUE_NEXT":null,isBrandContent:e.is_brand_content,isPaidPartnership:e.is_paid_partnership,privacyLevel:this.privacyLevelOptions[e.privacy_level],allowUsersToComment:e.allow_users_to_comment,allowUsersToDuet:e.allow_users_to_duet,allowUsersToStitch:e.allow_users_to_stitch,autoAddMusic:e.auto_add_music}});this.$apollo.mutate({mutation:P,variables:{posts:s,fileName:this.file.name}}).then(e=>{if(e.data.bulkCreateTikTokPosts.success)this.importGroupId=e.data.bulkCreateTikTokPosts.importGroupId,this.$store.getProfile(),this.goToStep(3);else if(e.data.bulkCreateTikTokPosts.validationErrors&&e.data.bulkCreateTikTokPosts.validationErrors.length){const r=e.data.bulkCreateTikTokPosts.validationErrors.sort((l,d)=>l.row-d.row);this.importErrors=r}else e.data.bulkCreateTikTokPosts.errors&&e.data.bulkCreateTikTokPosts.errors.length&&H(e.data.bulkCreateTikTokPosts.errors)}).finally(()=>{this.isSubmitting=!1})},startOver(){Object.assign(this.$data,this.$options.data.call(this)),this.clearErrors()},getThumbnail(s){return s=s.trim().toLowerCase(),this.thumbnails&&this.thumbnails[s]},hasThumbnail(s){return!!this.getThumbnail(s)},async fetchThumbnails(s=null){if(s||(s=this.posts.map(({link:l})=>l).filter(l=>l&&!Q(l))),s.every(l=>this.hasThumbnail(l)))return;let r=(await this.$apollo.query({query:Z,variables:{names:s}})).data.thumbnails.objects.reduce((l,d)=>(l[d.name.trim().toLowerCase()]={thumbnailUrl:d.thumbnailUrl,isImage:d.isImage||d.isGif},l),{});this.thumbnails={...this.thumbnails,...r}},setOptionalFieldsDefaults(s){const e=this.getTikTokAccount(s.account)?.postSettings;if(e){if(s.privacy_level===void 0){const r=Object.keys(this.privacyLevelOptions).find(l=>this.privacyLevelOptions[l]===e.privacyLevel);s.privacy_level=r||"public"}s.allow_users_to_comment===void 0&&(s.allow_users_to_comment=e.allowUsersToComment||!1),s.allow_users_to_duet===void 0&&(s.allow_users_to_duet=e.allowUsersToDuet||!1),s.allow_users_to_stitch===void 0&&(s.allow_users_to_stitch=e.allowUsersToStitch||!1)}},getTikTokAccount(s){const e=String(s||"").trim().replace("@","").toLowerCase();return this.$store.tiktokAccounts.find(r=>r.username.toLowerCase()===e)}},computed:{...G(q,["profile"]),canManageSchedules(){return!!this.profile?.canAccessSettingsCustomSchedules},exampleImportDateTime(){return`${y().add(7,"days").format("YYYY-MM-DD")} 10:00`},exampleImportDateLong(){return y().add(7,"days").format("MMMM Do, YYYY")},postsToImport(){return this.posts.filter(s=>s.$import)},rowsWithErrorsCount(){let s=this.posts.filter(e=>e.errors.length>0).length;return s===0?this.importErrors.length:s}},watch:{async file(s,e){this.importErrors=[],this.csvParseErrors=[],this.totalRows=0,this.rowsValidated=0,s&&this.validateField("file",s,"required|ext:csv")&&(this.posts=[],this.isValidating=!0,(await Y(async()=>{const{default:d}=await import("./DQswyZrm.js").then(n=>n.p);return{default:d}},__vite__mapDeps([0,1]),import.meta.url)).default.parse(this.file,{header:!0,worker:!1,complete:async(d,n)=>{if(this.csvParseErrors=d.errors,this.totalRows=d.data.length,this.totalRows>ee){this.$buefy.snackbar.open({message:"Postpone allows uploading a maximum of 500 TikTok posts at one time.",type:"is-warning",duration:5e3}),this.isValidating=!1;return}await this.validatePosts(d.data),this.isValidating=!1,this.goToStep(1)}}))}}},ie={class:"title"},le={class:"columns"},oe={class:"column"},re={class:"field"},ne={class:"section"},ae={class:"content has-text-centered"},de={key:0,class:"u-mt2"},ue={key:0,class:"u-mt3"},me={class:"column"},fe={class:"card"},pe={class:"card-content"},ce={class:"content"},ge={key:0,class:"has-text-weight-semibold"},_e={key:0,class:"has-text-weight-semibold"},ke={key:0,class:"has-text-weight-semibold"},we={key:0,class:"image is-24x24 is-inline-block u-mr1"},ve=["src"],be={key:1,class:"has-text-weight-semibold"},he={key:0,class:"is-flex is-align-items-center is-flex-gap-xs"},ye={key:2,class:"has-text-weight-semibold"},Te={key:0,class:"has-text-weight-semibold"},Se={key:0,class:"has-text-weight-semibold"},Ee={key:0,class:"has-text-weight-semibold"},Ce={key:0,class:"has-text-weight-semibold"},Pe={key:0,class:"has-text-weight-semibold"},Ve={key:0,class:"has-text-weight-semibold"},Ie={key:0,class:"has-text-weight-semibold"},xe={key:0},Ne={key:1},De={class:"content"},Oe={class:"u-mt1"},Le={class:"u-mt2"};function Fe(s,e,r,l,d,n){const V=j,p=k("b-icon"),v=k("b-upload"),T=k("b-field"),b=z,O=k("b-tag"),L=W,S=k("b-step-item"),_=k("b-table-column"),F=k("b-tooltip"),U=k("b-table"),N=k("b-message"),A=k("b-steps");return f(),c("div",null,[i("h1",ie,[a(V,{platform:"tiktok",class:"u-mr1"}),e[2]||(e[2]=t(` Bulk Import TikTok Posts
19    `,-1))]),e[84]||(e[84]=t()),e[85]||(e[85]=i("h2",{class:"subtitle"},`
20      Schedule dozens of TikTok posts at once by uploading a spreadsheet.
21    `,-1)),e[86]||(e[86]=t()),a(A,{modelValue:d.activeStep,"onUpdate:modelValue":e[1]||(e[1]=o=>d.activeStep=o),type:"is-info",animated:"",rounded:"","has-navigation":!1},{default:u(()=>[a(S,{label:"1. Upload",icon:"file-csv"},{default:u(()=>[e[46]||(e[46]=i("header",{class:"u-mb3 u-mt2"},[i("h3",{class:"title is-5"}
21,"Upload your CSV file"),t(),i("p",{class:"subtitle is-6"},"Upload a CSV file with your posts.")],-1)),e[47]||(e[47]=t()),i("div",le,[i("div",oe,[i("div",re,[a(T,{label:"CSV File",type:s.hasError("file")?"is-danger":"",message:s.getError("file")},{default:u(()=>[a(T,null,{default:u(()=>[a(v,{modelValue:d.file,"onUpdate:modelValue":e[0]||(e[0]=o=>d.file=o),"drag-drop":""},{default:u(()=>[i("section",ne,[i("div",ae,[a(p,{icon:"file-csv",pack:"fad",size:"is-large"}),e[3]||(e[3]=t()),e[4]||(e[4]=i("span",null,`
22                          Drag 'n' drop or click to upload a CSV file
23                        `,-1))])])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["type","message"]),e[6]||(e[6]=t()),d.file?(f(),c("div",de,[a(p,{icon:"file",pack:"fad",size:"is-small"}),e[5]||(e[5]=t()),i("span",null,m(d.file.name),1)])):g("",!0)]),e[8]||(e[8]=t()),d.isValidating?(f(),c("div",ue,[a(p,{icon:"sync",size:"is-small",class:"fa-spin"}),e[7]||(e[7]=t(`
24              Validating file...
25            `,-1))])):g("",!0)]),e[45]||(e[45]=t()),i("div",me,[i("div",fe,[i("div",pe,[a(b,{tag:"a",href:"/downloads/tiktok-import-example.csv","icon-left":"file-download","icon-pack":"far"},{default:u(()=>[...e[9]||(e[9]=[t(`
26                  Download CSV File Template
27                `,-1)])]),_:1}),e[40]||(e[40]=t()),e[41]||(e[41]=i("p",{class:"is-size-7 u-mt1"},[t(`
28                  Download the CSV template to get started.
29                  `),i("strong",null,"Do not alter or remove any column headers.")],-1)),e[42]||(e[42]=t()),e[43]||(e[43]=i("p",{class:"u-mt3"},`
30                  The CSV file should contain rows with the following columns,
31                  including a header row, in this order:
32                `,-1)),e[44]||(e[44]=t()),i("div",ce,[i("ul",null,[e[18]||(e[18]=i("li",null,[i("strong",null,"account"),t(` - the name of the TikTok account
33                      to submit the post.
34                    `)],-1)),e[19]||(e[19]=t()),e[20]||(e[20]=i("li",null,[i("strong",null,"caption"),t(` - the caption of your post (video
35                      posts only).
36                    `)],-1)),e[21]||(e[21]=t()),e[22]||(e[22]=i("li",null,[i("strong",null,"description"),t(` - the description of your
37                      post (photo posts only).
38                    `)],-1)),e[23]||(e[23]=t()),e[24]||(e[24]=i("li",null,[i("strong",null,"gallery"),t(` - the video or images to submit
39                      with your post. Use the names of files from your Content
40                      Library, and separate with a semicolon if you include
41                      multiple. (e.g. `),i("code",null,"image1.jpg;image2.jpg"),t(`)
42                    `)],-1)),e[25]||(e[25]=t()),i("li",null,[e[12]||(e[12]=i("strong",null,"post_at",-1)),e[13]||(e[13]=t()),a(O,{type:"is-success",size:"is-small"},{default:u(()=>[...e[10]||(e[10]=[t("Updated!",-1)])]),_:1}),e[14]||(e[14]=t(`
43                      - the date and time to submit the post in your time zone
44                      (e.g.
45                      `,-1)),i("code",null,m(n.exampleImportDateTime),1),t(` for
46                      `+m(n.exampleImportDateLong)+`, 10:00 AM). Use
47                      `,1),e[15]||(e[15]=i("code",null,"queue_next",-1)),e[16]||(e[16]=t(` to add the post to the next open
48                      slot in the
49                      `,-1)),a(L,{to:"/settings/custom-schedules"},{default:u(()=>[...e[11]||(e[11]=[t("account's queue",-1)])]),_:1}),e[17]||(e[17]=t(`.
50                    `,-1))]),e[26]||(e[26]=t()),e[27]||(e[27]=i("li",null,[i("strong",null,"is_brand_content"),t(` - whether the video is
51                      promoting the creator's own business. Options:
52                      `),i("code",null,"true"),t(" or "),i("code",null,"false"),t(`.
53                    `)],-1)),e[28]||(e[28]=t()),e[29]||(e[29]=i("li",null,[i("strong",null,"is_paid_partnership"),t(` - whether the video
54                      is in paid partnership for promoting third-party business.
55                      Options: `),i("code",null,"true"),t(" or "),i("code",null,"false"),t(`.
56                    `)],-1)),e[30]||(e[30]=t()),e[31]||(e[31]=i("li",null,[i("strong",null,"privacy_level"),t(` - the privacy level of the
57                      video. Options: `),i("code",null,"private"),t(`,
58                      `),i("code",null,"friends"),t(" and "),i("code",null,"public"),t(` (default).
59                    `)],-1)),e[32]||(e[32]=t()),e[33]||(e[33]=i("li",null,[i("strong",null,"allow_users_to_comment"),t(` - whether users
60                      can comment in the video. Options: `),i("code",null,"true"),t(` or
61                      `),i("code",null,"false"),t(` (default).
62                    `)],-1)),e[34]||(e[34]=t()),e[35]||(e[35]=i("li",null,[i("strong",null,"allow_users_to_duet"),t(` - whether users can
63                      duet with the video. Options: `),i("code",null,"true"),t(` or
64                      `),i("code",null,"false"),t(` (default).
65                    `)],-1)),e[36]||(e[36]=t()),e[37]||(e[37]=i("li",null,[i("strong",null,"allow_users_to_stitch"),t(` - whether users can
66                      stitch with the video. Options: `),i("code",null,"true"),t(` or
67                      `),i("code",null,"false"),t(` (default).
68                    `)],-1)),e[38]||(e[38]=t()),e[39]||(e[39]=i("li",null,[i("strong",null,"auto_add_music"),t(` - whether TikTok should
69                      automatically add recommended music to the post (photo
70                      posts only). Options: `),i("code",null,"true"),t(` or
71                      `),i("code",null,"false"),t(` (default).
72                    `)],-1))])])])])])])]),_:1}),e[81]||(e[81]=t()),a(S,{label:"2. Review",icon:"file-check"},{default:u(()=>[e[63]||(e[63]=i("header",{class:"u-mb3 u-mt2"},[i("h3",{class:"title is-5"},"Review Your Posts"),t(),i("p",{class:"subtitle is-6"},`
73            If everything looks correct then click Import whenever you're ready.
74            Rows with errors will be skipped.
75          `)],-1)),e[64]||(e[64]=t()),a(b,{type:"is-primary","icon-left":"file-upload",disabled:n.postsToImport.length===0,onClick:n.onSubmit},{default:u(()=>[t(`
76          Import `+m(n.postsToImport.length)+" "+m(s.$filters.pluralize(n.postsToImport.length,"Post")),1)]),_:1},8,["disabled","onClick"]),e[65]||(e[65]=t()),a(b,{"icon-left":"arrow-rotate-left",class:"u-ml1",onClick:n.startOver},{default:u(()=>[...e[48]||(e[48]=[t(`
77          Start Over`,-1)])]),_:1},8,["onClick"]),e[66]||(e[66]=t()),a(U,{data:d.posts,narrowed:"",hoverable:"",class:"u-mt3","row-class":n.rowClassSelector},{default:u(()=>[a(_,{field:"account",label:"Account"},{default:u(o=>[t(`
78            @`+m(o.row.account)+" ",1),n.hasFieldErrors(o.row.errors,"account")?(f(),c("p",ge,[a(p,{icon:"exclamation-triangle",pack:"far",type:"is-danger"}),t(" "+m(n.fieldErrors(o.row.errors,"account")[0].message),1)])):g("",!0)]),_:1}),e[52]||(e[52]=t()),a(_,{field:"caption",label:"Caption"},{default:u(o=>[t(m(o.row.caption)+" ",1),n.hasFieldErrors(o.row.errors,"caption")?(f(),c("p",_e,[a(p,{icon:"exclamation-triangle",pack:"far",type:"is-danger"}),t(" "+m(n.fieldErrors(o.row.errors,"caption")[0].message),1)])):g("",!0)]),_:1}),e[53]||(e[53]=t()),a(_,{field:"description",label:"Description"},{default:u(o=>[t(m(o.row.description)+" ",1),n.hasFieldErrors(o.row.errors,"description")?(f(),c("p",ke,[a(p,{icon:"exclamation-triangle",pack:"far",type:"is-danger"}),t(" "+m(n.fieldErrors(o.row.errors,"description")[0].message),1)])):g("",!0)]),_:1}),e[54]||(e[54]=t()),a(_,{field:"gallery",label:"Gallery"},{default:u(o=>[o.row.gallery.length?(f(!0),c(E,{key:0},I(o.row.gallery,w=>(f(),c("span",{key:w.id},[n.hasThumbnail(w)?(f(),c("figure",we,[i("img",{src:n.getThumbnail(w).thumbnailUrl,class:"is-inline-block",loading:"lazy"},null,8,ve)])):(f(),J(F,{key:1,type:"is-dark",label:`No file named ${w} found in your Content Library.`},{default:u(()=>[a(p,{pack:"fas",icon:"exclamation-triangle",type:"is-danger"})]),_:1},8,["label"]))]))),128)):g("",!0),e[49]||(e[49]=t()),n.hasFieldErrors(o.row.errors,"gallery")?(f(),c("p",be,[a(p,{icon:"exclamation-triangle",pack:"far",type:"is-danger"}),t(" "+m(n.fieldErrors(o.row.errors,"gallery")[0].message),1)])):g("",!0)]),_:1}),e[55]||(e[55]=t()),a(_,{field:"post_at",label:"Scheduled At"},{default:u(o=>[n.isQueueNext(o.row.post_at)?(f(),c("span",he,[a(p,{icon:"calendar-clock",pack:"far",size:"is-small"}),e[50]||(e[50]=t(`
79              Next open slot
80            `,-1))])):(f(),c(E,{key:1}
80,[t(m(n.formatDateTime(o.row.post_at)),1)],64)),e[51]||(e[51]=t()),n.hasFieldErrors(o.row.errors,"post_at")?(f(),c("p",ye,[a(p,{icon:"exclamation-triangle",pack:"far",type:"is-danger"}),t(" "+m(n.fieldErrors(o.row.errors,"post_at")[0].message),1)])):g("",!0)]),_:1}),e[56]||(e[56]=t()),a(_,{field:"is_brand_content",label:"Own Brand"},{default:u(o=>[t(m(n.formatBoolean(o.row.is_brand_content))+" ",1),n.hasFieldErrors(o.row.errors,"is_brand_content")?(f(),c("p",Te,[a(p,{icon:"exclamation-triangle",pack:"far",type:"is-danger"}),t(" "+m(n.fieldErrors(o.row.errors,"is_brand_content")[0].message),1)])):g("",!0)]),_:1}),e[57]||(e[57]=t()),a(_,{field:"is_paid_partnership",label:"3rd Party Brand"},{default:u(o=>[t(m(n.formatBoolean(o.row.is_paid_partnership))+" ",1),n.hasFieldErrors(o.row.errors,"is_paid_partnership")?(f(),c("p",Se,[a(p,{icon:"exclamation-triangle",pack:"far",type:"is-danger"}),t(" "+m(n.fieldErrors(o.row.errors,"is_paid_partnership")[0].message),1)])):g("",!0)]),_:1}),e[58]||(e[58]=t()),a(_,{field:"privacy_level",label:"Privacy"},{default:u(o=>
80[t(m(s.$filters.capitalize(o.row.privacy_level))+" ",1),n.hasFieldErrors(o.row.errors,"privacy_level")?(f(),c("p",Ee,[a(p,{icon:"exclamation-triangle",pack:"far",type:"is-danger"}),t(" "+m(n.fieldErrors(o.row.errors,"privacy_level")[0].message),1)])):g("",!0)]),_:1}),e[59]||(e[59]=t()),a(_,{field:"allow_users_to_comment",label:"Comments"},{default:u(o=>[t(m(n.formatBoolean(o.row.allow_users_to_comment))+" ",1),n.hasFieldErrors(o.row.errors,"allow_users_to_comment")?(f(),c("p",Ce,[a(p,{icon:"exclamation-triangle",pack:"far",type:"is-danger"}),t(" "+m(n.fieldErrors(o.row.errors,"allow_users_to_comment")[0].message),1)])):g("",!0)]),_:1}),e[60]||(e[60]=t()),a(_,{field:"allow_users_to_duet",label:"Duet"},{default:u(o=>[t(m(n.formatBoolean(o.row.allow_users_to_duet))+" ",1),n.hasFieldErrors(o.row.errors,"allow_users_to_duet")?(f(),c("p",Pe,[a(p,{icon:"exclamation-triangle",pack:"far",type:"is-danger"}),t(" "+m(n.fieldErrors(o.row.errors,"allow_users_to_duet")[0].message),1)])):g("",!0)]),_:1}),e[61]||(e[61]=t()),a(_,{field:"allow_users_to_stitch",label:"Stitch"},{default:u(o=>[t(m(n.formatBoolean(o.row.allow_users_to_stitch))+" ",1),n.hasFieldErrors(o.row.errors,"allow_users_to_stitch")?(f(),c("p",Ve,[a(p,{icon:"exclamation-triangle",pack:"far",type:"is-danger"}),t(" "+m(n.fieldErrors(o.row.errors,"allow_users_to_stitch")[0].message),1)])):g("",!0)]),_:1}),e[62]||(e[62]=t()),a(_,{field:"auto_add_music",label:"Auto Add Music"},{default:u(o=>[t(m(n.formatBoolean(o.row.auto_add_music))+" ",1),n.hasFieldErrors(o.row.errors,"auto_add_music")?(f(),c("p",Ie,[a(p,{icon:"exclamation-triangle",pack:"far",type:"is-danger"}),t(" "+m(n.fieldErrors(o.row.errors,"auto_add_music")[0].message),1)])):g("",!0)]),_:1})]),_:1},8,["data","row-class"])]),_:1}),e[82]||(e[82]=t()),a(S,{label:"3. Import",icon:"file-upload"},{default:u(()=>[e[71]||(e[71]=i("header",{class:"u-mb3 u-mt2"},[i("h3",{class:"title is-5"},"Importing"),t(),i("p",{class:"subtitle is-6"},`
81            We'll import your posts and display any errors below.
82          `)],-1)),e[72]||(e[72]=t()),d.isSubmitting?(f(),c("div",xe,[a(p,{icon:"sync",size:"is-small",class:"fa-spin"}),e[67]||(e[67]=t(`
83          Hang tight while we import your posts...
84        `,-1))])):g("",!0),e[73]||(e[73]=t()),d.importErrors.length?(f(),c("div",Ne,[a(b,{"icon-left":"arrow-rotate-left",onClick:n.startOver},{default:u(()=>[...e[68]||(e[68]=[t(`
85            Start Over`,-1)])]),_:1},8,["onClick"]),e[70]||(e[70]=t()),a(N,{title:"Import was unsuccessful. The following rows had issues:",type:"is-warning",closable:!1,class:"u-mt2"},{default:u(()=>[(f(!0),c(E,null,I(d.importErrors,o=>(f(),c("div",{key:o.row,class:"u-mb2"},[i("p",null,[i("strong",null,"Row "+m(o.row)+" errors:",1)]),e[69]||(e[69]=t()),i("div",De,[i("ul",Oe,[(f(!0),c(E,null,I(o.errors,w=>(f(),c("li",{key:`${o.row}-${w.code}`,class:"u-mt1"},m(w.message),1))),128))])])]))),128))]),_:1})])):g("",!0)]),_:1}),e[83]||(e[83]=t()),a(S,{label:"4. Results",icon:"face-party"},{default:u(()=>[e[78]||(e[78]=i("header",{class:"u-mb3 u-mt2"},[i("h3",{class:"title is-5"},"Import Succeeded!")],-1)),e[79]||(e[79]=t()),a(N,{type:"is-success",closable:!1},{default:u(()=>[i("p",null,[i("strong",null,`You successfully imported
86              `+m(n.postsToImport.length)+" posts.",1),e[74]||(e[74]=t(`
87            You can now import more or view your Scheduled Posts.
88          `,-1))])]),_:1}),e[80]||(e[80]=t()),i("div",Le,[a(b,{tag:"router-link",to:"/scheduled","icon-left":"calendar",class:"u-mr1",type:"is-primary"},{default:u(()=>[...e[75]||(e[75]=[t(`
89            View Scheduled Posts
90          `,-1)])]),_:1}),e[77]||(e[77]=t()),a(b,{"icon-left":"arrow-rotate-left",onClick:n.startOver},{default:u(()=>[...e[76]||(e[76]=[t(`
91            Import More
92          `,-1)])]),_:1},8,["onClick"])])]),_:1})]),_:1},8,["modelValue"])])}const We=R(se,[["render",Fe],["__scopeId","data-v-908122cf"]]);export{We 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.