1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1181,3798,4043],{3415:function(e,t,s){var n=s(52322),a=s(51392);function r(){return(0,n.jsxs)("li",{className:"group flex w-full items-center justify-between px-4 py-4 sm:px-6",children:[(0,n.jsx)("div",{className:"flex-grow truncate text-sm",children:(0,n.jsx)("div",{className:"flex",children:(0,n.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,n.jsx)(a.N2,{className:"h-5 w-16"}),(0,n.jsx)(a.N2,{className:"h-4 w-32"})]})})}),(0,n.jsx)("div",{className:"mt-4 hidden flex-shrink-0 sm:ml-5 sm:mt-0 lg:flex",children:(0,n.jsxs)("div",{className:"flex justify-between space-x-2 rtl:space-x-reverse",children:[(0,n.jsx)(a.N2,{className:"h-6 w-16"}),(0,n.jsx)(a.N2,{className:"h-6 w-32"})]})})]})}s(2784),t.Z=function(){return(0,n.jsxs)("ul",{className:"divide-subtle border-subtle bg-default animate-pulse divide-y rounded-md border sm:overflow-hidden",children:[(0,n.jsx)(r,{}),(0,n.jsx)(r,{}),(0,n.jsx)(r,{})]})}},15571:function(e,t,s){s.d(t,{vz:function(){return i},CN:function(){return u},Q1:function(){return Z},Ah:function(){return U},dE:function(){return R},i1:function(){return I},Gs:function(){return r},qD:function(){return z},k4:function(){return F}});var n=s(52322);function a(e){return"".concat(Math.floor(e/60).toString().padStart(2,"0"),":").concat(Math.floor(e%60).toString().padStart(2,"0"))}let r=e=>{let{currPage:t,totalPage:s,timeSpent:a,thumbnails:r}=e;return(0,n.jsxs)("div",{className:"flex h-fit w-48 flex-col gap-y-4 rounded-md p-2",children:[r&&r[t-1]?(0,n.jsx)("img",{src:r[t-1],className:"aspect-video w-full rounded-md bg-gray-300 object-cover object-top"}):null,(0,n.jsxs)("div",{className:"flex flex-row justify-between text-xs font-light capitalize",children:[(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)("span",{children:"PAGE"}),(0,n.jsx)("span",{className:"font-medium",children:"".concat(t,"/").concat(s)})]}),(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)("span",{children:"TIME SPENT"}),(0,n.jsx)("span",{className:"font-medium",children:function(e){let t=Math.floor(e/60),s="";return t>0&&(s+="".concat(t.toString()," min ")),s+="".concat((e%60).toString().padStart(2,"0")," sec")}(a)})]})]})]})};var l=s(86634);let i=e=>{let{data:t,thumbnails:s,sort:i=!0}=e;i&&t.sort((e,t)=>e.name-t.name);let o=Math.max(...t.map(e=>e.value));isFinite(o)&&0!==o||(o=20);let c=Math.max(...t.map(e=>e.name));var d=10*Math.ceil(o/10);return t.length<=1&&(d=(Math.ceil(o/10)+1)*10),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"w-full text-xs font-medium capitalize text-gray-600",children:"TOTAL TIME SPENT PER PAGE"}),(0,n.jsxs)("div",{className:"my-4 w-full overflow-x-auto transition-all",children:[(0,n.jsxs)("div",{className:"flex h-[200px] w-full flex-row",children:[(0,n.jsxs)("div",{className:"min-w-12 flex h-full flex-col justify-between text-xs text-gray-400",children:[(0,n.jsx)("div",{children:a(d)}),(0,n.jsx)("div",{children:a(d/2)}),(0,n.jsx)("div",{children:a(0)})]}),(0,n.jsx)("div",{className:"bar-chart flex-end z-10 flex h-full w-full items-end justify-start gap-x-2 border pl-2 md:gap-x-4 md:pl-4",children:t.map((e,t)=>(0,n.jsx)(l.Z,{content:(0,n.jsx)(r,{currPage:e.name,totalPage:c,timeSpent:e.value,thumbnails:s}),className:"after:border-inverted mb-3 after:absolute after:left-[50%] after:top-[100%] after:z-50 after:-translate-x-1/2 after:-translate-y-1/2 after:rotate-45 after:transform after:border-[0.4rem] after:border-solid",children:(0,n.jsx)("div",{title:"".concat(e.value," sec"),className:"bg-awst min-w-2 w-full max-w-[33%] rounded-md transition-all hover:bg-indigo-400",style:{height:"".concat(e.value/d*100,"%")}},t)},t))})]}),(0,n.jsxs)("div",{className:"flex w-full flex-row",children:[(0,n.jsx)("div",{className:"min-w-12 h-1"}),(0,n.jsx)("div",{className:"flex-end flex w-full flex-row items-end justify-start gap-x-2 pl-2 text-xs text-gray-400 md:gap-x-4 md:pl-4",children:t.map((e,t)=>(0,n.jsx)("div",{className:"min-w-2 mt-1 w-full max-w-[33%] rounded-md text-center",children:e.name},t))})]}
1),(0,n.jsx)("div",{className:"absolute left-[85px] -mt-[125px] w-[calc(100%-6.6rem)] border-b sm:left-[140px] sm:w-[calc(100%-10.1rem)]"})]})]})};var o=s(39097),c=s.n(o),d=s(2784);async function m(e){let t=await fetch("/api/documents/"+e+"/thumbnails"),s=await t.json();return s}let x=e=>{let{props:t}=e,[s,a]=(0,d.useState)(!1),[r,l]=(0,d.useState)([]);return(0,d.useEffect)(()=>{s&&t.documentId&&m(t.documentId).then(e=>{l(e.thumbnails)})},[s]),t.visit.onClick=()=>{a(!s)},(0,n.jsxs)("div",{className:"flex flex-col border-b",children:[(0,n.jsx)(F,{...t.visit}),s?(0,n.jsx)(I,{data:t.metrics.data,origin:t.metrics.origin,thumbnails:r}):null]})},u=e=>{let{props:t}=e,[s,a]=d.useState(!1),r=s?t.data:t.data.slice(0,5),l=t.data.length;return(0,n.jsxs)("div",{className:"flex w-full flex-col",children:[t.data.length>0?r.map((e,t)=>(0,n.jsx)(x,{props:e},"accordion-section-".concat(t))):(0,n.jsx)("div",{className:"flex flex-col",children:(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center gap-y-2 rounded-md border bg-white py-8 sm:mx-4 sm:px-4",children:[(0,n.jsx)("div",{className:"text-center",children:"You have no recent visits."}),(0,n.jsxs)("div",{className:"px-8 text-center",children:["You can create a link via the"," ",(0,n.jsx)(c(),{className:"text-awst font-medium underline transition-opacity hover:cursor-pointer hover:opacity-50",href:"/share/manage",children:"Contents"})," ","or"," ",(0,n.jsx)(c(),{className:"text-awst font-medium underline transition-opacity hover:cursor-pointer hover:opacity-50",href:"/share/space",children:"Spaces"})," ","tab."]})]})}),l>5&&(s?(0,n.jsx)("button",{className:"text-awst my-4 font-medium underline transition-opacity hover:cursor-pointer hover:opacity-50",onClick:()=>a(!1),children:"Minimize Section"}):(0,n.jsx)("button",{className:"text-awst my-4 font-medium underline transition-opacity hover:cursor-pointer hover:opacity-50",onClick:()=>a(!0),children:"Load All Visits (".concat(l-5," visit").concat(l-5>1?"s":""," not shown)")}))]})};var h=s(72779),f=s.n(h),p=s(57086),v=s(36139),j=s(24026);async function g(e){let t=await fetch("/api/documents/"+e+"/thumbnails"),s=await t.json();return s}let w=e=>{let{props:t,entity:s}=e,[a,r]=(0,d.useState)(!1),[l,i]=(0,d.useState)([]);return(0,d.useEffect)(()=>{a&&t.documentId&&g(t.documentId).then(e=>{i(e.thumbnails)})},[a]),t.visit.onClick=()=>{r(!a)},t.visit.isOpen=a,(0,n.jsxs)("div",{className:"flex flex-col border-b",children:[(0,n.jsx)(F,{...t.visit}),a?(0,n.jsx)(I,{data:t.metrics.data,origin:t.metrics.origin,thumbnails:l}):null]})},b=e=>{let{dateStr:t}=e,[s,a]=(0,d.useState)("");return t?((0,d.useEffect)(()=>{let e=new Date(t),s=new Intl.DateTimeFormat(void 0,{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0}).format(e);a(s)},[t]),(0,n.jsx)("div",{children:s.toUpperCase()})):(0,n.jsx)("div",{children:"-"})},N=e=>{let{isEmbedded:t}=e;return(0,n.jsxs)("div",{className:f()("grid-cols-space-view-xs sm:grid-cols-space-view-sm md:grid-cols-space-view-md lg:grid-cols-space-view-lg grid w-full items-center justify-between border-b px-4 py-2 text-sm",t?"text-xs uppercase text-gray-500":"bg-gray-50"),children:[(0,n.jsx)("div",{className:"text-start",children:"File Name"}),(0,n.jsx)("div",{className:"hidden text-start sm:block",children:"Type"}),(0,n.jsx)("div",{className:"hidden text-start md:block",children:"Document Description"}),(0,n.jsx)("div",{className:"text-start ",children:"Visits"}),(0,n.jsx)("div",{className:"hidden text-start lg:block",children:"Last Visited On"}),(0,n.jsx)("div",{className:"text-end"})]})},y=e=>{let{props:t,children:s,defaultOpen:a}=e,[r,l]=(0,d.useState)(a||!1);return(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center gap-y-2 text-gray-800",children:[(0,n.jsxs)("div",{className:f()("grid-cols-space-view-xs sm:grid-cols-space-view-sm md:grid-cols-space-view-md lg:grid-cols-space-view-lg grid w-full items-center justify-between border-b px-4 py-4 text-sm"),children:[(0,n.jsxs)("div",{className:"flex flex-row items-center",children:[(0,n.jsx)(j.dx,{...t.file}),(0,n.jsx)("div",{className:"text-center",children:t.file.fileName})]}),(0,n.jsx)("div",{className:"hidden text-start sm:block",children:t.file.fileType}),(0,n.jsx)("div",{className:"hidden text-start md:block",children:t.file.description.length>0?t.file.description:"-"}),(0,n.jsx)("div",{className:"text-start ",children:t.visits.length}),(0,n.jsx)("div",{className:"hidden text-start lg:block",children:(0,n.jsx)(b,{dateStr:t.file.lastOpenedAt})}),(0,n.jsx)("div",{className:"flex justify-end",children:t.visits.length>0?(0,n.jsx)("button",{className:"flex flex-row items-center justify-center gap-x-4 transition-all",onClick:()=>{l(!r)},children:r?(0,n.jsx)(p.Z,{className:"h-6 w-6 fill-gray-600 text-gray-600 sm:h-4 sm:w-4","aria-hidden":"true"}):(0,n.jsx)(v.Z,{className:"h-6 w-6 fill-gray-600 text-gray-600 sm:h-4 sm:w-4","aria-hidden":"true"})}):null})]}),r?(0,n.jsx)("div",{className:"w-full pr-2 sm:pl-8",children:s}):null]})},C=e=>{let{visitData:t,visitCount:s,entity:a}=e,[r,l]=d.useState(!1),i=r?t:t.slice(0,5);return(0,n.jsxs)("div",{className:"flex w-full flex-col",children:[i.map((e,t)=>(0,n.jsx)(w,{props:e,entity:a},"accordion-section-".concat(t))),s>5&&(r?(0,n.jsx)("button",{className:"text-awst my-4 font-medium underline transition-opacity hover:cursor-pointer hover:opacity-50",onClick:()=>l(!1),children:"Minimize Section"}):(0,n.jsx)("button",{className:"text-awst my-4 font-medium underline transition-opacity hover:cursor-pointer hover:opacity-50",onClick:()=>l(!0),children:"Load All Visits (".concat(s-5," visit").concat(s-5>1?"s":""," not shown)")}))]})}
1,k=()=>(0,n.jsx)("div",{className:"flex flex-col",children:(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center gap-y-2 rounded-md border bg-white py-8 sm:mx-4 sm:px-4",children:[(0,n.jsx)("div",{className:"text-center",children:"You have no recent visits."}),(0,n.jsxs)("div",{className:"px-8 text-center",children:["You can create a link via the"," ",(0,n.jsx)(c(),{className:"text-awst font-medium underline transition-opacity hover:cursor-pointer hover:opacity-50",href:"/share/manage",children:"Contents"})," ","or"," ",(0,n.jsx)(c(),{className:"text-awst font-medium underline transition-opacity hover:cursor-pointer hover:opacity-50",href:"/share/space",children:"Spaces"})," ","tab."]})]})}),Z=e=>{let{props:t}=e,s=t.data.reduce((e,t)=>e+t.visits.length,0),{showNoVisit:a}=t;return(0,n.jsx)("div",{className:"flex w-full flex-col",children:s>0||null!=a&&a?(0,n.jsxs)("div",{className:f()(t.isEmbedded?"ml-4 mt-2 sm:mr-4":"rounded-md border bg-white md:mx-4"),children:[(0,n.jsx)(N,{isEmbedded:t.isEmbedded}),t.data.map((e,s)=>(0,n.jsx)(y,{props:e,defaultOpen:"LINK"===t.entity.type.toUpperCase()||"FILE"===t.entity.type.toUpperCase(),children:(0,n.jsx)(C,{visitData:e.visits,visitCount:e.visits.length,entity:t.entity})},"file-renderer-".concat(s)))]}):(0,n.jsx)(k,{})})},S=e=>{let{origin:t}=e,s=Object.keys(t).filter(e=>void 0!==t[e]).map(e=>t[e]),a=s.join(", ");return(0,n.jsxs)("div",{className:"flex flex-row",children:["Source: ",a]})},I=e=>{let{data:t,origin:s,thumbnails:a}=e;return(0,n.jsxs)("div",{className:"ml-4 mt-4 flex flex-col gap-y-4 sm:ml-[4.5rem]",children:[(0,n.jsxs)("div",{className:"flex w-full flex-col gap-y-2 text-xs text-gray-600",children:[(0,n.jsx)("div",{className:"font-medium",children:"VISIT ORIGIN INFO"}),(0,n.jsx)(S,{origin:s})]}),(0,n.jsx)("div",{className:"w-full border-b"}),(0,n.jsx)(i,{data:t,thumbnails:a})]})},R=e=>{let{props:t}=e;return(0,n.jsxs)("div",{className:"flex flex-col gap-y-4 px-4 py-8",children:[(0,n.jsx)("div",{className:"text-gray-500",children:t.space.name}),(0,n.jsxs)("div",{className:"flex flex-row justify-between gap-x-2",children:[(0,n.jsxs)("div",{className:"flex w-fit flex-row justify-start gap-x-8",children:[""===t.space.thumbnail?(0,n.jsx)("div",{className:"flex aspect-square h-12 w-12 flex-row items-center justify-center bg-gray-700 text-center font-semibold text-white",children:t.space.name.slice(0,2).toUpperCase()}):(0,n.jsx)("img",{src:t.space.thumbnail,className:"aspect-square h-12 w-12 border object-cover"}),(0,n.jsxs)("div",{className:"flex flex-col gap-y-1",children:[(0,n.jsx)("div",{className:"font-md text-xl",children:t.space.name}),(0,n.jsxs)("div",{className:"text-xs text-gray-700",children:[t.space.description?t.space.description+" \xb7 ":null,"Contains"," "+t.items.length," items."]})]})]}),(0,n.jsx)("div",{className:"flex flex-row gap-x-4"})]}),(0,n.jsxs)("div",{className:"flex flex-row items-center gap-x-1",children:[""===t.space.lastEditedBy.profilePicture?(0,n.jsx)("div",{className:"bg-awst flex h-5 w-5 flex-row items-center justify-center rounded-[12rem] text-center text-[0.5rem] font-light text-white",children:t.space.lastEditedBy.name.slice(0,2).toUpperCase()}):(0,n.jsx)("img",{src:t.space.lastEditedBy.profilePicture,className:"aspect-square h-5 w-5 object-cover"}),(0,n.jsx)("span",{className:"text-xs text-gray-500",children:"Last edited by "}),(0,n.jsx)("span",{className:"text-xs text-gray-700 underline",children:t.space.lastEditedBy.name})]})]})},U=e=>{let{props:t,title:s}=e;return(0,n.jsx)("div",{children:(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"md:pl-4 py-4 text-lg text-gray-700",children:s}),(0,n.jsx)(Z,{props:t})]})})};var _=s(20723),E=s(95168),M=s(42261),P=s(5632);let F=e=>{let t="https://app.workramen.com"+e.link.url,[s,a]=(0,d.useState)(t),[r,i]=(0,d.useState)(!0),o=(0,P.useRouter)(),c=o.asPath;(0,d.useEffect)(()=>{c.includes("/share/space/")||c.includes("/share/item")?i(!0):i(!1)});let m=t=>{t.stopPropagation(),t.preventDefault(),o.push("/share/space/".concat(e.link.id.toString()))},x=e=>{navigator.clipboard.writeText(e).then(()=>{a(t.slice(0,t.length-11)+"... - Copied!"),setTimeout(()=>{a(t)},3e3)}).catch(()=>{a(t.slice(0,t.length-36)+"... - Failed to Copy the link, please try again."),setTimeout(()=>{a(t)},3e3)})};return(0,n.jsxs)("div",{onClick:e.onClick,onDoubleClick:m,className:"flex flex-row items-center justify-between p-4 transition-all hover:cursor-pointer hover:bg-gray-200",children:[(0,n.jsxs)("div",{className:"flex w-fit flex-row items-center gap-x-2",children:[e.contact.profilePicture&&""!==e.contact.profilePicture?(0,n.jsx)("img",{src:e.contact.profilePicture,className:"aspect-square h-12 w-12 rounded-[12rem] object-cover"}):(0,n.jsx)("div",{className:"bg-awst flex h-12 w-12 flex-row items-center justify-center rounded-[12rem] text-center font-light text-white",children:e.contact.name.slice(0,2).toUpperCase()}),(0,n.jsxs)("div",{className:"flex flex-col gap-y-1",children:[(0,n.jsx)("span",{className:"text-sm font-medium",children:e.contact.name}),(0,n.jsxs)("div",{className:"flex flex-row gap-x-2 text-xs",children:[e.contact.company?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"text-gray-500",children:e.contact.company}),(0,n.jsx)("span",{children:"\xb7"})]}):null,(0,n.jsx)("span",{className:"text-gray-600",children:function(e){let t=new Date().getTime(),s=new Date(e).getTime(),n=Math.floor((t-s)/1e3),a=2592e3,r=31536e3;return n<60?"".concat(n," seconds ago"):n<3600?"".concat(Math.floor(n/60)," minutes ago"):n<86400?"".concat(Math.floor(n/3600)," hours ago"):n<a?"".concat(Math.floor(n/86400)," days ago"):n<r?"".concat(Math.floor(n/a)," months ago"):"".concat(Math.floor(n/r)," years ago")}(e.lastActive)})]})]})]}),(0,n.jsxs)("div",{onClick:e=>{e.stopPropagation(),e.preventDefault(),x(t)},className:"flex flex-row items-center gap-x-2 rounded-[2rem] bg-gray-200 px-8 py-4 text-gray-700 transition-all hover:bg-gray-500 hover:text-white active:opacity-30",children:[(0,n.jsx)(M.Z,{className:"h-3 w-3"}),(0,n.jsx)("span",{className:"hidden md:flex 2xl:hidden",children:"Copy Link"}),(0,n.jsx)("span",{className:"hidden 2xl:flex",children:s})]}),(0,n.jsxs)("div",{className:"flex flex-row items-center gap-x-2 text-xs text-gray-700 md:gap-x-6 md:text-lg",children:[(0,n.jsx)("div",{id:"access-dashboard",children:(0,n.jsx)(l.Z,{content:"Manage this Link",children:(0,n.jsx)(E.Z,{onClick:m,className:f()("text-awst mr-4 h-6 w-6 transition-opacity hover:cursor-pointer hover:opacity-75 active:opacity-25 sm:mr-0",r?"hidden":null)})})}),(0,n.jsx)("div",{id:"downloaded-content",children:(0,n.jsx)(l.Z,{content:e.actions.downloaded?"Viewer downloaded the file":"Viewer did not download this file",children:(0,n.jsx)(_.Z,{className:f()("hidden h-6
1w-6 sm:block",e.actions.downloaded?"text-awst":"text-gray-300")})})}),(0,n.jsx)(l.Z,{content:"This visit lasted a total of ".concat(e.actions.viewed.duration),children:(0,n.jsx)("div",{id:"view-duration",className:"min-w-16 xl:min-w-24 xl:text-md hidden text-right text-sm sm:block sm:block",children:e.actions.viewed.duration})}),(0,n.jsx)(l.Z,{content:"".concat(e.actions.viewed.percentage," of the content was viewed"),children:(0,n.jsx)("div",{id:"view-percentage",className:"min-w-12 xl:min-w-16 xl:text-md hidden text-right text-sm sm:block",children:e.actions.viewed.percentage})}),(0,n.jsx)("button",{className:"text-awst flex flex-row items-center justify-center gap-x-4 transition-all",onClick:e.onClick,children:e.isOpen?(0,n.jsx)(p.Z,{className:"h-4 w-4 fill-gray-600 text-gray-600 sm:h-4 sm:w-4","aria-hidden":"true"}):(0,n.jsx)(v.Z,{className:"h-6 w-6 fill-gray-600 text-gray-600 sm:h-4 sm:w-4","aria-hidden":"true"})})]})]})};var T=s(47982),D=s(90883);let z=e=>{let t=(0,P.useRouter)(),{t:s}=(0,T.b)(),a=void 0===t.query.folderUuid||null===t.query.folderUuid||""===t.query.folderUuid;return(0,n.jsxs)("div",{children:[(0,n.jsx)(D.Z,{items:e.folder.items,columns:e.folder.columns,handleDoubleClick:s=>{let n=e.folder.items.find(e=>e.uuid===s.currentTarget.dataset.id);n&&(n.isFolder?t.push(e.basePath+"?folderUuid="+n.uuid):window.open("/file/view/"+n.uuid,"_blank"))},isRootFolder:a}),(0,n.jsx)("input",{id:"fileUploadHelper",type:"file",accept:"application/pdf",onChange:e.onFileChange,hidden:!0})]})}},36139:function(e,t,s){s.d(t,{Z:function(){return a}});var n=s(37751);let a=(0,n.Z)("ChevronDown",[["polyline",{points:"6 9 12 15 18 9",key:"1do0m2"}]])},57086:function(e,t,s){s.d(t,{Z:function(){return a}});var n=s(37751);let a=(0,n.Z)("ChevronUp",[["polyline",{points:"18 15 12 9 6 15",key:"1uugdp"}]])},78476:function(e,t,s){s.d(t,{Z:function(){return c}});var n=s(52322),a=s(51281),r=s(742),l=s(86634),i=s(40876);s(2784);let o=[{name:"Dashboard",href:"/share/dashboard"},{name:"Content",href:"/share/manage"},{name:"Spaces",href:"/share/space"}];function c(e){let{children:t,hideTabs:s,buttonProps:c,...d}=e;return(0,n.jsx)(a.ZP,{...d,hideHeadingOnMobile:!0,children:(0,n.jsxs)("div",{className:"flex max-w-full flex-col gap-y-4 lg:gap-y-0",children:[(0,n.jsxs)("div",{className:"flex flex-col justify-between lg:flex-row",children:[s?null:(0,n.jsx)(r.Z,{tabs:o}),(0,n.jsx)("div",{className:"flex flex-row gap-x-4",children:c?null==c?void 0:c.map((e,t)=>(0,n.jsx)(l.Z,{content:e.tooltip,children:(0,n.jsx)(i.z,{color:e.isPrimary?"primary":"secondary",onClick:e.onClick,className:e.hidden?"hidden":void 0,children:e.label})},t)):null})]}),(0,n.jsx)("main",{className:"w-full max-w-full",children:t})]})})}},82582:function(e,t,s){s.d(t,{eq:function(){return n}});function n(e){return e instanceof Error?e:"string"==typeof e?Error(e,{cause:e}):Error("Unhandled error of type '".concat(typeof e,"''"))}},74043:function(e,t,s){s.d(t,{s8:function(){return I},U5:function(){return S},l0:function(){return _},II:function(){return N},UP:function(){return C},Y2:function(){return E},ZI:function(){return Z},Kx:function(){return R},N7:function(){return U},nv:function(){return k}});var n=s(52322),a=s(89097),r=s(82582),l=s(47982),i=s(2784),o=s(63955),c=s(51392),d=s(86634),m=s(29036),x=s(69604),u=s(34519),h=s(87010),f=s(52657),p=s(92800),v=s(34241),j=s(98708);function g(e){let t=(0,o.Gc)();if(!t)return null;let{formState:s}=t,{hintErrors:a,fieldName:r,t:l}=e,i=s.errors[r];return a||!i||i.message?a&&i?(0,n.jsx)("div",{className:"text-gray text-default mt-2 flex items-center text-sm",children:(0,n.jsx)("ul",{className:"ml-2",children:a.map(e=>{let t=s.isSubmitted,a=i[e]||i.message;return(0,n.jsxs)("li",{className:void 0!==a?t?"text-red-700":"":"text-green-600",children:[void 0!==a?t?(0,n.jsx)(u.Z,{size:"12",strokeWidth:"3",className:"-ml-1 inline-block ltr:mr-2 rtl:ml-2"}):(0,n.jsx)(p.Z,{fill:"currentColor",size:"5",className:"inline-block ltr:mr-2 rtl:ml-2"}):(0,n.jsx)(v.Z,{size:"12",strokeWidth:"3",className:"-ml-1 inline-block ltr:mr-2 rtl:ml-2"}),l("".concat(r,"_hint_").concat(e))]},e)})})}):i?(0,n.jsxs)("div",{className:"text-gray mt-2 flex items-center gap-x-2 text-sm text-red-700",children:[(0,n.jsx)("div",{children:(0,n.jsx)(j.Z,{className:"h-3 w-3"})}),(0,n.jsx)("p",{children:i.message})]}):a?(0,n.jsx)("div",{className:"text-gray text-default mt-2 flex items-center text-sm",children:(0,n.jsx)("ul",{className:"ml-2",children:a.map(e=>{let t=s.dirtyFields[r];return(0,n.jsxs)("li",{className:t?"text-green-600":"",children:[t?(0,n.jsx)(v.Z,{size:"12",strokeWidth:"3",className:"-ml-1 inline-block ltr:mr-2 rtl:ml-2"}):(0,n.jsx)(p.Z,{fill:"currentColor",size:"5",className:"inline-block ltr:mr-2 rtl:ml-2"}),l("".concat(r,"_hint_").concat(e))]},e)})})}):null:(0,n.jsx)("div",{className:"text-gray text-default mt-2 flex items-center text-sm",children:(0,n.jsx)("ul",{className:"ml-2",children:Object.keys(i).map(e=>(0,n.jsx)("li",{className:"text-blue-700",children:l("".concat(r,"_hint_").concat(e))},e))})})}var w=s(67576),b=s(1126);let N=(0,i.forwardRef)(function(e,t){let{isFullWidth:s=!0,...r}=e;return(0,n.jsx)("input",{...r,ref:t,className:(0,a.Z)("hover:border-emphasis dark:focus:border-emphasis border-default bg-default placeholder:text-muted text-emphasis disabled:hover:border-default disabled:bg-subtle focus:ring-brand-default mb-2 block h-9 rounded-md border px-3 py-2 text-sm leading-4 focus:border-neutral-300 focus:outline-none focus:ring-2 disabled:cursor-not-allowed",s&&"w-full",r.className)})}),y=e=>{let{isFilled:t,children:s,className:r,error:l}=e;return(0,n.jsx)("div",{className:(0,a.Z)("addon-wrapper border-default [input:hover_+_&]:border-emphasis [
1input:hover_+_&]:border-l-default [&:has(+_input:hover)]:border-emphasis [&:has(+_input:hover)]:border-r-default h-9 border px-3",t&&"bg-subtle",r),children:(0,n.jsx)("div",{className:(0,a.Z)("min-h-9 flex flex-col justify-center text-sm leading-7",l?"text-error":"text-default"),children:(0,n.jsx)("span",{className:"flex whitespace-nowrap",children:s})})})},C=(0,i.forwardRef)(function(e,t){let s=(0,i.useId)(),{t:r,isLocaleReady:o,i18n:d}=(0,l.b)(),m=e.t||r,x=e.name||"",{label:h=m(x),labelProps:f,labelClassName:p,disabled:v,LockedIcon:j,placeholder:b=o&&d.exists(x+"_placeholder")?m(x+"_placeholder"):"",className:C,addOnLeading:k,addOnSuffix:Z,addOnFilled:S=!0,addOnClassname:I,inputIsFullWidth:R,hint:U,type:_,hintErrors:E,labelSrOnly:M,containerClassName:P,readOnly:F,t:T,...D}=e,[z,O]=(0,i.useState)("");return(0,n.jsxs)("div",{className:(0,a.Z)(P),children:[!!x&&(0,n.jsxs)(c.Od,{as:w._,htmlFor:s,loadingClassName:"w-16",...f,className:(0,a.Z)(p,M&&"sr-only",e.error&&"text-error"),children:[h,j]}),k||Z?(0,n.jsxs)("div",{dir:"ltr",className:"focus-within:ring-brand-default group relative mb-1 flex items-center rounded-md focus-within:outline-none focus-within:ring-2",children:[k&&(0,n.jsx)(y,{isFilled:S,className:(0,a.Z)("rounded-l-md border-r-0",I),children:k}),(0,n.jsx)(N,{id:s,type:_,placeholder:b,isFullWidth:R,className:(0,a.Z)(C,"disabled:bg-subtle disabled:hover:border-subtle disabled:cursor-not-allowed",k&&"rounded-l-none border-l-0",Z&&"rounded-r-none border-r-0","search"===_&&"pr-8","!my-0 !ring-0"),...D,..."search"==_&&{onChange:t=>{O(t.target.value),e.onChange&&e.onChange(t)},value:z},disabled:F||v,ref:t}),Z&&(0,n.jsx)(y,{isFilled:S,className:(0,a.Z)("ltr:rounded-r-md rtl:rounded-l-md",I),children:Z}),"search"===_&&(null==z?void 0:z.toString().length)>0&&(0,n.jsx)(u.Z,{className:"text-subtle absolute top-2.5 h-4 w-4 cursor-pointer ltr:right-2 rtl:left-2",onClick:t=>{O(""),e.onChange&&e.onChange(t)}})]}):(0,n.jsx)(N,{id:s,type:_,placeholder:b,className:(0,a.Z)(C,"disabled:bg-subtle disabled:hover:border-subtle disabled:cursor-not-allowed"),...D,readOnly:F,ref:t,isFullWidth:R,disabled:F||v}),(0,n.jsx)(g,{hintErrors:E,fieldName:x,t:m}),U&&(0,n.jsx)("div",{className:"text-default mt-2 flex items-center text-sm",children:U})]})}),k=(0,i.forwardRef)(function(e,t){return(0,n.jsx)(C,{ref:t,...e})}),Z=(0,i.forwardRef)(function(e,t){let{t:s}=(0,l.b)(),[r,o]=(0,i.useState)(!1),c=(0,i.useCallback)(()=>o(!r),[r,o]),m=s(r?"hide_password":"show_password");return(0,n.jsx)("div",{className:"[&_.group:hover_.addon-wrapper]:border-emphasis relative [&_.group:focus-within_.addon-wrapper]:border-neutral-300",children:(0,n.jsx)(C,{type:r?"text":"password",placeholder:e.placeholder||"â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢",ref:t,...e,className:(0,a.Z)("addon-wrapper mb-0 ltr:pr-10 rtl:border-l-0 rtl:pl-10",e.className),addOnFilled:!1,addOnSuffix:(0,n.jsx)(d.Z,{content:m,children:(0,n.jsxs)("button",{className:"text-emphasis h-9",type:"button",onClick:()=>c(),children:[r?(0,n.jsx)(h.Z,{className:"h-4 stroke-[2.5px]"}):(0,n.jsx)(f.Z,{className:"h-4 stroke-[2.5px]"}),(0,n.jsx)("span",{className:"sr-only",children:m})]})})})})}),S=(0,i.forwardRef)(function(e,t){return(0,n.jsx)(N,{ref:t,type:"email",autoCapitalize:"none",autoComplete:"email",autoCorrect:"off",inputMode:"email",...e})}),I=(0,i.forwardRef)(function(e,t){return(0,n.jsx)(C,{ref:t,type:"email",autoCapitalize:"none",autoComplete:"email",autoCorrect:"off",inputMode:"email",...e})}),R=(0,i.forwardRef)(function(e,t){return(0,n.jsx)("textarea",{ref:t,...e,className:(0,a.Z)("hover:border-emphasis border-default bg-default placeholder:text-muted text-emphasis disabled:hover:border-default disabled:bg-subtle focus:ring-brand-default mb-2 block w-full rounded-md border px-3 py-2 text-sm focus:border-neutral-300 focus:outline-none focus:ring-2 focus:ring-offset-1 disabled:cursor-not-allowed",e.className)})}),U=(0,i.forwardRef)(function(e,t){var s,a,r;let c=(0,i.useId)(),{t:d}=(0,l.b)(),x=e.t||d,u=(0,o.Gc)(),h=e.optional&&!0===e.optional||!1,{label:f=x(e.name),labelProps:p,placeholder:v=x(e.name+"_placeholder")!==e.name+"_placeholder"?x(e.name+"_placeholder"):"",...j}=e;return(0,n.jsxs)("div",{children:[!!e.name&&(0,n.jsxs)(w._,{htmlFor:c,...p,children:[f,h&&(0,n.jsx)(b.N,{})]}),(0,n.jsx)(R,{ref:t,placeholder:v,...j}),(null==u?void 0:null===(a=u.formState)||void 0===a?void 0:null===(s=a.errors[e.name])||void 0===s?void 0:s.message)&&(0,n.jsx)(m.b,{className:"mt-1",severity:"error",message:(0,n.jsx)(n.Fragment,{children:null===(r=u.formState.errors[e.name])||void 0===r?void 0:r.message})})]})}),_=(0,i.forwardRef)((e,t)=>{let{form:s,handleSubmit:a,...l}=e;return(0,n.jsx)(o.RV,{...s,children:(0,n.jsx)("form",{ref:t,onSubmit:e=>{e.preventDefault(),e.stopPropagation(),s.handleSubmit(a)(e).catch(e=>{(0,x.CF)("".concat((0,r.eq)(e).message),"error")})},...l,children:e.children})})}),E=(0,i.forwardRef)(function(e,t){return(0,n.jsx)(N,{ref:t,type:"number",autoCapitalize:"none",autoComplete:"numeric",autoCorrect:"off",inputMode:"numeric",...e})})},67576:function(e,t,s){s.d(t,{_:function(){return r}});var n=s(52322),a=s(89097);function r(e){return(0,n.jsx)("label",{...e,className:(0,a.Z)("text-default text-emphasis mb-2 block text-sm whitespace-nowrap font-medium",e.className),children:e.children})}},1126:function(e,t,s){s.d(t,{N:function(){return a}});var n=s(52322);let a=e=>{let{text:t}=e;return(0,n.jsx)("span",{className:"text-subtle ml-1 text-xs",children:null!=t?t:"(Optional)"})}},63798:function(e,t,s){s.d(t,{A:function(){return p}});var n=s(52322);
1s(2784);let a=function(e){let{title:t,users:s=[],profile:n}=e,a=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=["?type=meeting","&title=".concat(encodeURIComponent(t)),"&meetingProfileName=".concat(encodeURIComponent(n.name)),n.image&&"&meetingImage=".concat(encodeURIComponent(n.image)),"".concat(s.map(e=>"&names=".concat(encodeURIComponent(e.name))).join("")),"".concat(s.map(e=>"&usernames=".concat(encodeURIComponent(e.username))).join(""))].join("");return a?encodeURIComponent(r):r},r=function(e){let{name:t,slug:s,description:n}=e,a=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=["?type=app","&name=".concat(encodeURIComponent(t)),"&slug=".concat(encodeURIComponent(s)),"&description=".concat(encodeURIComponent(n))].join("");return a?encodeURIComponent(r):r},l=function(e){let{title:t,description:s}=e,n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],a=["?type=generic","&title=".concat(encodeURIComponent(t)),"&description=".concat(encodeURIComponent(s))].join("");return n?encodeURIComponent(a):a},i=()=>{var e,t,s,n,a,r,l,i,o;return{url:null!==(r=null===(e=window.document.location)||void 0===e?void 0:e.href)&&void 0!==r?r:void 0,path:null!==(l=null===(t=window.document.location)||void 0===t?void 0:t.pathname)&&void 0!==l?l:void 0,referrer:null!==(i=null===(s=window.document)||void 0===s?void 0:s.referrer)&&void 0!==i?i:void 0,title:null!==(o=window.document.title)&&void 0!==o?o:void 0,query:null===(n=window.document.location)||void 0===n?void 0:n.search,origin:null===(a=window.document.location)||void 0===a?void 0:a.origin}};var o=s(82076),c=s(77780);let d=function(e,t){let s=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(e.length<=t)return e;let n=e.substring(0,148);return n=n.substring(0,Math.min(n.length,n.lastIndexOf(" "))),s&&(n+="..."),n};var m=s(98537),x=s.n(m),u=s(55351),h=s(5632);let f=e=>{let{title:t,description:s,image:n,canonical:a,siteName:r=c.G_.headSeo.siteName}=e;return{title:t,canonical:a,openGraph:{site_name:r,type:"website",title:t,description:s,images:[{url:n}]},additionalMetaTags:[{property:"name",content:t},{property:"description",content:s},{name:"description",content:s},{property:"image",content:n}]}},p=e=>{let{url:t}=i(),s=t&&(new URL(t).hostname.endsWith("workramen.com")||new URL(t).hostname.endsWith("dev.workramen.com")),m=(0,h.useRouter)().asPath,p=o.o6||"https://workramen.com",v=s?(0,c.Qt)({path:m,origin:"https://workramen.com"}):(0,c.Qt)({path:m,origin:p}),{title:j,description:g,siteName:w,canonical:b=v,nextSeoProps:N={},app:y,meeting:C,isBrandingHidden:k}=e,Z=(0,c.UX)("ogImage")+l({title:j,description:g}),S=d(g,158),I="".concat(j).concat(k?"":" | ".concat(o.iC)),R=f({title:I,image:Z,description:S,canonical:b,siteName:w});if(C){let e=(0,c.UX)("ogImage")+a(C);R=f({title:I,description:S,image:e,canonical:b,siteName:w})}if(y){let e=(0,c.UX)("ogImage")+r({...y,description:S});R=f({title:I,description:S,image:e,canonical:b,siteName:w})}let U=x()(N,R);return(0,n.jsx)(u.PB,{...U})}},742:function(e,t,s){s.d(t,{Z:function(){return u}});var n=s(52322),a=s(2784),r=s(89097),l=s(47982),i=s(39097),o=s.n(i),c=s(5632),d=s(37950),m=s(51392),x=function(e){let{name:t,href:s,linkProps:a,avatar:i,...x}=e,{t:u,isLocaleReady:h}=(0,l.b)(),{asPath:f}=(0,c.useRouter)(),p=f.includes(s);return(0,n.jsxs)(o(),{href:s,...a,className:(0,r.Z)(p?"font-bold border-b-2 text-[#5434D4] border-[#5434D4]":"font-bold text-[#717D96] hover:text-sm hover:border-black ","inline-flex items-center justify-center whitespace-nowrap text-sm font-medium leading-4 md:mb-0",x.disabled&&"pointer-events-none !opacity-30",x.className),"aria-current":p?"page":void 0,children:[x.icon&&(0,n.jsx)(x.icon,{className:(0,r.Z)(p?"text-emphasis":"text-muted","-ml-0.5 hidden h-4 w-4 ltr:mr-2 rtl:ml-2 sm:inline-block"),"aria-hidden":"true"}),h?(0,n.jsxs)("div",{className:"flex items-center gap-x-2",children:[i&&(0,n.jsx)(d.q,{size:"sm",imageSrc:i,alt:"avatar"})," ",u(t)]}):(0,n.jsx)(m.N2,{className:"h-4 w-24"})]},t)},u=function(e){let{tabs:t,linkProps:s,actions:r,...l}=e;return(0,n.jsxs)("div",{className:"mb-4 h-9 max-w-[calc(100%+50px)] lg:mb-5",children:[(0,n.jsx)("nav",{className:"no-scrollbar flex max-h-9 space-x-6 overflow-scroll","aria-label":"Tabs",...l,children:t.map((e,t)=>(0,a.createElement)(x,{className:"py-2.5 ",...e,key:t,...s}))}),r&&r]})}}}]); 2//# sourceMappingURL=1181-da8f56d3e6cc4599.js.map
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.