import{B as T,l as I,c as E,a as c,u as e,b as l,i as r,e as d,F as k,g as x,o,Z as D,D as i,_ as n}from"./app-13978987.js";import{_ as O}from"./BlankLayout-f1c982d8.js";import R from"./PlatformCard-a98eb650.js";import{u as L}from"./publishAssetStore-a725f363.js";import{u as $}from"./publishStore-a6d0eb83.js";import w from"./Sidebar-771d604e.js";import B from"./TopHeader-c0bdee3c.js";import"./SeoMeta-91cb18dc.js";import"./ToastrContainer-82d03ccc.js";import"./HollowDotsSpinner-aede4138.js";import"./TabButton-025f537d.js";import"./moment-a9aaa855.js";import"./SpinnerBtn-cb152833.js";import"./Modal-17c50704.js";const C={class:"flex min-h-screen"},S={class:"h-screen w-full overflow-y-auto px-3 lg:px-6"},N={class:"gra mt-2 grid grid-cols-1 gap-y-8 lg:h-[calc(100%-6rem)] lg:grid-cols-12 lg:gap-x-8"},F={class:"card styled-scrollbar col-span-5 h-full overflow-y-auto rounded-2xl p-5"},j={class:"styled-scrollbar h-100 col-span-7 overflow-y-auto rounded-2xl bg-secondary-100 py-10 shadow-lg dark:bg-secondary-800/30"},M=x({layout:O}),oe=Object.assign(M,{__name:"Index",props:["content","uploadedAssetImages","generatedAssetImages","uploadedAssetVideos","generatedAssetVideos","designs","userPlatforms","platforms","isVideoPromptActive"],setup(t){const m=$(),f=L(),{getTabState:a}=T(m),s=t;I(()=>{m.$reset(),m.$patch({userPlatforms:s.userPlatforms,platforms:s.platforms,platformTab:s.platforms[0]??"facebook"}),m.setOriginalContent(s.content),f.setAssets(s.generatedAssetImages,s.uploadedAssetImages,s.generatedAssetVideos,s.uploadedAssetVideos)});const A=i(()=>n(()=>import("./ConnectTab-598995a9.js"),["assets/ConnectTab-598995a9.js","assets/app-13978987.js","assets/app-e969cddd.css","assets/CreatePostCard-92b6d387.js","assets/publishStore-a6d0eb83.js"])),v=i(()=>n(()=>import("./InputTab-3bdd09d9.js"),["assets/InputTab-3bdd09d9.js","assets/app-13978987.js","assets/app-e969cddd.css","assets/publishStore-a6d0eb83.js"])),V=i(()=>n(()=>import("./TextTab-a3942453.js"),["assets/TextTab-a3942453.js","assets/app-13978987.js","assets/app-e969cddd.css","assets/publishStore-a6d0eb83.js"])),b=i(()=>n(()=>import("./ImagesTab-89acd67e.js"),["assets/ImagesTab-89acd67e.js","assets/app-13978987.js","assets/app-e969cddd.css","assets/CreatePostCard-92b6d387.js","assets/HollowDotsSpinner-aede4138.js","assets/IntersectionObserver-6d2f0926.js","assets/publishStore-a6d0eb83.js","assets/publishAssetStore-a725f363.js"])),y=i(()=>n(()=>import("./VideosTab-d6327a40.js"),["assets/VideosTab-d6327a40.js","assets/app-13978987.js","assets/app-e969cddd.css","assets/IntersectionObserver-6d2f0926.js","assets/HollowDotsSpinner-aede4138.js","assets/CreatePostCard-92b6d387.js","assets/publishStore-a6d0eb83.js","assets/publishAssetStore-a725f363.js"])),P=i(()=>n(()=>import("./DesignTab-57c504b5.js"),["assets/DesignTab-57c504b5.js","assets/app-13978987.js","assets/app-e969cddd.css","assets/HollowDotsSpinner-aede4138.js","assets/publishStore-a6d0eb83.js","assets/fabric-1ff51d4a.js","assets/designStore-f93d210d.js","assets/multiselect-4ccf8c7b.js"]));return(h,Z)=>{var u,_,p,g;return o(),E(k,null,[c(e(D),{title:h.trans("Publish")},null,8,["title"]),l("div",C,[c(w),l("div",S,[c(B),l("div",N,[l("div",F,[e(a)("designs")?(o(),r(e(P),{key:0,designs:t.designs},null,8,["designs"])):d("",!0),e(a)("input")?(o(),r(e(v),{key:1})):d("",!0),e(a)("text")?(o(),r(e(V),{key:2})):d("",!0),e(a)("images")?(o(),r(e(b),{key:3,"uploaded-asset-images":(u=t.uploadedAssetImages)==null?void 0:u.data,"generated-asset-images":(_=t.generatedAssetImages)==null?void 0:_.data},null,8,["uploaded-asset-images","generated-asset-images"])):d("",!0),e(a)("videos")?(o(),r(e(y),{key:4,"generated-videos":(p=t.generatedAssetVideos)==null?void 0:p.data,"uploaded-videos":(g=t.uploadedAssetVideos)==null?void 0:g.data,isVideoPromptActive:t.isVideoPromptActive},null,8,["generated-videos","uploaded-videos","isVideoPromptActive"])):d("",!0),e(a)("connect")?(o(),r(e(A),{key:5})):d("",!0)]),l("div",j,[c(R)])])])])],64)}}});export{oe as default};
