PageSourceSearch

https://app.weezly.com/assets/VideoEmbedView-BDOoVBL-.js

js weezly.com collected 2026-09-24 11:54:19 UTC 40,143 bytes, 6 lines download raw bytes

1import{R as Ce,d as K,af as de,a0 as Z,w as me,ak as fe,x as Ee,r as v,bv as ge,a7 as Q,y as N,c as ye,aV as Se,aU as Ue,aG as Te,aK as be,b8 as De,V as _e,L as ue,X as ze,P as Le,aR as Re,_ as $,a as b,g as i,b as t,e as s,f as O,t as d,F as I,p as ae,n as R,G as Oe,q as Me,s as V,o as r,av as Ne,h as xe,E as re,I as Fe,J as Pe,u as Ie,A as je,au as Be,C as qe,aH as We,a8 as Ae,aN as Je,aC as He,a4 as Ge,v as Qe}from"./index-DKueJ56C.js";import{U as pe}from"./UiConfirmDialog-DTSKeC9Y.js";import{U as Ye}from"./UiDropdown-BTMuH8wV.js";import{U as he}from"./UiTextField-ROeT5wsN.js";import{U as we}from"./UiToggle-C2y38EVh.js";import{S as Ve}from"./SelectColor-CvSZbrIH.js";import{R as Xe}from"./RecordVideo-BQXc9n_K.js";import{M as Ke}from"./minus-BhZ5b7JN.js";import{T as Ze}from"./type-BfIW0MVG.js";import{S as $e}from"./sliders-horizontal-BmAOFZFz.js";import{C as et}from"./camera-Cr2Nf9vy.js";import{C as tt}from"./chevron-down-Cv72UE4P.js";import{D as ot}from"./vuedraggable.umd-CgfCZ7UE.js";import{L as lt}from"./LocationPicker-PFcQ51UV.js";import{U as nt}from"./user-BQWLh0Ij.js";import{E as it,a as st}from"./EmbedPreviewWidget-BpDAp0Pd.js";import{b as at,c as rt,E as dt,a as ut,L as ct}from"./EventConfirmationTab-DY-zQ_Vn.js";import{C as vt}from"./calendar-DSulLOP0.js";import{C as mt}from"./circle-question-mark-CKT4a98R.js";import{B as ft}from"./bell-DOr0EYv1.js";import{E as gt}from"./ellipsis-vertical-cJziFozI.js";import"./wand-sparkles-DoRl9SLG.js";import"./rewind-CEadBpY6.js";import"./circle-dot-BjuNO7ns.js";import"./_commonjsHelpers-BosuxZz1.js";import"./UiButton-D4rLGMnN.js";import"./LocationIcon-D-X4-yp-.js";import"./grip-vertical-DSEHQCUx.js";import"./pencil-BubuoIeh.js";import"./powered-by-BtIjyiZJ.js";import"./DayPicker-CnZUWH5f.js";import"./UiCheckbox-DuCOVXTG.js";import"./copy-Bs70Mwbo.js";import"./DateRangePicker-98olFzb_.js";import"./TimezonePicker-Ct6pZPP9.js";import"./datetime-D2JIYqdq.js";import"./star-BvNtmnwX.js";import"./timer-Dh0rQH77.js";import"./arrow-left-right-DJ7oq8Iy.js";import"./footprints-DLUrijlo.js";import"./TipTapEditor-BHvmnPXO.js";import"./list-ChWf0oi8.js";import"./square-check-big-DtYX560j.js";import"./text-align-start-m2i_BYQQ.js";import"./calendar-plus-BNNY16up.js";import"./upload-DkITrwRa.js";/**
2 * @license @lucide/vue v1.18.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const yt=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 19H5",key:"vjpgq2"}]],bt=Ce("text-align-center",yt),_t=K({__name:"EmbedStylist",props:{event:{type:null,required:!1},isEdit:{type:Boolean,required:!1,default:!1},loading:{type:Boolean,required:!1,default:!1}},emits:["update","next","deletedVideo"],setup(n,{expose:l,emit:y}){const e=n,f=y,h=de(),{t:o}=Z(),g=me(),{me:_}=fe(Ee()),S=ye(()=>{var x;const m=(x=_.value)==null?void 0:x.remain_videos;return typeof m=="number"&&m<=0}),a=v(!1);function E(){if(S.value){a.value=!0;return}L.value=!0}const p=v({widget_style:"square",placement:"right",border_on:!0,border_size:3,border_color:"#D1007D",border_radius:10,text_on:!1,text:o("text.click_to_book"),text_bubble_color:"#FFFFFF",text_shadow:"#000000",gradient_on:!1,gradient_color:"#D1007D",close_button_color:"#D1007D",title_on:!0,description_on:!0,text_color:"#FFFFFF",video_autoplay:!0,video_playmobile:!0,video_mute:!0,video_loop:!0,video_controls:!1}),w=v({url:"sample-1.mp4"}),q=["sample-1.mp4","sample-2.mp4","sample-3.mp4"],z=v([]),T=v(!1),k=v([]),C=v(0),U=v(!1),L=v(!1),ee=v(null);let M=null;ge(()=>{F(),W(),f("update",{stylist:p.value,video:w.value})}),Q(p,()=>{f("update",{stylist:p.value})},{deep:!0}),Q(w,()=>{f("update",{video:w.value})},{deep:!0});function W(){if(e.event&&e.event.stylist){const m=JSON.parse(e.event.stylist);p.value={...p.value,...m}}e.event&&e.event.video&&(w.value.url=e.event.video)}function A(m){m==="increase"?p.value.border_size<10&&p.value.border_size++:p.value.border_size>0&&p.value.border_size--}function te(m){m==="increase"?p.value.border_radius<30&&p.value.border_radius++:p.value.border_radius>0&&p.value.border_radius--}async function F(){const m=await N("GET","video/getVembeds");m&&(z.value=m.data)}function oe(m){const x=document.getElementById("video-"+m);x==null||x.play()}function le(m){const x=document.getElementById("video-"+m);x==null||x.pause()}function ne(m){var D;const x=(D=m.target.files)==null?void 0:D[0];if(x){if(x.type!=="video/mp4"&&x.type!=="video/webm"&&x.type!=="video/ogg"){h.error(o("alert.only_support_mp4_web"));return}if(x.size>52428800){h.error(o("alert.max_upload_file_size")+": 50MB");return}M=x,J("upload")}}function Y(m){m&&(L.value=!1,M=m,J("record"))}async function J(m="upload"){if(!M)return;const x=new FormData;x.append("file",M),C.value=0,U.value=!0;const D=Se();try{const se=await Ue.post(`video/uploadVembed?salt=${D}&video_type=${m}`,x,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:H=>{C.value=H.total?Math.round(H.loaded/H.total*100):0}
6});await F(),w.value={url:se.data.url}}catch{h.error(o("alert.can_not_upload_your_file"))}finally{U.value=!1}}function j(){T.value||(k.value=[])}async function ie(){if(T.value)return;T.value=!0;const m=await N("DELETE","video/deleteVembeds",{ids:k.value});let x=!1;z.value.forEach(D=>{k.value.includes(D.id)&&w.value.url===D.url&&(x=!0)}),m?(z.value=z.value.filter(D=>!m.data.includes(D.id)),f("deletedVideo",m.data),x&&(w.value={url:"sample-1.mp4"})):h.error("Can not delete this video!"),T.value=!1,k.value=[]}function B(){if(!(T.value||U.value)){if(w.value.url==null){h.error("You need to choose a video to continue");return}f("next",{stylist:p.value,video:w.value})}}l({reload:W});const X={props:e,emit:f,toast:h,t:o,router:g,me:_,isLimitedVideo:S,limitVideoOpen:a,tryRecord:E,stylist:p,selectedVideo:w,sampleVideos:q,videos:z,deleting:T,deleteIds:k,uploadPercentage:C,uploading:U,openRecorder:L,fileInput:ee,get blob(){return M},set blob(m){M=m},reload:W,setBorderSize:A,setBorderRadius:te,getVideos:F,play:oe,pause:le,selectVideo:ne,uploadRecord:Y,uploadVideo:J,cancelDelete:j,confirmDelete:ie,next:B,get Camera(){return et},get CloudUpload(){return Re},get Check(){return Le},get X(){return ze},get Loader2(){return ue},get Video(){return _e},get SlidersHorizontal(){return $e},get Square(){return De},get Type(){return Ze},get Minus(){return Ke},get Plus(){return be},get getSchedulingVideoURL(){return Te},get UiTextField(){return he},get UiToggle(){return we},get UiConfirmDialog(){return pe},SelectColor:Ve,RecordVideo:Xe};return Object.defineProperty(X,"__isScriptSetup",{enumerable:!1,value:!0}),X}}),xt={class:"relative space-y-5"},pt={class:"bg-white rounded-xl border border-gray-200 p-4 sm:p-5"},ht={class:"flex items-center gap-2.5 mb-4"},wt={class:"text-xs font-medium text-gray-500 mb-2.5"},Vt={class:"relative"},kt={class:"grid grid-cols-4 gap-2.5"},Ct=["onMouseover","onMouseout","onClick"],Et=["id"],St=["src"],Ut={key:0,class:"absolute top-1.5 right-1.5 w-5 h-5 rounded-full bg-blue-600 text-white flex items-center justify-center shadow"},Tt=["onMouseover","onMouseout"],Dt=["id"],zt=["src"],Lt=["onClick"],Rt={key:0,class:"absolute top-1.5 right-1.5 w-5 h-5 rounded-full bg-blue-600 text-white flex items-center justify-center shadow pointer-events-none"},Ot=["onClick"],Mt={key:0,class:"absolute inset-0 bg-white/85 flex items-center justify-center px-8 rounded-xl"},Nt={class:"w-full max-w-[240px]"},Ft={class:"text-center text-sm font-medium text-gray-700 mb-2"},Pt={class:"h-2 bg-gray-100 rounded-full overflow-hidden"},It={class:"bg-white rounded-xl border border-gray-200 p-4 sm:p-5"},jt={class:"flex items-center gap-2.5 mb-4"},Bt={class:"flex-1 text-[15px] font-semibold text-gray-900"},qt={class:"grid grid-cols-2 gap-2.5 mb-4"},Wt={class:"text-xs font-medium text-gray-500 mb-2"},At={class:"grid grid-cols-2 gap-2.5"},Jt={class:"bg-white rounded-xl border border-gray-200 p-4 sm:p-5"},Ht={class:"flex items-center gap-2.5"},Gt={class:"flex-1 text-[15px] font-semibold text-gray-900"},Qt={key:0,class:"mt-4 space-y-3"},Yt={class:"flex items-center"},Xt={class:"flex-1 text-sm text-gray-700"},Kt={class:"inline-flex items-center border border-gray-300 rounded-lg overflow-hidden"},Zt={class:"w-9 text-center text-sm tabular-nums text-gray-800"},$t={class:"flex items-center"},eo={class:"flex-1 text-sm text-gray-700"},to={class:"flex items-center"},oo={class:"flex-1 text-sm text-gray-700"},lo={class:"inline-flex items-center border border-gray-300 rounded-lg overflow-hidden"},no={class:"w-9 text-center text-sm tabular-nums text-gray-800"},io={class:"bg-white rounded-xl border border-gray-200 p-4 sm:p-5"},so={class:"flex items-center gap-2.5"},ao={class:"flex-1 text-[15px] font-semibold text-gray-900"},ro={key:0,class:"mt-4 space-y-3"},uo={class:"flex items-center"},co={class:"flex-1 text-sm text-gray-700"},vo={class:"flex items-center"},mo={class:"flex-1 text-sm text-gray-700"},fo={key:0,class:"text-right"};function go(n,l,y,e,f,h){return r(),b("div",xt,[i(" ░░ Video & Widget ░░ "),t("section",pt,[t("div",ht,[s(e.Video,{size:18,class:"text-blue-600 shrink-0"}),l[20]||(l[20]=t("h3",{class:"flex-1 text-[15px] font-semibold text-gray-900"},"Video & Widget",-1)),t("input",{ref:"fileInput",type:"file",accept:"video/mp4,video/webm,video/ogg",class:"hidden",onInput:e.selectVideo},null,544),t("button",{type:"button",class:"inline-flex items-center gap-1.5 text-xs font-medium px-2.5 py-1.5 rounded-lg border border-gray-200 text-gray-700 hover:bg-gray-50 transition-colors",onClick:e.tryRecord},[s(e.Camera,{size:14,class:"text-fuchsia-600"}),O(" "+d(n.$t("text.record")),1)]),t("button",{type:"button",class:"inline-flex items-center gap-1.5 text-xs font-medium px-2.5 py-1.5 rounded-lg border border-gray-200 text-gray-700 hover:bg-gray-50 transition-colors",onClick:l[0]||(l[0]=o=>{var g;return(g=e.fileInput)==null?void 0:g.click()})},[s(e.CloudUpload,{size:14,class:"text-blue-600"}),O(" "+d(n.$t("text.upload")),1)])]),t("p",wt,d(n.$t("text.library")),1),t("div",Vt,[t("div",kt,[i(" Sample videos "),(r(),b(I,null,ae(e.sampleVideos,o=>t("button",{key:o,type:"button",class:R(["relative aspect-square rounded-xl overflow-hidden bg-gray-100 ring-2 transition-all",e.selectedVideo.url===o?"ring-blue-500":"ring-transparent hover:ring-gray-200"]),onMouseover:g=>e.play(o),onMouseout:g=>e.pause(o),onClick:g=>e.selectedVideo={url:o}},[t("video",{id:"video-"+o,muted:"",loop:"",preload:"metadata",class:"w-full h-full object-cover"},[t("source",{src:e.getSchedulingVideoURL("embed/"+o)||""},null,8,St)],8,Et),e.selectedVideo.url===o?(r(),b("span",Ut,[s(e.Check,{size:12})])):i("v-if",!0)],42,Ct)),64)),i(" User uploaded videos "),(r(!0),b(I,null,ae(e.videos,o=>(r(),b("div",{key:o.id,class:R(["group/vid relative aspect-square rounded-xl overflow-hidden bg-gray-100 ring-2 transition-all cursor-pointer",e.selectedVideo.url===o.url?"ring-blue-500":"ring-transparent hover:ring-gray-200"]),onMouseover:g=>e.play(o.id),onMouseout:g=>e.pause(o.id)},[t("video",{id:"video-"+o.id,muted:"",loop:"",preload:"metadata",class:"w-full h-full object-cover"},[t("source",{src:e.getSchedulingVideoURL("embed/"+o.url)||""},null,8,zt)],8,Dt),t("div",{class:"absolute inset-0",onClick:g=>e.selectedVideo={url:o.url}},null,8,Lt),e.selectedVideo.url===o.url?(r(),b("span",Rt,[s(e.Check,{size:12})])):i("v-if",!0),t("button",{type:"button",class:"absolute top-1.5 left-1.5 w-
65 h-5 rounded-full bg-black/60 text-white flex items-center justify-center opacity-0 group-hover/vid:opacity-100 transition-opacity",onClick:Oe(g=>e.deleteIds=[o.id],["stop"])},[s(e.X,{size:12})],8,Ot)],42,Tt))),128))]),e.uploading?(r(),b("div",Mt,[t("div",Nt,[t("p",Ft,"Uploading… "+d(e.uploadPercentage)+"%",1),t("div",Pt,[t("div",{class:"h-full bg-blue-600 transition-all",style:Me({width:e.uploadPercentage+"%"})},null,4)])])])):i("v-if",!0)])]),i(" ░░ Widget style ░░ "),t("section",It,[t("div",jt,[s(e.SlidersHorizontal,{size:18,class:"text-blue-600 shrink-0"}),t("h3",Bt,d(n.$t("text.widget_style")),1)]),i(" shape "),t("div",qt,[t("button",{type:"button",class:R(["flex flex-col items-center gap-2 p-3 rounded-xl border transition-colors",e.stylist.widget_style==="circle"?"border-blue-500 bg-blue-50":"border-gray-200 hover:bg-gray-50"]),onClick:l[1]||(l[1]=o=>e.stylist.widget_style="circle")},[...l[21]||(l[21]=[t("span",{class:"w-9 h-9 bg-gray-300 rounded-full"},null,-1),t("span",{class:"text-xs font-medium text-gray-700"},"Circle",-1)])],2),t("button",{type:"button",class:R(["flex flex-col items-center gap-2 p-3 rounded-xl border transition-colors",e.stylist.widget_style==="square"?"border-blue-500 bg-blue-50":"border-gray-200 hover:bg-gray-50"]),onClick:l[2]||(l[2]=o=>e.stylist.widget_style="square")},[...l[22]||(l[22]=[t("span",{class:"w-9 h-9 bg-gray-300 rounded-lg"},null,-1),t("span",{class:"text-xs font-medium text-gray-700"},"Square",-1)])],2)]),i(" placement "),t("p",Wt,d(n.$t("text.placement")),1),t("div",At,[t("button",{type:"button",class:R(["flex items-center justify-center gap-2.5 p-3 rounded-xl border transition-colors",e.stylist.placement==="left"?"border-blue-500 bg-blue-50":"border-gray-200 hover:bg-gray-50"]),onClick:l[3]||(l[3]=o=>e.stylist.placement="left")},[...l[23]||(l[23]=[t("span",{class:"relative w-12 h-8 bg-gray-100 border border-gray-200 rounded"},[t("span",{class:"absolute bottom-1 left-1 w-3 h-3 bg-gray-400 rounded-sm"})],-1),t("span",{class:"text-xs font-medium text-gray-700"},"Left",-1)])],2),t("button",{type:"button",class:R(["flex items-center justify-center gap-2.5 p-3 rounded-xl border transition-colors",e.stylist.placement==="right"?"border-blue-500 bg-blue-50":"border-gray-200 hover:bg-gray-50"]),onClick:l[4]||(l[4]=o=>e.stylist.placement="right")},[...l[24]||(l[24]=[t("span",{class:"relative w-12 h-8 bg-gray-100 border border-gray-200 rounded"},[t("span",{class:"absolute bottom-1 right-1 w-3 h-3 bg-gray-400 rounded-sm"})],-1),t("span",{class:"text-xs font-medium text-gray-700"},"Right",-1)])],2)])]),i(" ░░ Border ░░ "),t("section",Jt,[t("div",Ht,[s(e.Square,{size:18,class:"text-blue-600 shrink-0"}),t("h3",Gt,d(n.$t("text.border")),1),s(e.UiToggle,{modelValue:e.stylist.border_on,"onUpdate:modelValue":l[5]||(l[5]=o=>e.stylist.border_on=o)},null,8,["modelValue"])]),e.stylist.border_on?(r(),b("div",Qt,[t("div",Yt,[t("span",Xt,d(n.$t("text.size")),1),t("div",Kt,[t("button",{type:"button",class:"px-2.5 py-1.5 text-gray-500 hover:bg-gray-50",onClick:l[6]||(l[6]=o=>e.setBorderSize("decrease"))},[s(e.Minus,{size:14})]),t("span",Zt,d(e.stylist.border_size),1),t("button",{type:"button",class:"px-2.5 py-1.5 text-gray-500 hover:bg-gray-50",onClick:l[7]||(l[7]=o=>e.setBorderSize("increase"))},[s(e.Plus,{size:14})]),l[25]||(l[25]=t("span",{class:"px-2 py-1.5 text-xs text-gray-400 border-l border-gray-200 bg-gray-50"},"px",-1))])]),t("div",$t,[t("span",eo,d(n.$t("text.color")),1),s(e.SelectColor,{modelValue:e.stylist.border_color,"onUpdate:modelValue":l[8]||(l[8]=o=>e.stylist.border_color=o)},null,8,["modelValue"])]),t("div",to,[t("span",oo,d(n.$t("text.radius")),1),t("div",lo,[t("button",{type:"button",class:"px-2.5 py-1.5 text-gray-500 hover:bg-gray-50",onClick:l[9]||(l[9]=o=>e.setBorderRadius("decrease"))},[s(e.Minus,{size:14})]),t("span",no,d(e.stylist.border_radius),1),t("button",{type:"button",class:"px-2.5 py-1.5 text-gray-500 hover:bg-gray-50",onClick:l[10]||(l[10]=o=>e.setBorderRadius("increase"))},[s(e.Plus,{size:14})]),l[26]||(l[26]=t("span",{class:"px-2 py-1.5 text-xs text-gray-400 border-l border-gray-200 bg-gray-50"},"px",-1))])])])):i("v-if",!0)]),i(" ░░ Caption text ░░ "),t("section",io,[t("div",so,[s(e.Type,{size:18,class:"text-blue-600 shrink-0"}),t("h3",ao,d(n.$t("text.text")),1),s(e.UiToggle,{modelValue:e.stylist.text_on,"onUpdate:modelValue":l[11]||(l[11]=o=>e.stylist.text_on=o)},null,8,["modelValue"])]),e.stylist.text_on?(r(),b("div",ro,[s(e.UiTextField,{modelValue:e.stylist.text,"onUpdate:modelValue":l[12]||(l[12]=o=>e.stylist.text=o)},null,8,["modelValue"]),t("div",uo,[t("span",co,d(n.$t("text.color")),1),s(e.SelectColor,{modelValue:e.stylist.text_bubble_color,"onUpdate:modelValue":l[13]||(l[13]=o=>e.stylist.text_bubble_color=o)},null,8,["modelValue"])]),t("div",vo,[t("span",mo,d(n.$t("text.shadow")),1),s(e.SelectColor,{modelValue:e.stylist.text_shadow,"onUpdate:modelValue":l[14]||(l[14]=o=>e.stylist.text_shadow=o)},null,8,["modelValue"])])])):i("v-if",!0)]),i(" Footer (edit mode only) "),y.isEdit?(r(),b("div",fo,[t("button",{type:"button",class:"inline-flex items-center gap-2 bg-blue-600 text-white rounded-lg px-5 py-2 text-sm font-medium hover:bg-blue-700 transition-colors",onClick:e.next},[O(d(y.isEdit?n.$t("button.save"):n.$t("button.next"))+" ",1),y.loading?(r(),V(e.Loader2,{key:0,size:16,class:"animate-spin"})):i("v-if",!0)])])):i("v-if",!0),i(" DELETE VIDEO IN LIBRARY "),s(e.UiConfirmDialog,{open:e.deleteIds.length>0,title:(e.deleteIds.length>1?n.$t("text.would_you_like_to_delete_these_video"):n.$t("text.would_you_like_to_delete_this_video"))+"?",message:(e.deleteIds.length>1?n.$t("text.once_deleted_videos_no_access"):n.$t("text.once_deleted_video_no_access"))+".","confirm-label":n.$t("button.permanently_delete"),loading:e.deleting,"onUpdate:open":l[15]||(l[15]=o=>{o||e.cancelDelete()}),onConfirm:e.confirmDelete},null,8,["open","title","message","confirm-label","loading"]),i(" RECORD VIDEO FOR LIBRARY "),e.openRecorder?(r(),V(e.RecordVideo,{key:1,event:y.event,onClose:l[16]||(l[16]=o=>e.openRecorder=!1),onRecorded:l[17]||(l[17]=o=>e.uploadRecord(o))},null,8,["event"])):i("v-if",!0),i(" Recording-count cap reached (lifetime deal / free) → prompt upgrade "),s(e.UiConfirmDialog,{open:e.limitVideoOpen,"onUpdate:open":l[18]||(l[18]=o=>e.limitVideoOpen=o),title:n.$t("text.you_have_reached_limit_video"),"confirm-label":n.$t("button.upgrade"),onConfirm:l[19]||(l[19]=()=>{e.limitVideoOpen=!1,e.router.push("/upgrade")})},null,8,["open","title","confirm-label"])])}const yo=$(_t,[["render",go],["__file","/home/gitlab-runner/weezly-v3/callendo-frontend-v3/src/components/builder/embed/EmbedStylist.vue"]]),bo=K({__name:"EmbedStylistOpen",props:{event:{type:null,required:!1},isEdit:{type:Boolean,required:!1,default:!1},loading:{type:Boolean,required:!1,default:!1}},emits:["update","next"],setup(n,{expose:l,emit:y}){const e=n,f=y,{t:h}=Z(),o=v({gradient_on:!1,gradient_color:"#D1007D",close_button_color:"#D1007D",title_on:!0,description_on:!0,text_color:"#FFFFFF",video_auto
6play:!0,video_playmobile:!0,video_mute:!0,video_loop:!0,video_controls:!1}),g=v(!1),_=v(!1);ge(()=>{S(),f("update",{stylist:o.value})}),Q(o,()=>{f("update",{stylist:o.value})},{deep:!0});function S(){if(e.event&&e.event.stylist){const p=JSON.parse(e.event.stylist);o.value={...o.value,...p}}}function a(){f("next",{stylist:o.value})}l({reload:S});const E={props:e,emit:f,t:h,stylist:o,openStylist:g,openVideoOptions:_,reload:S,next:a,get ChevronDown(){return tt},get ChevronRight(){return Ne},get Loader2(){return ue},get UiToggle(){return we},SelectColor:Ve};return Object.defineProperty(E,"__isScriptSetup",{enumerable:!1,value:!0}),E}}),_o={class:"text-base font-semibold text-gray-900 flex-1 pr-2"},xo={key:1,class:"text-base font-semibold text-gray-900"},po={class:"flex items-center my-3 min-h-[35px]"},ho={class:"text-sm text-gray-700 flex-1"},wo={class:"flex items-center my-3"},Vo={class:"text-sm text-gray-700 flex-1"},ko={class:"flex items-center my-3"},Co={class:"text-sm text-gray-700 flex-1"},Eo={class:"flex items-center my-3 min-h-[35px]"},So={class:"text-sm text-gray-700 flex-1"},Uo={class:"flex items-center my-3 min-h-[35px]"},To={class:"text-sm text-gray-700 flex-1"},Do={class:"flex items-center my-3"},zo={class:"text-sm text-gray-700 flex-1"},Lo={class:"text-base font-semibold text-gray-900 flex-1 pr-2"},Ro={key:3,class:"text-base font-semibold text-gray-900 mt-6"},Oo={class:"flex items-center my-3 min-h-[35px]"},Mo={class:"text-sm text-gray-700 flex-1"},No={class:"flex items-center my-3 min-h-[35px]"},Fo={class:"text-sm text-gray-700 flex-1"},Po={class:"flex items-center my-3 min-h-[35px]"},Io={class:"text-sm text-gray-700 flex-1"},jo={class:"flex items-center my-3 min-h-[35px]"},Bo={class:"text-sm text-gray-700 flex-1"},qo={class:"flex items-center my-3 min-h-[35px]"},Wo={class:"text-sm text-gray-700 flex-1"},Ao={key:4,class:"text-right mt-6"};function Jo(n,l,y,e,f,h){return r(),b("div",null,[i(" STYLING header "),y.isEdit?(r(),b("h2",xo,d(n.$t("text.styling")),1)):(r(),b("div",{key:0,class:"flex items-center pb-2.5 border-b border-gray-200 cursor-pointer",onClick:l[0]||(l[0]=o=>e.openStylist=!e.openStylist)},[t("h2",_o,d(n.$t("text.styling")),1),e.openStylist?(r(),V(e.ChevronDown,{key:0,size:18})):(r(),V(e.ChevronRight,{key:1,size:18}))])),t("div",{class:R({hidden:!e.openStylist&&!y.isEdit})},[i(" Gradient "),t("div",po,[t("h6",ho,d(n.$t("text.gradient_overlay")),1),s(e.UiToggle,{modelValue:e.stylist.gradient_on,"onUpdate:modelValue":l[1]||(l[1]=o=>e.stylist.gradient_on=o)},null,8,["modelValue"])]),t("div",{class:R(["pl-5",{hidden:!e.stylist.gradient_on}])},[t("div",wo,[t("h6",Vo,d(n.$t("text.color")),1),s(e.SelectColor,{modelValue:e.stylist.gradient_color,"onUpdate:modelValue":l[2]||(l[2]=o=>e.stylist.gradient_color=o)},null,8,["modelValue"])])],2),i(" Close button color "),t("div",ko,[t("h6",Co,d(n.$t("text.close_button_color")),1),s(e.SelectColor,{modelValue:e.stylist.close_button_color,"onUpdate:modelValue":l[3]||(l[3]=o=>e.stylist.close_button_color=o)},null,8,["modelValue"])]),i(" Title on/off "),t("div",Eo,[t("h6",So,d(n.$t("text.display_title")),1),s(e.UiToggle,{modelValue:e.stylist.title_on,"onUpdate:modelValue":l[4]||(l[4]=o=>e.stylist.title_on=o)},null,8,["modelValue"])]),i(" Description on/off "),t("div",Uo,[t("h6",To,d(n.$t("text.display_description")),1),s(e.UiToggle,{modelValue:e.stylist.description_on,"onUpdate:modelValue":l[5]||(l[5]=o=>e.stylist.description_on=o)},null,8,["modelValue"])]),i(" Text color "),t("div",Do,[t("h6",zo,d(n.$t("text.text_color")),1),s(e.SelectColor,{modelValue:e.stylist.text_color,"onUpdate:modelValue":l[6]||(l[6]=o=>e.stylist.text_color=o)},null,8,["modelValue"])])],2),i(" VIDEO OPTIONS header "),y.isEdit?(r(),b("h2",Ro,d(n.$t("text.video_options")),1)):(r(),b("div",{key:2,class:"flex items-center py-2.5 border-b border-gray-200 cursor-pointer",onClick:l[7]||(l[7]=o=>e.openVideoOptions=!e.openVideoOptions)},[t("h2",Lo,d(n.$t("text.video_options")),1),e.openVideoOptions?(r(),V(e.ChevronDown,{key:0,size:18})):(r(),V(e.ChevronRight,{key:1,size:18}))])),t("div",{class:R({hidden:!e.openVideoOptions&&!y.isEdit})},[i(" Auto play "),t("div",Oo,[t("h6",Mo,d(n.$t("text.autoplay")),1),s(e.UiToggle,{modelValue:e.stylist.video_auto
6play,"onUpdate:modelValue":l[8]||(l[8]=o=>e.stylist.video_autoplay=o)},null,8,["modelValue"])]),i(" Play on mobile "),t("div",No,[t("h6",Fo,d(n.$t("text.play_on_mobile")),1),s(e.UiToggle,{modelValue:e.stylist.video_playmobile,"onUpdate:modelValue":l[9]||(l[9]=o=>e.stylist.video_playmobile=o)},null,8,["modelValue"])]),i(" Mute "),t("div",Po,[t("h6",Io,d(n.$t("text.mute")),1),s(e.UiToggle,{modelValue:e.stylist.video_mute,"onUpdate:modelValue":l[10]||(l[10]=o=>e.stylist.video_mute=o)},null,8,["modelValue"])]),i(" Loop "),t("div",jo,[t("h6",Bo,d(n.$t("text.loop")),1),s(e.UiToggle,{modelValue:e.stylist.video_loop,"onUpdate:modelValue":l[11]||(l[11]=o=>e.stylist.video_loop=o)},null,8,["modelValue"])]),i(" Controls "),t("div",qo,[t("h6",Wo,d(n.$t("text.controls")),1),s(e.UiToggle,{modelValue:e.stylist.video_controls,"onUpdate:modelValue":l[12]||(l[12]=o=>e.stylist.video_controls=o)},null,8,["modelValue"])])],2),i(" Footer (edit mode only) "),y.isEdit?(r(),b("div",Ao,[t("button",{class:"inline-flex items-center gap-2 bg-blue-600 text-white rounded-lg px-5 py-2 text-sm font-medium hover:bg-blue-700",onClick:e.next},[O(d(n.$t("button.save"))+" ",1),y.loading?(r(),V(e.Loader2,{key:0,size:16,class:"animate-spin"})):i("v-if",!0)])])):i("v-if",!0)])}const Ho=$(bo,[["render",Jo],["__file","/home/gitlab-runner/weezly-v3/callendo-frontend-v3/src/components/builder/embed/EmbedStylistOpen.vue"]]),Go=K({__name:"EmbedMain",props:{event:{type:null,required:!1},isEdit:{type:Boolean,required:!1,default:!1},hideNext:{type:Boolean,required:!1,default:!1},loading:{type:Boolean,required:!1,default:!1}},emits:["update","next"],setup(n,{expose:l,emit:y}){const e=n,f=y,h=de(),{t:o}=Z(),g=v(""),_=v(""),S=v(""),a=v([]),E=v(null);xe(()=>{e.event&&e.event.event_locations!==void 0?(g.value=e.event.name,_.value=e.event.description_html||"",a.value=[...e.event.event_locations||[]]):p()}),Q(g,()=>f("update",{event:{name:g.value}}),{immediate:!0}),Q(_,()=>f("update",{event:{description_html:_.value,description_json:_.value}}),{immediate:!0});function p(){a.value.push({id:Math.random(),location_type:"",location_value:"",location_custom:""})}function w(k,C){const U=a.value.find(L=>L.id==k);U&&Object.assign(U,C)}function q(k){a.value.length===1?a.value[0].location_type="":a.value=a.value.filter(C=>C.id!=k)}function z(){const k=g.value.trim();S.value="";let C=!1;if(k===""&&(S.value=o("alert.cant_be_blank"),C=!0),C)return!1;const U={event:{name:k,description_json:_.value,description_html:_.value},locations:a.value.filter(L=>L.location_type!=="")};return f("next",U),U}l({next:z});const T={props:e,emit:f,toast:h,t:o,name:g,description:_,errorName:S,locations:a,nameField:E,addNewLocation:p,updateLocation:w,removeLocation:q,next:z,get User(){return nt},get AlignCenter(){return bt},get Plus(){return be},get draggable(){return ot},get UiTextField(){return he},LocationPicker:lt};return Object.defineProperty(T,"__isScriptSetup",{enumerable:!1,value:!0}),T}}),Qo={class:"flex items-center gap-2"},Yo={key:0,class:"text-right text-xs text-red-600 mt-1"},Xo={class:"mt-5"},Ko={class:"mb-3"},Zo={class:"flex items-start gap-2 mt-5"},$o=["placeholder"],el={key:1,class:"text-right mt-6"};function tl(n,l,y,e,f,h){return r(),b("div",null,[l[3]||(l[3]=t("h2",{class:"text-base font-semibold text-gray-900 mb-5"},"What event is it?",-1)),i(" Event name "),t("div",Qo,[s(e.User,{size:18,class:"text-gray-400 shrink-0"}),s(e.UiTextField,{ref:"nameField",modelValue:e.name,"onUpdate:modelValue":l[0]||(l[0]=o=>e.name=o),placeholder:n.$t("text.event_name"),class:"flex-1",error:e.errorName?" ":""},null,8,["modelValue","placeholder","error"])]),e.errorName?(r(),b("p",Yo,d(e.errorName),1)):i("v-if",!0),i(" Locations "),t("div",Xo,[s(e.draggable,{modelValue:e.locations,"onUpdate:modelValue":l[1]||(l[1]=o=>e.locations=o),"item-key":"id",handle:".location-handle",animation:200},{item:re(({element:o})=>[t("div",Ko,[s(e.LocationPicker,{data:o,locations:e.locations,event:y.event,"is-edit":y.isEdit,onUpdate:g=>e.updateLocation(o.id,g),onRemove:g=>e.removeLocation(o.id)},null,8,["data","locations","event","is-edit","onUpdate","onRemove"])])]),_:1},8,["modelValue"]),e.locations.find(o=>o.location_type==="")?i("v-if",!0):(r(),b("button",{key:0,class:"inline-flex items-center gap-1 text-sm text-blue-600 hover:underline mt-1",onClick:e.addNewLocation},[s(e.Plus,{size:15}),O(" "+d(n.$t("text.add_a_location")),1)]))]),i(" Description "),t("div",Zo,[s(e.AlignCenter,{size:18,class:"text-gray-400 shrink-0 mt-2"}),Fe(t("textarea",{"onUpdate:modelValue":l[2]||(l[2]=o=>e.description=o),placeholder:n.$t("text.write_a_summary_invitee_should"),rows:"3",class:"flex-1 border border-gray-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500/30"},null,8,$o),[[Pe,e.description]])]),i(" Footer (edit mode only) "),!y.hideNext&&y.isEdit?(r(),b("div",el,[t("button",{class:"inline-flex items-center gap-2 bg-blue-600 text-white rounded-lg px-5 py-2 text-sm font-medium hover:bg-blue-700",onClick:e.next},d(n.$t("button.save")),1)])):i("v-if",!0)])}const ol=$(Go,[["render",tl],["__file","/home/gitlab-runner/weezly-v3/callendo-frontend-v3/src/components/builder/embed/EmbedMain.vue"]]),ll=K({__name:"VideoEmbedView",setup(n,{expose:l}){l();const y=Ie(),e=me(),f=je(),{embeds:h}=fe(f),o=de(),{upgradeWall:g}=We(),{t:_}=Z(),S=ye(()=>y.params.ID!=null&&y.params.ID!==""),a=v({}),E=v({}),p=v(null),w=v(null);
6function q(u){u.stylist&&(E.value={...E.value,...u.stylist},a.value={...a.value,stylist:JSON.stringify(E.value)}),u.video&&(a.value={...a.value,video:u.video.url})}function z(u){u.event&&(a.value={...a.value,...u.event})}function T(u){u.includes(a.value.video)&&(a.value={...a.value,video:null})}const k=v("stylist"),C=v(!1),U=v(null),L=v(null),ee=v({duration:"30_m"});xe(async()=>{S.value?await Y():await g("website-widget")||e.push("/")});function M(){k.value="main",Ae(()=>{var u;return(u=w.value)==null?void 0:u.toggle(!0)})}async function W(){var P,ve;if(C.value)return;const u=(P=U.value)==null?void 0:P.next();if(!u)return;const c=(ve=L.value)==null?void 0:ve.collect();if(c){C.value=!0;try{const ke={event:{name:u.event.name,description_json:u.event.description_json,description_html:u.event.description_html,video:a.value.video||null,video_type:a.value.video?"upload":null,type:"embed",stylist:JSON.stringify(E.value),date_range_type:c.event.date_range_type,date_range_value:c.event.date_range_value,duration:c.event.duration,increment:c.event.increment,availability_exist_id:c.event.availability_exist_id,time_before:c.event.time_before,time_after:c.event.time_after,time_notice:c.event.time_notice},locations:u.locations,availability:c.availability},G=await N("POST","scheduling/events/create",ke);G?(f.addEventLocal(G.data),a.value={...a.value,id:G.data.id,salt:G.data.salt},p.value=G.data,o.success(_("text.your_event_has_been_created")),k.value="ready"):o.error(_("alert.something_wrong"))}finally{C.value=!1}}}const A=v("video"),te=v(!1),F=v(!1),oe=v(null),le=v(null),ne=[{key:"video",icon:_e,label:"Video & Widget"},{key:"popup",icon:Be,label:"Popup widget & Video preview"},{key:"main",icon:vt,label:"What event is this?"},{key:"time",icon:qe,label:"When can people book this event?"},{key:"questions",icon:mt,label:"Invitee Questions"},{key:"notification",icon:ft,label:"Notification & Cancelation policy"},{key:"confirmation",icon:ct,label:"Confirmation page & Language"}];async function Y(){const u=y.params.ID;h.value.length||await f.fetchEmbeds();const c=h.value.find(P=>P.id==u);if(c){a.value=c,p.value=c;try{E.value=c.stylist?JSON.parse(c.stylist):{}}catch{E.value={}}}else o.error(_("alert.something_wrong")),setTimeout(()=>e.push("/"),1500)}function J(u){var c,P;A.value!==u&&(A.value=u,u==="video"?(c=w.value)==null||c.toggle(!1):(u==="popup"||u==="main")&&((P=w.value)==null||P.toggle(!0)))}const j=v(!1);async function ie(u){if(j.value)return;j.value=!0;const c=await N("POST","scheduling/events/update",{id:a.value.id,type:"embed",event:{video:u.video.url,video_type:"upload",stylist:JSON.stringify(u.stylist)}});j.value=!1,c?(f.updateEventLocal(a.value.id,c.data,"embed"),Object.assign(a.value,c.data),o.success(_("alert.your_event_has_been_updated"))):o.error(_("alert.something_wrong"))}const B=v(!1);async function X(u){if(B.value)return;B.value=!0;const c=await N("POST","scheduling/events/update",{id:a.value.id,type:"embed",event:{stylist:JSON.stringify(u.stylist)}});B.value=!1,c?(f.updateEventLocal(a.value.id,c.data,"embed"),Object.assign(a.value,c.data),o.success(_("alert.your_event_has_been_updated"))):o.error(_("alert.something_wrong"))}const m=v(!1);async function x(u){if(m.value)return;m.value=!0;const c=await N("POST","scheduling/events/update",{id:a.value.id,type:"embed",event:u.event,locations:u.locations});m.value=!1,c?(f.updateEventLocal(a.value.id,c.data,"embed"),Object.assign(a.value,c.data),o.success(_("alert.your_event_has_been_updated"))):o.error(_("alert.something_wrong"))}function D(u){Object.assign(a.value,u),f.updateEventLocal(a.value.id,u,"embed")}async function se(u){u();const c=await N("POST","scheduling/events/update",{id:a.value.id,type:"embed",event:{is_on:!a.value.is_on}});c?(a.value.is_on=c.data.is_on,f.updateEventLocal(a.value.id,{is_on:c.data.is_on},"embed")):o.error(_("alert.something_wrong"))}async function H(){F.value=!0;try{await N("DELETE","scheduling/events/deleteMulti",{list:[`embed-${a.value.id}`]})?(f.removeEventLocal(a.value.id,"embed"),e.push("/")):o.error(_("alert.something_wrong"))}finally{F.value=!1}}const ce={route:y,router:e,scheduling:f,embeds:h,toast:o,upgradeWall:g,t:_,isEdit:S,event:a,stylist:E,theEvent:p,previewRef:w,updateStylist:q,updateMain:z,deletedVideo:T,step:k,loading:C,mainRef:U,timeRef:L,createDraft:ee,stylistNext:M,create:W,tab:A,confirmDelete:te,deleting:F,videoRef:oe,popupRef:le,editTabs:ne,loadEdit:Y,selectTab:J,savingVideo:j,saveVideo:ie,savingPopup:B,savePopup:X,savingMain:m,saveMain:x,onTabSaved:D,toggleOnOff:se,deleteEvent:H,get MoreVertical(){return gt},get Eye(){return Ge},get Trash2(){return He},get ChevronLeft(){return Je},get Loader2(){return ue},get UiDropdown(){return Ye},get UiConfirmDialog(){return pe},EmbedStylist:yo,EmbedStylistOpen:Ho,EmbedMain:ol,EmbedCode:st,EmbedPreviewWidget:it,EventTimeTab:ut,EventQuestionsTab:dt,EventNotificationTab:rt,EventC
6onfirmationTab:at};return Object.defineProperty(ce,"__isScriptSetup",{enumerable:!1,value:!0}),ce}}),nl={key:0,class:"flex h-[calc(100vh-0px)] bg-gray-100 p-5"},il={class:"bg-white shadow rounded-xl h-full flex overflow-hidden flex-auto relative"},sl={class:"relative shrink-0 w-full lg:w-[550px] border-r border-gray-100"},al={key:0,class:"absolute inset-0 overflow-y-auto p-6 bg-gray-50"},rl={class:"text-lg font-bold text-gray-900 mb-5"},dl={class:"flex items-center mt-8 gap-2"},ul={class:"flex flex-col h-full"},cl={class:"flex-1 flex flex-col items-center justify-center overflow-y-auto"},vl={class:"p-5"},ml={key:0,class:"absolute inset-0 bg-white/70 flex items-center justify-center"},fl={class:"text-center"},gl={class:"font-semibold mt-6 text-gray-700"},yl={class:"flex h-[calc(100vh-0px)] bg-gray-100"},bl={class:"hidden lg:block flex-1 p-6"},_l={class:"relative w-full h-full rounded-xl overflow-hidden"},xl={class:"w-full lg:w-[600px] shrink-0 flex bg-white shadow-lg"},pl={class:"flex-1 min-w-0 px-6 py-6 overflow-y-auto bg-gray-50"},hl={class:"flex items-center gap-2 mb-6"},wl={class:"w-8 h-8 rounded-full hover:bg-gray-100 flex items-center justify-center"},Vl=["onClick"],kl=["onClick"],Cl={class:"w-14 shrink-0 bg-gray-50 border-l border-gray-200 flex flex-col items-center py-4 gap-1"},El=["onClick"],Sl={class:"pointer-events-none absolute right-full mr-2 px-2 py-1 rounded-md bg-gray-900 text-white text-xs whitespace-nowrap opacity-0 group-hover:opacity-100 z-20"};function Ul(n,l,y,e,f,h){return r(),b(I,null,[i(" ════════════════ CREATE ════════════════ "),e.isEdit?e.event&&e.event.id?(r(),b(I,{key:1},[i(" ════════════════ EDIT ════════════════ "),t("div",yl,[i(" Live preview "),t("div",bl,[t("div",_l,[s(e.EmbedPreviewWidget,{ref:"previewRef",class:"absolute inset-0",stylist:e.stylist,event:e.event,"the-event":e.theEvent},null,8,["stylist","event","the-event"])])]),i(" Editor "),t("div",xl,[t("div",pl,[i(" header "),t("div",hl,[t("button",{class:"text-sm text-gray-500 hover:text-blue-600",onClick:l[4]||(l[4]=o=>e.router.push("/"))},"← Events"),l[7]||(l[7]=t("div",{class:"flex-1"},null,-1)),s(e.UiDropdown,{position:"bottom-right",width:"200px"},{toggle:re(()=>[t("button",wl,[s(e.MoreVertical,{size:18})])]),default:re(({close:o})=>[t("button",{class:"w-full flex items-center gap-2 px-3 py-2 rounded text-sm hover:bg-gray-50",onClick:g=>e.toggleOnOff(o)},[s(e.Eye,{size:15}),O(" "+d(e.event.is_on?"Turn off":"Turn on"),1)],8,Vl),t("button",{class:"w-full flex items-center gap-2 px-3 py-2 rounded text-sm text-red-600 hover:bg-red-50",onClick:g=>{o(),e.confirmDelete=!0}},[s(e.Trash2,{size:15}),O(" "+d(n.$t("button.delete")),1)],8,kl)]),_:1})]),e.tab==="video"?(r(),V(e.EmbedStylist,{key:0,ref:"videoRef","is-edit":!0,event:e.event,loading:e.savingVideo,onUpdate:e.updateStylist,onNext:e.saveVideo,onDeletedVideo:e.deletedVideo},null,8,["event","loading"])):e.tab==="popup"?(r(),V(e.EmbedStylistOpen,{key:1,ref:"popupRef","is-edit":!0,event:e.event,loading:e.savingPopup,onUpdate:e.updateStylist,onNext:e.savePopup},null,8,["event","loading"])):e.tab==="main"?(r(),V(e.EmbedMain,{key:2,"is-edit":!0,event:e.event,loading:e.savingMain,onUpdate:e.updateMain,onNext:e.saveMain},null,8,["event","loading"])):e.tab==="time"?(r(),V(e.EventTimeTab,{key:3,event:e.event,onSaved:e.onTabSaved},null,8,["event"])):e.tab==="questions"?(r(),V(e.EventQuestionsTab,{key:4,event:e.event,onSaved:e.onTabSaved},null,8,["event"])):e.tab==="notification"?(r(),V(e.EventNotificationTab,{key:5,event:e.event,onSaved:e.onTabSaved},null,8,["event"])):e.tab==="confirmation"?(r(),V(e.EventConfirmationTab,{key:6,event:e.event,onSaved:e.onTabSaved},null,8,["event"])):i("v-if",!0)]),i(" Tab rail "),t("div",Cl,[(r(),b(I,null,ae(e.editTabs,o=>t("button",{key:o.key,class:R(["group relative w-10 h-10 rounded-lg flex items-center justify-center transition-colors",e.tab===o.key?"bg-white shadow-sm text-blue-600":"text-gray-400 hover:text-gray-700"]),onClick:g=>e.selectTab(o.key)},[(r(),V(Qe(o.icon),{size:18})),t("span",Sl,d(o.label),1)],10,El)),64))])]),s(e.UiConfirmDialog,{open:e.confirmDelete,"onUpdate:open":l[5]||(l[5]=o=>e.confirmDelete=o),title:"Delete this video embed?",message:n.$t("text.users_not_able_schedule_deleted_event"),"confirm-label":n.$t("button.delete"),loading:e.deleting,onConfirm:e.deleteEvent},null,8,["open","message","confirm-label","loading"])])],2112)):i("v-if",!0):(r(),b("div",nl,[t("div",il,[i(" Left panel "),t("div",sl,[e.step!=="ready"?(r(),b("div",al,[t("h4",rl,d(n.$t("text.create_new_video_embed")),1),i(" Step: stylist (Video & Widget) "),e.step==="stylist"?(r(),V(e.EmbedStylist,{key:0,event:e.event,onUpdate:e.updateStylist,onNext:e.stylistNext,onDeletedVideo:e.deletedVideo},null,8,["event"])):e.step==="main"?(r(),b(I,{key:1},[i(" Step: main (popup options + name/locations/description) "),s(e.EmbedStylistOpen,{class:"mb-3",event:e.event,onUpdate:e.updateStylist},null,8,["event"]),s(e.EmbedMain,{ref:"mainRef","hide-next":!0,class:"mb-5",event:e.event,onUpdate:e.updateMain},null,8,["event"]),s(e.EventTimeTab,{ref:"timeRef",event:e.createDraft,"collect-mode":!0,onSaved:l[0]||(l[0]=o=>e.updateMain({event:o}))},null,8,["event"]),t("div",dl,[t("button",{class:"border border-gray-300 rounded-lg px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-50",onClick:l[1]||(l[1]=o=>e.router.push("/"))},d(n.$t("button.cancel")),1),l[6]||(l[6]=t("div",{class:"flex-1"},null,-1)),t("button",{class:"inline-flex items-center gap-1 border border-gray-300 rounded-lg px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-50",onClick:l[2]||(l[2]=o=>{var g;e.step="stylist",(g=e.previewRef)==null||g.toggle(!1)})},[s(e.ChevronLeft,{size:16}),O(" "+d(n.$t("button.back")),1)]),t("button",{class:"inline-flex items-center gap-2 bg-blue-600 text-white rounded-lg px-5 py-2 text-sm font-medium hover:bg-blue-700",onClick:e.create},[O(d(n.$t("button.create"))+" ",1),e.loading?(r(),V(e.Loader2,{key:0,size:16,class:"animate-spin"})):i("v-if",!0)])])],64)):i("v-if",!0)])):(r(),b(I,{key:1},[i(" Step: ready "),t("div",ul,[t("div",cl,[s(e.EmbedCode,{"is-new":!0,event:e.event},null,8,["event"])]),t("div",vl,[t("button",{class:"border border-gray-300 rounded-lg px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-50",onClick:l[3]||(l[3]=o=>e.router.push("/"))},d(n.$t("button.close")),1)])])],2112))]),i(" Live preview "),s(e.EmbedPreviewWidget,{ref:"previewRef",class:"flex-1 hidden lg:block",stylist:e.stylist,event:e.event,"the-event":e.theEvent},null,8,["stylist","event","the-event"]),i(" Creating overlay "),e.loading?(r(),b("div",ml,[t("div",fl,[s(e.L
6oader2,{size:40,class:"animate-spin text-blue-600 mx-auto"}),t("h6",gl,d(n.$t("text.please_wait"))+"... "+d(n.$t("text.we_are_creating"))+"...",1)])])):i("v-if",!0)])]))],2112)}const wn=$(ll,[["render",Ul],["__file","/home/gitlab-runner/weezly-v3/callendo-frontend-v3/src/views/builder/VideoEmbedView.vue"]]);export{wn 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.