1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4953],{94953:(e,a,t)=>{t.r(a),t.d(a,{default:()=>c});var s=t(95155),n=t(12115),i=t(10061);let c=()=>{let[e,a]=(0,n.useState)(),[t,c]=(0,n.useState)();async function l(e){e&&(await fetch("/api/integrations/basecamp3/projectMutation",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectId:e.value})}),c(e))}return(0,n.useEffect)(()=>{!async function(){var e;let t=await fetch("/api/integrations/basecamp3/projects");if(!t.ok)return;let s=await t.json(),n=null==s?void 0:s.currentProject,i=null==(e=null==s?void 0:s.projects)?void 0:e.map(e=>({value:String(e.id),label:e.name}));if(i&&(a(i),n)){let e=i.find(e=>e.value===String(n));e&&c(e)}}()},[]),(0,s.jsxs)("div",{className:"mt-2 text-sm",children:[(0,s.jsxs)("div",{className:"flex gap-3",children:[(0,s.jsx)("div",{className:"items-center",children:(0,s.jsx)("p",{className:"py-2",children:"Link a Basecamp project to this event:"})}),(0,s.jsx)(i.S,{placeholder:"Select project",options:e,isLoading:!e,className:"md:min-w-[120px]",onChange:l,value:t})]}),(0,s.jsxs)("div",{className:"mt-2",children:["Please note that as of now you can only link ",(0,s.jsx)("span",{className:"italic",children:"one"})," of your projects to cal.com"]})]})}}}]);
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.