PageSourceSearch

https://cal.aala.ai/_next/static/chunks/38117.70d6585f30a94c33.js

js aala.ai collected 2026-10-05 12:26:06 UTC 8,136 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[38117],{10517:(e,t,a)=>{a.d(t,{at:()=>h,l6:()=>m,zM:()=>p});var n=a(54568),l=a(60728),i=a(7620),s=a(73904),r=a(1325),u=a(67444),d=a(25518),o=a(93443),c=a(44162);let m=e=>{let{components:t,variant:a="default",size:l="md",grow:r=!0,...d}=e,{classNames:m,innerClassNames:p,menuPlacement:h="auto",...x}=d,f=i.useMemo(()=>(0,c._)({components:t||{},menuPlacement:h}),[t,h]),v=d.isMulti||d.isLoading||d.isClearable;return(0,n.jsx)(s.Ay,{...f,menuPlacement:h,styles:{control:e=>({...e,minHeight:"sm"===l?"28px":"32px",height:r?"auto":"sm"===l?"28px":"32px"})},classNames:{input:()=>(0,u.A)("text-emphasis",null==p?void 0:p.input),option:e=>(0,u.A)("bg-default flex cursor-pointer justify-between py-1.5 px-2 rounded-md text-default items-center",e.isFocused&&"bg-subtle",e.isDisabled&&"bg-muted",e.isSelected&&"bg-emphasis text-default",null==p?void 0:p.option),placeholder:e=>(0,u.A)("text-muted",e.isFocused&&"checkbox"!==a&&"hidden"),dropdownIndicator:()=>(0,u.A)("text-default","w-4 h-4","flex items-center justify-center "),control:e=>(0,u.A)((0,o.z9)({size:l}),e.isMulti?"checkbox"===a?"px-3 h-fit":e.hasValue?"p-1 h-fit":"px-3 h-fit":"sm"===l?"h-7 px-2 py-1":"h-8 px-3 py-2",d.isDisabled&&"bg-subtle","rounded-[10px]","[&:focus-within]:border-emphasis [&:focus-within]:shadow-outline-gray-focused [&:focus-within]:ring-0 !flex",null==p?void 0:p.control),singleValue:()=>(0,u.A)("text-default placeholder:text-muted",null==p?void 0:p.singleValue),valueContainer:()=>(0,u.A)("text-default placeholder:text-muted flex gap-1",null==p?void 0:p.valueContainer),multiValue:()=>(0,u.A)("font-medium inline-flex items-center justify-center rounded bg-emphasis text-emphasis leading-none text-xs","sm"==l?"px-1.5 py-[1px] rounded-md":"py-1 px-1.5 leading-none rounded-lg"),menu:()=>(0,u.A)("rounded-lg bg-default text-sm leading-4 text-default mt-1 border border-subtle shadow-dropdown p-1",null==p?void 0:p.menu),groupHeading:()=>"leading-none text-xs text-muted p-2 font-medium ml-1",menuList:()=>(0,u.A)("scroll-bar scrollbar-track-w-20 rounded-md flex flex-col space-y-[1px]",null==p?void 0:p.menuList),indicatorsContainer:e=>(0,u.A)("flex !items-start justify-center mt-0.5 h-full",e.selectProps.menuIsOpen?v?"[&>*:last-child]:rotate-180 [&>*:last-child]:transition-transform [&>*:last-child]:w-4 [&>*:last-child]:h-4":"rotate-180 transition-transform w-4 h-4":v?"[&>*:last-child]:w-4 [&>*:last-child]:h-4 text-default":"w-4 h-4 text-default"),multiValueRemove:()=>"text-default py-auto",...m},...x})},p=function(e){var t;let{t:a}=(0,r.Y)(),{label:i=a(e.name||""),containerClassName:s,labelProps:o,className:c,...p}=e,h=(0,l.B)();return(0,n.jsxs)("div",{className:(0,u.A)(s),children:[(0,n.jsx)("div",{className:(0,u.A)(c),children:!!i&&(0,n.jsx)(d.J,{htmlFor:h,...o,className:(0,u.A)(e.error&&"text-error",null==(t=e.labelProps)?void 0:t.className),children:i})}),(0,n.jsx)(m,{...p})]})};function h(e){let{required:t=!1,onChange:a,value:l,...s}=e,[r,d]=i.useState(()=>l instanceof Array||!l?"":l.value||""),o=i.useCallback(e=>{d(e instanceof Array?e.map(e=>e.value).join(","):(null==e?void 0:e.value)||"")},[]);return i.useEffect(()=>{l&&o(l)},[l,o]),(0,n.jsxs)("div",{className:(0,u.A)("relative",s.className),children:[(0,n.jsx)(m,{value:l,...s,onChange:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),l=1;l<t;l++)n[l-1]=arguments[l];o(e),a&&a(e,...n)}}),t&&(0,n.jsx)("input",{tabIndex:-1,autoComplete:"off",style:{opacity:0,width:"100%",height:1,position:"absolute"},value:r,onChange:()=>{},required:t})]})}},38117:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});var n=a(54568),l=a(7620),i=a(21796),s=a(10517);let r=e=>{let{}=e,[t,a]=(0,l.useState)(),[r,u]=(0,l.useState)(),{data:d}=i.i.viewer.appBasecamp3.projects.useQuery(),o=i.i.viewer.appBasecamp3.projectMutation.useMutation();return(0,l.useEffect)(function(){var e,t,n;u({value:null==d?void 0:d.projects.currentProject,label:null==d||null==(t=d.projects)||null==(e=t.find(e=>e.id===(null==d?void 0:d.currentProject)))?void 0:e.name}),a(null==d||null==(n=d.projects)?void 0:n.map(e=>({value:e.id,label:e.name})))},[d]),(0,n.jsxs)("div",{className:"mt-2 text-sm",children:[(0,n.jsxs)("div",{className:"flex gap-3",children:[(0,n.jsx)("div",{className:"items-center",children:(0,n.jsx)("p",{className:"py-2",children:"Link a Basecamp project to this event:"})}),(0,n.jsx)(s.l6,{placeholder:"Select project",options:t,isLoading:!t,className:"md:min-w-[120px]",onChange:e=>{e&&(o.mutate({projectId:null==e?void 0:e.value.toString()}),u(e))},value:r})]}),(0,n.jsxs)("div",{className:"mt-2",children:["Please note that as of now you can only link ",(0,n.jsx)("span",{className:"italic",children:"one"})," of your projects to cal.com"]})]})}},44162:(e,t,a)=>{a.d(t,{_:()=>v});var n=a(54568),l=a(26477),i=a(67444),s=a(95892),r=a(49642),u=a.n(r),d=a(1325),o=a(52162),c=a(41538);let m=function(e){let{teamId:t}=e,{t:a}=(0,d.Y)();return(0,n.jsx)(o.A,{content:a("requires_credits_tooltip"),children:(0,n.jsx)(u(),{href:t?"/settings/teams/".concat(t,"/billing"):"/settings/billing",children:(0,n.jsx)(c.E,{variant:"gray",className:"whitespace-nowrap",children:a("requires_credits")})})})};var p=a(16706);let h=e=>{let{inputClassName:t,...a}=e;return(0,n.jsx)(l.c.Input,{inputClassName:(0,i.A)("focus:ring-0 focus:ring-offset-0 !text-default dark:!text-white",t),...a})},x=e=>{let{...t}=e;return(0,n.jsx)(l.c.Option,{...t,children:(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{className:"w-full","data-testid":"select-option-".concat(t.value),children:t.label||(0,n.jsx)(n.Fragment,{children:"\xa0"})}),t.data.needsTeamsUpgrade?(0,n.jsx)(s.u,{checkForActiveStatus:!0}):t.data.needsCredits?(0,n.jsx)(m,{teamId:t.data.creditsTeamId}):(0,n.jsx)(n.Fragment,{}),t.isSelected&&(0,n.jsx)(p.A,{name:"check",className:"ml-2 h-4 w-4"})]})})},f=e=>{var t;let a=null!=(t=e.selectProps["data-testid"])?t:"select-control";return(0,n.jsx)("span",{"data-testid":a,children:(0,n.jsx)(l.c.Control,{...e})})},v=e=>{let{components:t,menuPlacement:a="auto"}=e;return{menuPlacement:a,components:{Input:h,Option:x,Control:f,...t},unstyled:!0}}},79819:(e,t,a)=>{a.d(t,{A:()=>n});let n=(e,t)=>(function(e){return"object"==typeof e&&!Array.isArray(e)}
1)(null==e?void 0:e.metadata)&&!!(null==e?void 0:e.metadata)&&t in e.metadata},95892:(e,t,a)=>{a.d(t,{u:()=>o});var n=a(54568),l=a(49642),i=a.n(l),s=a(99132),r=a(1325),u=a(52162),d=a(41538);let o=function(e){let{checkForActiveStatus:t}=e,{t:a}=(0,r.Y)(),{hasPaidPlan:l}=(0,s.Ln)(),{hasActiveTeamPlan:o,isTrial:c}=(0,s.SY)();if(l&&(!t||o))return null;let m=a(c?"trial_mode":l?"inactive_team_plan":"upgrade"),p=a(c?"limited_access_trial_mode":l?"inactive_team_plan_description":"upgrade_to_enable_feature");return(0,n.jsx)(u.A,{content:p,children:(0,n.jsx)(i(),{href:l?"":"/teams",children:(0,n.jsx)(d.E,{variant:"gray",children:m})})})}},99132:(e,t,a)=>{a.d(t,{Ln:()=>s,SY:()=>d,if:()=>u,nq:()=>o,zJ:()=>r});var n=a(21796),l=a(38118),i=a(79819);function s(){if(l.a3)return{isPending:!1,hasPaidPlan:!0};let{data:e,isPending:t}=n.i.viewer.teams.hasTeamPlan.useQuery(),{data:a,isPending:s}=n.i.viewer.me.get.useQuery(),r=!!(a&&(0,i.A)(a,"isPremium"))&&!!a.metadata.isPremium;return{isPending:t||s,hasPaidPlan:(null==e?void 0:e.hasTeamPlan)||r}}function r(){let e=n.i.viewer.teams.listInvites.useQuery();return{isPending:e.isPending,listInvites:e.data}}function u(){let{data:e,isPending:t}=n.i.viewer.teams.hasTeamPlan.useQuery();return{isPending:t,hasTeamPlan:null==e?void 0:e.hasTeamPlan}}function d(){if(l.a3)return{isPending:!1,hasActiveTeamPlan:!0,isTrial:!1};let{data:e,isPending:t}=n.i.viewer.teams.hasActiveTeamPlan.useQuery();return{isPending:t,hasActiveTeamPlan:!!(null==e?void 0:e.isActive),isTrial:!!(null==e?void 0:e.isTrial)}}function o(){if(l.a3)return{isPending:!1,hasActiveTeamPlan:!0,isTrial:!1};let{data:e,isPending:t}=n.i.viewer.teams.hasActiveTeamPlan.useQuery({ownerOnly:!0});return{isPending:t,hasActiveTeamPlan:!!(null==e?void 0:e.isActive),isTrial:!!(null==e?void 0:e.isTrial)}}}}]);
2//# sourceMappingURL=38117.70d6585f30a94c33.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.