PageSourceSearch

https://popstory.vercel.app/_next/static/chunks/6260.418d81c3dda46af5.js

js popstory.vercel.app collected 2026-10-03 07:31:32 UTC 27,603 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6260],{24626:(e,l,t)=>{t.d(l,{F:()=>j});var s=t(95155),i=t(66942),a=t(80549),o=t(1659),r=t(90311),n=t(40982),d=t(70667),c=t(17287),u=t(11525),m=t(98672),x=t(12115),h=t(22544),p=t(38370),g=t(3123),v=t(54879);let b=v.Ik({email:v.Yj().email(),value:v.Yj()}),f="flex flex-col items-center justify-center gap-4",j=(0,x.memo)(()=>{var e;let{user:l,login:t}=(0,g.k)(e=>e),v=(0,g.K)(e=>e.hide),[j,C]=(0,x.useState)(0),{register:N,handleSubmit:w,formState:{errors:y},setValue:k,getValues:I,reset:S}=(0,h.mN)({defaultValues:{email:"",value:""},resolver:(0,i.u)(b)}),{locale:E}=(0,m.PZ)(),{mutate:T,isPending:D}=(0,a.useMutation)({mutationFn:()=>o.A.patch(u.n.ACCOUNT.RESET_PASSWORD,{value:+I("value")}),onError:()=>{C(0),k("value",""),p.toast.error("An error occured")},onSuccess:()=>{p.toast.success("We`ve sent you instructions on your email."),t({user:{...l,email_verified:!0}}),S(),v()}}),{mutate:z,isPending:M}=(0,a.useMutation)({mutationFn:()=>o.A.post(u.n.ACCOUNT.GET_CODE,{email:I("email")}),onError:()=>{p.toast.error("An error occured")},onSuccess:()=>{C(1)}}),A=D||M;return(0,s.jsx)(c.H,{activeIdx:j,setActiveIdx:C,withBorder:!1,disabled:A,items:[{contentClassName:f,children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.p,{placeholder:E.inputs.placeholders.email,type:"email",...N("email"),error:null==y||null==(e=y.email)?void 0:e.message}),(0,s.jsx)(d.$,{loading:A,fullWidth:!0,onClick:w(()=>{z()}),children:E.buttons.get_email_code})]})},{contentClassName:f,children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.E,{disabled:A,onComplete:e=>k("value",e)}),(0,s.jsx)(d.$,{fullWidth:!0,onClick:w(()=>{T()}),loading:A,children:E.buttons.submit})]})}]})})},33840:(e,l,t)=>{t.d(l,{T:()=>c});var s=t(95155),i=t(12115),a=t(85203),o=t.n(a),r=t(55817),n=t(50742),d=t(31640);let c=(0,i.memo)((0,i.forwardRef)((e,l)=>{let{icon:t,errorIcon:a=(0,s.jsx)(n.wew,{color:"red"}),className:c,wrpClassName:u,wrpInputClassName:m,error:x,required:h,iconAction:p,placeholderWithAnimation:g=!0,placeholder:v,cols:b=5,rows:f=5,label:j,fullWidth:C,...N}=e,w=(0,i.useId)(),y=(0,i.useId)();return(0,s.jsxs)("div",{className:o()("flex flex-col w-full gap-1",u),children:["string"==typeof j&&(0,s.jsxs)("label",{className:"text-secondaryText",htmlFor:w,children:[j," ",(0,s.jsx)(d.I,{visible:h})]}),"string"!=typeof j&&j,(0,s.jsxs)("div",{id:y,className:o()("bg-onNeutralBg box-border border-[1px] border-solid border-default group shrink-0 max-w-[350px] min-h-12 relative w-full transition-all px-3 py-1 rounded-[8px]",{"!w-full !max-w-full":C},m),children:[(0,s.jsx)("textarea",{className:o()("peer mt-[6px] w-full text-defaultText bg-onNeutralBg",c,{"!text-red-500 border-red-500":!!x}),...N,rows:f,cols:b,id:w,ref:l,placeholder:g?" ":v}),g&&v&&(0,s.jsxs)("label",{htmlFor:w,className:o()("absolute text-[0.875rem] text-gray-500 !left-3 duration-300 transform -translate-y-4 scale-75 peer-placeholder-shown:top-2 peer-focus:top-3 top-3 z-10 origin-[0] start-2.5 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-4 rtl:peer-focus:translate-x-1/4 rtl:peer-focus:left-auto",{"!text-red-500 border-red-500":!!x}),children:[v,(0,s.jsx)(d.I,{visible:h})]}),t&&!x&&(0,s.jsx)("span",{onClick:p,className:o()("absolute right-2.5  text-defaultText text-[20px] z-20 !top-2.5",{"hover:cursor-pointer hover:opacity-80":!!p}),children:t}),a&&!!x&&(0,s.jsx)("span",{"data-tooltip-id":w,"data-tooltip-content":String(x),className:o()("absolute right-2.5 text-[20px] z-20 !top-[14px]",{"!text-red-500":!!x}),children:a}),(0,s.jsx)(r.m_,{id:w})]})]})}))},46260:(e,l,t)=>{t.r(l),t.d(l,{Add:()=>_,AuthWithEmailCode:()=>i,Confirm:()=>m,Contact:()=>en,Error:()=>b,Info:()=>h,Loading:()=>g,ManageHighlight:()=>U,ManagePopup:()=>$,ManageSlot:()=>O,ManageSlot2:()=>B,ManageSlot3:()=>J,ManageStory:()=>X,ResetPassword:()=>j,Share:()=>M,Success:()=>v,VerifyEmail:()=>N,ViewFile:()=>y,ZeroBalance:()=>I,default:()=>ed});var s=t(12115);let i=(0,s.memo)(()=>null);var a=t(95155),o=t(70667),r=t(30999),n=t(85203),d=t.n(n),c=t(3123),u=t(57830);let m=(0,s.memo)(e=>{let{title:l="Confirm action",text:t="Message Text",confirmButtonText:s="Ok",cancelButtonText:i="Cancel",confirmAction:n,cancelAction:m,content:x,...h}=e,{isActive:p,hide:g}=(0,c.K)(e=>e);return(0,a.jsxs)(r.Dialog,{visible:p("Confirm"),withClose:!1,title:l,icon:(0,a.jsx)(u.LiN,{size:24,className:"text-yellow-500"}),...h,children:[t&&(0,a.jsx)("div",{className:"text-[1.063rem] mb-4 text-defaultText text-center",children:t}),x,(0,a.jsxs)("div",{className:d()("flex flex-row justify-between gap-5"),children:[(0,a.jsx)(o.$,{pill:!0,theme:"local-1",onClick:()=>{null==n||n(),null==g||g()},className:"!w-[45%]",children:s}),(0,a.jsx)(o.$,{pill:!0,theme:"local-2",onClick:()=>{null==m||m(),null==g||g()},className:"!w-[45%]",children:i})]})]})});var x=t(74233);let h=(0,s.memo)(e=>{let{title:l="Info",text:t="Message Text",buttonText:s="Close",action:i,content:n,...d}=e,{isActive:u,hide:m}=(0,c.K)(e=>e);return(0,a.jsxs)(r.Dialog,{className:"border-t-4 border-t-blue-500",visible:u("Info"),withClose:!1,title:l,icon:(0,a.jsx)(x.Q9E,{
1className:"text-blue-500",size:24}),...d,children:[t&&(0,a.jsx)("div",{className:"text-[1.063rem] mb-4 text-defaultText text-center",children:t}),n,(0,a.jsx)(o.$,{pill:!0,theme:"local-2",fullWidth:!0,onClick:()=>{null==i||i(),null==m||m()},children:s})]})});var p=t(51750);let g=(0,s.memo)(()=>{let{isActive:e}=(0,c.K)(e=>e);return(0,a.jsx)(r.Dialog,{className:"shine",visible:e("Loading"),withClose:!1,children:(0,a.jsx)(p.y,{className:"mx-auto my-5",size:40})})}),v=(0,s.memo)(e=>{let{title:l="Success",text:t="Message Text",buttonText:s="Close",action:i,content:n,...d}=e,{isActive:m,hide:x}=(0,c.K)(e=>e);return(0,a.jsxs)(r.Dialog,{className:"border-t-4 border-t-green-500",visible:m("Success"),withClose:!1,title:l,icon:(0,a.jsx)(u.o_$,{className:"text-green-500",size:24}),...d,children:[t&&(0,a.jsx)("div",{className:"text-[1.063rem] mb-4 text-defaultText text-center",children:t}),n,(0,a.jsx)(o.$,{fullWidth:!0,onClick:()=>{null==i||i(),null==x||x()},children:s})]})}),b=(0,s.memo)(e=>{let{title:l="Error",text:t="Message Text",buttonText:s="Close",action:i,content:n,...d}=e,{isActive:m,hide:x}=(0,c.K)(e=>e);return(0,a.jsxs)(r.Dialog,{className:"border-t-4 border-t-red-500",visible:m("Error"),withClose:!1,title:l,icon:(0,a.jsx)(u.ItP,{className:"text-red-500",size:24}),...d,children:[t&&(0,a.jsx)("div",{className:"text-[1.063rem] mb-4 text-defaultText text-center",children:t}),n,(0,a.jsx)(o.$,{theme:"local-2",pill:!0,fullWidth:!0,onClick:()=>{null==i||i(),null==x||x()},children:s})]})});var f=t(24626);let j=(0,s.memo)(()=>{let{isActive:e,hide:l}=(0,c.K)(e=>e);return(0,a.jsx)(r.Dialog,{dismiss:l,visible:e("ResetPassword"),withClose:!0,title:"Reset Password",children:(0,a.jsx)(f.F,{})})});var C=t(76661);let N=(0,s.memo)(()=>{let{isActive:e}=(0,c.K)(e=>e);return(0,a.jsx)(r.Dialog,{title:"Verify Email",visible:e("VerifyEmail"),withClose:!1,children:(0,a.jsx)(C.A,{})})});var w=t(30090);let y=(0,s.memo)(e=>{let{type:l,src:t,children:s,...i}=e,{isActive:o,hide:n}=(0,c.K)(e=>e);return(0,a.jsxs)(r.Dialog,{visible:o("ViewFile"),dismiss:n,modalType:"bottom-sheet",...i,children:[(null==l?void 0:l.includes("video"))&&(0,a.jsx)("video",{src:t,controls:!0,className:"w-full h-full"}),(null==l?void 0:l.includes("image"))&&(0,a.jsx)("div",{style:{backgroundImage:"url('".concat(t,"')")},className:"!w-full !h-full min-w-[200px] min-h-[200px] bg-center bg-no-repeat bg-contain"}),(0,a.jsx)("div",{className:"h-2"}),t&&(0,a.jsx)(w.c,{icon:(0,a.jsx)(u.JvP,{}),value:"Open in new tab",onClick:()=>{let e=document.createElement("a");e.target="_blank",e.href=t,e.click(),document.removeChild(e)}}),s]})});var k=t(20063);let I=(0,s.memo)(e=>{let{...l}=e,t=(0,k.useRouter)(),{isActive:s,hide:i,hideAll:n}=(0,c.K)(e=>e),d=(0,c.k)(e=>e.user.role);return(0,a.jsx)(r.Dialog,{modalType:"bottom-sheet",size:540,visible:s("ZeroBalance"),withClose:!1,...l,children:(0,a.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,a.jsx)(u.ItP,{className:"text-red-500",size:64}),(0,a.jsx)("p",{className:"text-defaultText font-semibold text-[1.125rem]",children:"You don't have enough credits to add a new element."}),(0,a.jsx)("p",{className:"text-secondaryText text-[0.875rem]",children:"Do you want to load them now?"}),(0,a.jsxs)("div",{className:"flex flex-row flex-wrap items-center w-full gap-4",children:[(0,a.jsx)(o.$,{fullWidth:!0,onClick:()=>{t.push("/dashboard/".concat(null==d?void 0:d.toLowerCase(),"/credits")),n()},theme:"local-1",pill:!0,big:!0,className:"max-w-[45%]",children:"Add"}),(0,a.jsx)(o.$,{onClick:()=>{i()},theme:"local-3",pill:!0,big:!0,fullWidth:!0,className:"max-w-[45%]",children:"Later"})]})]})})});var S=t(81800),E=t(73569),T=t(40335),D=t(25107),z=t(38370);let M=(0,s.memo)(e=>{let{title:l,url:t,...s}=e,{isActive:i,hide:n}=(0,c.K)(e=>e),{copyToClipboard:d}=(0,D.Cj)();return(0,a.jsx)(r.Dialog,{dismiss:n,title:"Share",visible:i("Share"),withClose:!0,...s,children:(0,a.jsxs)("div",{className:"flex flex-col max-w-full",children:[(0,a.jsxs)(S.HorizontalSection,{children:[(0,a.jsx)(T.Ot,{title:l,children:(0,a.jsx)(T.aZ,{round:!0}),url:t}),(0,a.jsx)(T.VI,{title:l,children:(0,a.jsx)(T.hZ,{round:!0}),url:t}),(0,a.jsx)(T.r6,{title:l,children:(0,a.jsx)(T.Fi,{round:!0}),url:t}),(0,a.jsx)(T.SU,{title:l,children:(0,a.jsx)(T.e,{round:!0}),url:t}
1),(0,a.jsx)(T.Kz,{title:l,children:(0,a.jsx)(T.Y4,{round:!0}),url:t})]}),(0,a.jsx)(E.l,{children:"or"}),(0,a.jsx)(o.$,{fullWidth:!0,onClick:()=>{d(t||""),n(),z.toast.info("\uD83D\uDE09 Copied")},children:"Copy Link"})]})})});var A=t(42018),L=t(33828);let _=(0,s.memo)(e=>{let{...l}=e,t=(0,k.useRouter)(),i=(0,c.k)(e=>e.user.role),{isActive:o,hide:n,show:d}=(0,c.K)(e=>e),{mutate:u,loading:m,error:h}=(0,D.Pq)({onSuccess:()=>n()});(0,s.useEffect)(()=>{h&&d("Error",{text:h})},[h]);let g=[{title:"Create slot",icon:(0,a.jsx)(L.Z2k,{className:"text-primary",size:20}),onClick:()=>{u()},disabled:m,loading:m},{title:"Manage credits",icon:(0,a.jsx)(A.tZt,{className:"text-primary",size:20}),onClick:()=>{t.push("/dashboard/".concat(null==i?void 0:i.toLowerCase(),"/credits")),n()},disabled:m,loading:!1},{title:"PRO subscription",icon:(0,a.jsx)(x.Q2Z,{className:"text-primary",size:20}),onClick:()=>{t.push("/dashboard/".concat(null==i?void 0:i.toLowerCase(),"/pro")),n()},disabled:m,loading:!1}];return(0,a.jsxs)(r.Dialog,{contentClassName:"flex flex-col gap-4",visible:o("Add"),dismiss:n,modalType:"bottom-sheet",...l,children:[g.map((e,l)=>(0,a.jsxs)("button",{disabled:e.disabled,onClick:()=>{var l;null==(l=e.onClick)||l.call(e)},className:"flex flex-row items-start justify-between w-full gap-4 p-1 text-secondaryText",children:[e.title,e.loading?(0,a.jsx)(p.y,{size:16}):e.icon]},l)),h&&(0,a.jsx)("label",{className:"text-[0.75rem] text-red-500",children:h})]})});var K=t(10630),P=t(80549),F=t(1659),V=t(11525),Y=t(97749),H=t(98672),R=t(74667);let $=(0,s.memo)(e=>{let{item:l,refetch:t,...i}=e,{locale:o}=(0,H.PZ)(),n=(0,k.useRouter)(),[d,m]=(0,s.useState)(""),{isActive:x,hide:h,show:g}=(0,c.K)(e=>e),v=(0,c.k)(e=>e.user.role),{mutate:b,isPending:f}=(0,P.useMutation)({mutationFn:()=>F.A.delete(V.n.SLOT.MY.ID.POPUPS.INDEX.replace("{ID}",(null==l?void 0:l.slotId)||""),{params:{popupId:null==l?void 0:l.id}}),onSuccess:async()=>{m(""),null==t||t(),h()},onError:e=>{var l,t;m((0,Y.pb)(e,null==o||null==(t=o.toast_messages)||null==(l=t.error)?void 0:l.error_occured)||"")}}),j=[{title:"View statistics",icon:(0,a.jsx)(R.Kp$,{className:"text-primary",size:20}),onClick:()=>{m(""),n.push("/dashboard/".concat(null==v?void 0:v.toLowerCase(),"/slots/").concat(null==l?void 0:l.slotId,"/popups/").concat(null==l?void 0:l.id,"/statistics")),h()},disabled:f,loading:!1},{title:"Edit popup",icon:(0,a.jsx)(u.Yvo,{className:"text-primary",size:20}),onClick:()=>{m(""),n.push("/dashboard/".concat(null==v?void 0:v.toLowerCase(),"/slots/").concat(null==l?void 0:l.slotId,"/popups/").concat(null==l?void 0:l.id,"/edit")),h()},disabled:f,loading:!1},{title:"Delete popup",icon:(0,a.jsx)(K.hJ0,{className:"text-primary",size:20}),onClick:()=>g("Confirm",{title:"Delete popup?",text:"This can not be undone.",confirmAction:()=>{m(""),b()}}),disabled:f,loading:f}];return(0,s.useEffect)(()=>{d&&g("Error",{text:d})},[d]),(0,a.jsxs)(r.Dialog,{contentClassName:"flex flex-col gap-4",visible:x("ManagePopup"),dismiss:h,modalType:"bottom-sheet",...i,children:[j.map((e,l)=>(0,a.jsxs)("button",{disabled:e.disabled,onClick:()=>{var l;null==(l=e.onClick)||l.call(e)},className:"flex flex-row items-start justify-between w-full gap-4 p-1 text-secondaryText",children:[e.title,e.loading?(0,a.jsx)(p.y,{size:16}):e.icon]},l)),d&&(0,a.jsx)("label",{className:"text-[0.75rem] text-red-500",children:d})]})}),O=(0,s.memo)(e=>{let{item:l,refetch:t,...i}=e,{locale:o}=(0,H.PZ)(),n=(0,k.useRouter)(),[d,m]=(0,s.useState)(""),{isActive:x,hide:h,show:g}=(0,c.K)(e=>e),v=(0,c.k)(e=>e.user.role),{mutate:b,isPending:f}=(0,P.useMutation)({mutationFn:()=>F.A.delete(V.n.SLOT.MY.INDEX,{params:{id:null==l?void 0:l.id}}),onSuccess:async()=>{m(""),null==t||t(),h()},onError:e=>{var l,t;m((0,Y.pb)(e,null==o||null==(t=o.toast_messages)||null==(l=t.error)?void 0:l.error_occured)||"")}}),j=[{title:"View statistics",icon:(0,a.jsx)(R.Kp$,{className:"text-primary",size:20}),onClick:()=>{m(""),n.push("/dashboard/".concat(null==v?void 0:v.toLowerCase(),"/slots/").concat(null==l?void 0:l.id,"/statistics")),h()},disabled:f,loading:!1},{title:"Edit slot",icon:(0,a.jsx)(u.Yvo,{className:"text-primary",size:20}),onClick:()=>{m(""),n.push("/dashboard/".concat(null==v?void 0:v.toLowerCase(),"/slots/").concat(null==l?void 0:l.id,"/edit")),h()},disabled:f,loading:!1},{title:"Delete slot",icon:(0,a.jsx)(K.hJ0,{className:"text-primary",size:20}),onClick:()=>g("Confirm",{title:"Delete slot?",text:"This can not be undone.",confirmAction:()=>{m(""),b()}}),disabled:f,loading:f}];return(0,s.useEffect)(()=>{d&&g("Error",{text:d})},[d]),(0,a.jsxs)(r.Dialog,{contentClassName:"flex flex-col gap-4",visible:x("ManageSlot"),dismiss:h,modalType:"bottom-sheet",...i,children:[j.map((e,l)=>(0,a.jsxs)("button",{disabled:e.disabled,onClick:()=>{var l;null==(l=e.onClick)||l.call(e)},className:"flex flex-row items-start justify-between w-full gap-4 p-1 text-secondaryText",children:[e.title,e.loading?(0,a.jsx)(p.y,{size:16}):e.icon]},l)),d&&(0,a.jsx)("label",{className:"text-[0.75rem] text-red-500",children:d})]})});var W=t(42878),Z=t(50742),G=t(47063);let B=(0,s.memo)(e=>{let{item:l,...t}=e,i=(0,k.useRouter)(),{isActive:o,hide:n,show:d}=(0,c.K)(e=>e),u=(0,c.k)(e=>e.user.role),{mutate:m,loading:x,error:h}=(0,D.nx)({slotId:null==l?void 0:l.id}),{mutate:g,loading:v,error:b}=(0,D.RR)({slotId:null==l?void 0:l.id}),f=x||v,j=h||b,C=[{title:"View slot",icon:(0,a.jsx)(W.GNz,{className:"text-primary",size:20}),onClick:()=>{i.push("/dashboard/".concat(null==u?void 0:u.toLowerCase(),"/slots/").concat(null==l?void 0:l.id,"/overview")),n()},disabled:!1,loading:!1},{title:"Create popup",icon:(0,a.jsx)(Z.NVe,{className:"text-primary",size:20}),disabled:f,loading:v,onClick:()=>g()},{title:"Create highlight",icon:(0,a.jsx)(G.EhD,{className:"text-primary",size:20}),disabled:f,loading:x,onClick:()=>m()}];return(0,s.useEffect)(()=>{j&&d("Error",{text:j})},[j]),(0,a.jsxs)(r.Dialog,{contentClassName:"flex flex-col gap-4",visible:o("ManageSlot2"),dismiss:n,modalType:"bottom-sheet",...t,children:[C.map((e,l)=>(0,a.jsxs)("button",{disabled:e.disabled,onClick:()=>{var l;null==(l=e.onClick)||l.call(e)},className:"flex flex-row items-start justify-between w-full gap-4 p-1 text-secondaryText",children:[e.title,e.loading?(0,a.jsx)(p.y,{size:16}):e.icon]},l)),j&&(0,a.jsx)("label",{className:"text-[0.75rem] text-red-500",children:j})]})}),J=(0,s.memo)(e=>{let{item:l,...t}=e,s=(0,k.useRouter)(),{isActive:i,hide:o}=(0,c.K)(e=>e),n=(0,c.k)(e=>e.user.role),d=[{title:"Embed Statistics script",icon:(0,a.jsx)(R.Kp$,{className:"text-primary",size:20}),onClick:()=>{s.push("/dashboard/".concat(null==n?void 0:n.toLowerCase(),"/slots/").concat(null==l?void 0:l.id,"/embed/statistics")),o()},disabled:!1,loading:!1},{title:"Embed Popups script",icon:(0,a.jsx)(Z.NVe,{className:"text-primary",size:20}),onClick:()=>{s.push("/dashboard/".concat(null==n?void 0:n.toLowerCase(),"/slots/").concat(null==l?void 0:l.id,"/embed/popups")),o()},disabled:!1,loading:!1},{title:"Embed Highlights script",icon:(0,a.jsx)(G.EhD,{className:"text-primary",size:20}),onClick:()=>{s.push("/dashboard/".concat(null==n?void 0:n.toLowerCase(),"/slots/").concat(null==l?void 0:l.id,"/embed/highlights")),o()},disabled:!1,loading:!1}];return(0,a.jsx)(r.Dialog,{contentClassName:"flex flex-col gap-4",visible:i("ManageSlot3"),dismiss:o,modalType:"bottom-sheet",...t,children:d.map((e,l)=>(0,a.jsxs)("button",{disabled:e.disabled,onClick:()=>{var l;null==(l=e.onClick)||l.call(e)},className:"text-secondaryText flex flex-row w-full p-1 gap-4 justify-between items-start",children:[e.title,e.loading?(0,a.jsx)(p.y,{size:16}):e.icon]},l))})}),U=(0,s.memo)(e=>{let{item:l,refetch:t,active:i,...o}=e,{locale:n}
1=(0,H.PZ)(),d=(0,k.useRouter)(),[m,x]=(0,s.useState)(""),{error:h,loading:g,mutate:v}=(0,D.a_)({slotId:null==l?void 0:l.slotId,highlightId:null==l?void 0:l.id}),{isActive:b,hide:f,show:j}=(0,c.K)(e=>e),C=(0,c.k)(e=>e.user.role),{mutate:N,isPending:w}=(0,P.useMutation)({mutationFn:()=>F.A.delete(V.n.SLOT.MY.ID.HIGHLIGHTS.INDEX.replace("{ID}",(null==l?void 0:l.slotId)||""),{params:{highlightId:null==l?void 0:l.id}}),onSuccess:async()=>{x(""),null==t||t(),f()},onError:e=>{var l,t;x((0,Y.pb)(e,null==n||null==(t=n.toast_messages)||null==(l=t.error)?void 0:l.error_occured)||"")}}),y=g||w,I=h||m,S=[...i?[]:[{title:"View Stories",icon:(0,a.jsx)(W.GNz,{className:"text-primary",size:20}),onClick:()=>{x(""),d.push("/dashboard/".concat(null==C?void 0:C.toLowerCase(),"/slots/").concat(null==l?void 0:l.slotId,"/highlights/").concat(null==l?void 0:l.id,"/overview")),f()},disabled:y,loading:!1}],{title:"View statistics",icon:(0,a.jsx)(R.Kp$,{className:"text-primary",size:20}),onClick:()=>{x(""),d.push("/dashboard/".concat(null==C?void 0:C.toLowerCase(),"/slots/").concat(null==l?void 0:l.slotId,"/highlights/").concat(null==l?void 0:l.id,"/statistics")),f()},disabled:y,loading:!1},{title:"Create story",icon:(0,a.jsx)(u.HcD,{className:"text-primary",size:20}),onClick:()=>v(),disabled:y,loading:g},{title:"Edit highlight",icon:(0,a.jsx)(u.Yvo,{className:"text-primary",size:20}),onClick:()=>{x(""),d.push("/dashboard/".concat(null==C?void 0:C.toLowerCase(),"/slots/").concat(null==l?void 0:l.slotId,"/highlights/").concat(null==l?void 0:l.id,"/edit")),f()},disabled:y,loading:!1},...i?[]:[{title:"Delete highlight",icon:(0,a.jsx)(K.hJ0,{className:"text-primary",size:20}),onClick:()=>j("Confirm",{title:"Delete highlight?",text:"This can not be undone.",confirmAction:()=>{x(""),N()}}),disabled:y,loading:w}]];return(0,s.useEffect)(()=>{(I||m)&&j("Error",{text:I||m})},[m,I]),(0,a.jsxs)(r.Dialog,{contentClassName:"flex flex-col gap-4",visible:b("ManageHighlight"),dismiss:f,modalType:"bottom-sheet",...o,children:[S.map((e,l)=>(0,a.jsxs)("button",{disabled:e.disabled,onClick:()=>{var l;null==(l=e.onClick)||l.call(e)},className:"flex flex-row items-start justify-between w-full gap-4 p-1 text-secondaryText",children:[e.title,e.loading?(0,a.jsx)(p.y,{size:16}):e.icon]},l)),m&&(0,a.jsx)("label",{className:"text-[0.75rem] text-red-500",children:m})]})}),X=(0,s.memo)(e=>{let{item:l,refetch:t,active:i,...o}=e,{locale:n}
1=(0,H.PZ)(),d=(0,k.useRouter)(),[m,x]=(0,s.useState)(""),{isActive:h,hide:g,show:v}=(0,c.K)(e=>e),b=(0,c.k)(e=>e.user.role),{mutate:f,isPending:j}=(0,P.useMutation)({mutationFn:()=>{var e;return F.A.delete(V.n.SLOT.MY.ID.HIGHLIGHTS.HIGHLIGHT_ID.STORIES.INDEX.replace("{ID}",(null==l||null==(e=l.highlight)?void 0:e.slotId)||"").replace("{HIGHLIGHT_ID}",(null==l?void 0:l.highlightId)||""),{params:{storyId:null==l?void 0:l.id}})},onSuccess:async()=>{x(""),null==t||t(),g()},onError:e=>{var l,t;x((0,Y.pb)(e,null==n||null==(t=n.toast_messages)||null==(l=t.error)?void 0:l.error_occured)||"")}}),C=[...i?[]:[{title:"View Story",icon:(0,a.jsx)(W.GNz,{className:"text-primary",size:20}),onClick:()=>{var e;x(""),d.push("/dashboard/".concat(null==b?void 0:b.toLowerCase(),"/slots/").concat(null==l||null==(e=l.highlight)?void 0:e.slotId,"/highlights/").concat(null==l?void 0:l.highlightId,"/stories/").concat(null==l?void 0:l.id,"/overview")),g()},disabled:j,loading:!1}],{title:"View statistics",icon:(0,a.jsx)(R.Kp$,{className:"text-primary",size:20}),onClick:()=>{var e;x(""),d.push("/dashboard/".concat(null==b?void 0:b.toLowerCase(),"/slots/").concat(null==l||null==(e=l.highlight)?void 0:e.slotId,"/highlights/").concat(null==l?void 0:l.highlightId,"/stories/").concat(null==l?void 0:l.id,"/statistics")),g()},disabled:j,loading:!1},{title:"Edit Story",icon:(0,a.jsx)(u.Yvo,{className:"text-primary",size:20}),onClick:()=>{var e;x(""),d.push("/dashboard/".concat(null==b?void 0:b.toLowerCase(),"/slots/").concat(null==l||null==(e=l.highlight)?void 0:e.slotId,"/highlights/").concat(null==l?void 0:l.highlightId,"/stories/").concat(null==l?void 0:l.id,"/edit")),g()},disabled:j,loading:!1},...i?[]:[{title:"Delete Story",icon:(0,a.jsx)(K.hJ0,{className:"text-primary",size:20}),onClick:()=>v("Confirm",{title:"Delete Story?",text:"This can not be undone.",confirmAction:()=>{x(""),f()}}),disabled:j,loading:j}]];return(0,s.useEffect)(()=>{m&&v("Error",{text:m})},[m]),(0,a.jsxs)(r.Dialog,{contentClassName:"flex flex-col gap-4",visible:h("ManageStory"),dismiss:g,modalType:"bottom-sheet",...o,children:[C.map((e,l)=>(0,a.jsxs)("button",{disabled:e.disabled,onClick:()=>{var l;null==(l=e.onClick)||l.call(e)},className:"flex flex-row items-start justify-between w-full gap-4 p-1 text-secondaryText",children:[e.title,e.loading?(0,a.jsx)(p.y,{size:16}):e.icon]},l)),m&&(0,a.jsx)("label",{className:"text-[0.75rem] text-red-500",children:m})]})});var q=t(22544),Q=t(6092),ee=t(34311),el=t(28122),et=t(40982),es=t(33840),ei=t(54879),ea=t(66942);let eo=ei.Ik({name:ei.Yj().min(1),email:ei.Yj().email().min(1),message:ei.Yj().min(0).max(300).optional()}),er=(0,s.memo)(()=>{var e,l,t;let{locale:s}=(0,H.PZ)(),i=(0,c.K)(e=>e.hide),r=(0,c.k)(e=>e.user),{handleSubmit:n,register:d,reset:u,getValues:m,formState:{errors:x}}=(0,q.mN)({defaultValues:{name:(null==r?void 0:r.name)||"",email:(null==r?void 0:r.email)||"",message:""},resolver:(0,ea.u)(eo)}),{mutate:h,isPending:p}=(0,P.useMutation)({mutationFn:()=>{let e=new FormData;return e.append("name",m().name),e.append("email",m().email),e.append("message",m().message),F.A.post(V.n.CONTACT,e)},onSuccess:()=>{z.toast.success("Message sent"),i(),u()},onError:e=>{var l,t;z.toast.error((0,Y.pb)(e,null==s||null==(t=s.toast_messages)||null==(l=t.error)?void 0:l.error_occured))}}),g=n(()=>{h()});return(0,a.jsxs)("form",{onSubmit:g,className:"flex flex-col w-full gap-2",children:[(0,a.jsx)(et.p,{error:null==x||null==(e=x.name)?void 0:e.message,placeholder:"Your Name",icon:(0,a.jsx)(el.JXP,{}),...d("name"),required:!0}),(0,a.jsx)(et.p,{error:null==x||null==(l=x.email)?void 0:l.message,placeholder:"Your Email",icon:(0,a.jsx)(ee.MH0,{}),...d("email"),required:!0}),(0,a.jsx)(es.T,{error:null==x||null==(t=x.message)?void 0:t.message,...d("message"),icon:(0,a.jsx)(Q.T7,{}),placeholder:"Your Message Here"}),(0,a.jsx)(o.$,{loading:p,className:"mt-4",type:"submit",icon:(0,a.jsx)(ee.feV,{color:"white"}),fullWidth:!0,pill:!0,big:!0,children:"Submit"})]})}),en=(0,s.memo)(e=>{let{title:l="Contact us",...t}=e,{isActive:s,hide:i}=(0,c.K)(e=>e);return(0,a.jsx)(r.Dialog,{size:540,modalType:"bottom-sheet",visible:s("Contact"),withClose:!0,dismiss:i,title:l,...t,children:(0,a.jsx)(er,{})})}),ed={AuthWithEmailCode:i,Loading:g,Success:v,Error:b,Info:h,ResetPassword:j,VerifyEmail:N,Confirm:m,ViewFile:y,ZeroBalance:I,Share:M,Add:_,ManagePopup:$,ManageSlot:O,ManageSlot2:B,ManageSlot3:J,ManageHighlight:U,ManageStory:X,Contact:en}},73569:(e,l,t)=>{t.d(l,{l:()=>r});var s=t(95155),i=t(12115),a=t(85203),o=t.n(a);let r=(0,i.memo)(e=>{let{children:l,className:t}=e;return(0,s.jsxs)("div",{className:o()("relative flex justify-center items-center my-5",t),children:[(0,s.jsx)("div",{className:"w-1/3 border-t shrink-0 border-default"}),(0,s.jsx)("span",{className:"mx-4 text-default",children:l}),(0,s.jsx)("div",{className:"w-1/3 border-t shrink-0 border-default"})]})})},76661:(e,l,t)=>{t.d(l,{A:()=>C});var s=t(95155),i=t(80549),a=t(1659),o=t(12115),r=t(38370),n=t(98672),d=t(3123),c=t(11525),u=t(70667),m=t(17287),x=t(25107),h=t(66942),p=t(22544),g=t(54879),v=t(97749),b=t(90311);let f=g.Ik({value:g.Yj()}),j="flex flex-col items-center justify-center w-full gap-2",C=(0,o.memo)(()=>{let[e,l]=(0,x.Wn)(),{user:t,login:g}
1=(0,d.k)(e=>e),{show:C,hideAll:N}=(0,d.K)(e=>e),[w,y]=(0,o.useState)(0),{handleSubmit:k,setValue:I,getValues:S}=(0,p.mN)({defaultValues:{email:"",value:""},resolver:(0,h.u)(f)}),{locale:E}=(0,n.PZ)(),{mutate:T,isPending:D}=(0,i.useMutation)({mutationFn:()=>a.A.post(c.n.ACCOUNT.VERIFY_EMAIL,{value:+S("value")}),onError:e=>{var l,t;r.toast.error((0,v.pb)(e,null==E||null==(t=E.toast_messages)||null==(l=t.error)?void 0:l.error_occured)),y(0),I("value","")},onSuccess:()=>{r.toast.success("Your email was verified"),g({user:{...t,email_verified:!0}}),C("Success",{text:"Your email was verified.",action:()=>N()})}}),{mutate:z,isPending:M}=(0,i.useMutation)({mutationFn:()=>a.A.get(c.n.ACCOUNT.VERIFY_EMAIL),onError:e=>{var l,t;r.toast.error((0,v.pb)(e,null==E||null==(t=E.toast_messages)||null==(l=t.error)?void 0:l.error_occured))},onSuccess:()=>{y(1)}}),A=D||M||l;return(0,s.jsx)(m.H,{withBorder:!1,activeIdx:w,setActiveIdx:y,disabled:A,items:[{contentClassName:j,children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.$,{loading:A,fullWidth:!0,onClick:k(()=>{z()}),children:E.buttons.get_auth_code}),(0,s.jsx)(u.$,{disabled:A,fullWidth:!0,theme:"outline",onClick:()=>e(),children:E.buttons.logout})]})},{contentClassName:j,children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(b.E,{disabled:A,onComplete:e=>I("value",e)}),(0,s.jsx)(u.$,{className:"mt-4",fullWidth:!0,onClick:k(()=>{T()}),loading:A,children:E.buttons.submit})]})}]})})},90311:(e,l,t)=>{t.d(l,{E:()=>n});var s=t(95155),i=t(85203),a=t.n(i),o=t(12115),r=t(40982);let n=(0,o.memo)(e=>{let{onComplete:l,len:t=6,wrapperClassName:i,...n}=e,[d,c]=(0,o.useState)(Array(t).fill("")),u=(0,o.useRef)([]);(0,o.useEffect)(()=>{let e=d.findIndex(e=>""===e);if(-1!==e&&u.current[e]){var l;null==(l=u.current[e])||l.focus()}},[d]);let m=e=>{var s;e.preventDefault();let i=e.clipboardData.getData("text").slice(0,t).split("");i.every(e=>/^[0-9]$/.test(e))&&(c(i.concat(Array(t-i.length).fill(""))),null==(s=u.current[i.length-1])||s.focus(),i.length===t&&(null==l||l(i.join(""))))};return(0,s.jsx)("div",{className:a()("flex gap-2 w-full justify-between",i),children:d.map((e,i)=>(0,s.jsx)(r.p,{type:"text",maxLength:1,value:e,onChange:e=>((e,s)=>{if(!/^[0-9]?$/.test(s))return;let i=[...d];if(i[e]=s,c(i),s&&e<t-1){var a;null==(a=u.current[e+1])||a.focus()}i.every(e=>""!==e)&&(null==l||l(i.join("")))})(i,e.target.value),onKeyDown:e=>((e,l)=>{"Backspace"===l.key&&!d[e]&&e>0&&setTimeout(()=>{var l;null==(l=u.current[e-1])||l.focus()})})(i,e),ref:e=>u.current[i]=e,onPaste:m,disabled:i>0&&!d[i-1],className:"!m-0 h-full text-center text-lg rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",wrpInputClassName:"!w-9 !h-12 text-center rounded-md !p-0",inputMode:"numeric",...n},i))})})}}]);

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.