PageSourceSearch

https://seniorexecutive.com/_next/static/chunks/8351.5aa465267a6f762d.js

js seniorexecutive.com collected 2026-10-02 06:21:56 UTC 10,044 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1654,8351],{18351:(e,l,a)=>{a.r(l),a.d(l,{default:()=>d});var s=a(95155),t=a(10061),n=a(12115),i=a(24680),r=a(89273);let d=function({app:e,eventType:l,eventTypeFormMetadata:a,onAppInstallSuccess:d}){let c=t.x.useSearchParams(),u=t.x.usePathname(),o=(0,n.useMemo)(()=>`${u}${c?`?${c.toString()}`:""}`,[u,c]),{getAppData:p,setAppData:m,disabled:x}=(0,t.y)(),[h,b]=(0,n.useState)(p("enabled")),f=(0,t.z)(a),{t:v}=(0,t.w)(),g=!h&&f;return(0,s.jsx)(i.A,{onAppInstallSuccess:d,returnTo:t.W+o,app:e,switchChecked:h,switchOnClick:e=>{b(e)},description:(0,s.jsx)(s.Fragment,{children:"Add Paypal payment to your events"}),disableSwitch:g,switchTooltip:g?v("other_payment_app_enabled"):void 0,children:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(r.default,{eventType:l,slug:e.slug,disabled:x,getAppData:p,setAppData:m})})})}},24680:(e,l,a)=>{a.d(l,{A:()=>u,S:()=>d});var s=a(95155),t=a(10061);let n=({children:e,ref:l,as:a})=>(0,s.jsx)(a?t.ai:"h2",{ref:l,className:"text-emphasis text-base font-semibold leading-none",children:e}),i=({children:e,ref:l,as:a})=>(0,s.jsx)(a?t.ai:"h3",{ref:l,className:"text-subtle line-clamp-1 text-sm",children:e}),r=({ref:e,name:l,size:a="md",iconSlot:n})=>(0,s.jsx)("div",{ref:e,className:(0,t.r)("bg-default border-subtle border-subtle flex items-center justify-center border","sm"===a&&"rounded-md p-1","md"===a&&"rounded-[10px] p-1.5"),children:n||(0,s.jsx)(t.R,{name:l,className:(0,t.r)("sm"===a&&"h-4 w-4","md"===a&&"h-6 w-6")})}),d=Object.assign(({children:e,ref:l,className:a})=>{let[n]=(0,t.ah)();return(0,s.jsx)("div",{ref:n,className:(0,t.r)("bg-muted flex flex-col gap-4 roun
1ded-2xl p-4",a),children:e})},{Header:({children:e,ref:l,icon:a,title:t,description:d,iconSlot:c,rawHeading:u})=>(0,s.jsxs)("div",{ref:l,className:"flex items-center justify-between gap-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[a&&!c&&(0,s.jsx)(r,{name:a}),c&&(0,s.jsx)(r,{iconSlot:c}),(0,s.jsxs)("div",{className:"flex flex-col gap-0.5",children:[t&&(0,s.jsx)(n,{children:t}),d&&(0,s.jsx)(i,{children:d}),u&&u]})]}),e]}),Content:({children:e,ref:l})=>(0,s.jsx)("div",{ref:l,className:"flex flex-col gap-4",children:e}),Title:n,Description:i,SubSection:({children:e,ref:l})=>{let[a]=(0,t.ah)();return(0,s.jsx)("div",{ref:a,className:"border-muted bg-default flex flex-col gap-4 rounded-xl border p-3",children:e})},SubSectionHeader:({children:e,ref:l,icon:a,title:n,classNames:i,justify:d="between",labelFor:c})=>(0,s.jsxs)("div",{ref:l,className:(0,t.r)("flex items-center gap-2","between"===d?"justify-between":"justify-start",null==i?void 0:i.container),children:[(0,s.jsxs)("div",{className:(0,t.r)("flex items-center gap-2",null==i?void 0:i.title),children:[a&&(0,s.jsx)(r,{name:a,size:"sm"}),(0,s.jsx)("div",{className:(0,t.r)("flex",null==i?void 0:i.title),children:(0,s.jsx)("h4",{className:"text-default text-sm font-medium leading-none",id:c,children:n})})]}),e]}),SubSectionContent:({children:e,ref:l,invert:a,classNames:n})=>(0,s.jsx)("div",{ref:l,className:(0,t.r)("bg-muted flex flex-col rounded-lg px-[6px] py-1",a&&"bg-default border-subtle border",null==n?void 0:n.container),children:e}),SubSectionNested:({children:e,ref:l})=>(0,s.jsx)("div",{ref:l,className:"bg-default border-subtle flex flex-col gap-2 rounded-xl border p-2",children:e})});function c({appId:e,className:l,returnTo:a,teamId:n,onAppInstallSuccess:i}){let{t:r}=(0,t.w)(),{data:d}=function(e){let{status:l}=t.aj.useSession();return t.ak.viewer.apps.appById.useQuery({appId:e},{enabled:"authenticated"===l})}(e),u=(0,t.v)(null,{returnTo:a,onSuccess:e=>{i(),null!=e&&e.setupPending||(0,t.a3)(r("app_successfully_installed"),"success")},onError:e=>{e instanceof Error&&(0,t.a3)(e.message||r("app_could_not_be_installed"),"error")}});return d?(0,s.jsx)(t.al,{type:d.type,teamsPlanRequired:d.teamsPlanRequired,wrapperClassName:(0,t.r)("[@media(max-width:260px)]:w-full",l),render:({useDefaultComponent:e,...l})=>(e&&(l={...l,onClick:()=>{u.mutate({type:d.type,variant:d.variant,slug:d.slug,...n&&{teamId:n}})}}),(0,s.jsx)(t.B,{loading:u.isPending,color:"secondary",className:"[@media(max-width:260px)]:w-full [@media(max-width:260px)]:justify-center",StartIcon:"plus",...l,children:r("add")}))}):null}function u({app:e,description:l,switchOnClick:a,switchChecked:n,children:i,returnTo:r,teamId:o,disableSwitch:p,switchTooltip:m,hideSettingsIcon:x=!1,hideAppCardOptions:h=!1,onAppInstallSuccess:b}){let{t:f}=(0,t.w)(),[v]=(0,t.ah)(),{setAppData:g,LockedIcon:j,disabled:N}=(0,t.y)(),y=(0,t.am)();return(0,s.jsxs)(d,{className:(0,t.r)(!(null!=e&&e.isInstalled)&&"rounded-xl"),children:[(0,s.jsx)(d.Header,{rawHeading:(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex w-full items-center gap-1",children:[(0,s.jsx)(d.Title,{children:null==e?void 0:e.name}),!(null!=e&&e.isInstalled)&&(0,s.jsx)("span",{className:"bg-emphasis ml-1 rounded px-1 py-0.5 text-xs font-medium leading-3 tracking-[0.01em]",children:(null==e?void 0:e.categories[0].charAt(0).toUpperCase())+(null==e?void 0:e.categories[0].slice(1))})]}),(0,s.jsx)(d.Description,{children:null==e?void 0:e.description})]}),iconSlot:(0,s.jsx)(t.an,{href:`/apps/${e.slug}`,className:"flex h-8 w-8 items-center justify-center",children:(0,s.jsx)("img",{className:(0,t.r)((null==e?void 0:e.logo.includes("-dark"))&&"dark:invert","max-h-full max-w-full object-contain"),src:null==e?void 0:e.logo,alt:null==e?void 0:e.name})}),children:(0,s.jsx)("div",{children:(0,s.jsx)("div",{children:null!=e&&e.isInstalled||e.credentialOwner?(0,s.jsx)("div",{className:"ml-auto flex items-center",children:(0,s.jsx)(t.p,{size:"sm",disabled:!e.enabled||N||p,onCheckedChange:e=>{a&&a(e),g("enabled",e)},checked:n,LockedIcon:j,"data-testid":`${e.slug}-app-switch`,tooltip:m})}):(0,s.jsx)(c,{className:"ml-auto flex items-center",appId:e.slug,returnTo:r,teamId:o,onAppInstallSuccess:b})})})}
1),h?null:(null==e?void 0:e.isInstalled)&&n&&(0,s.jsx)("div",{ref:v,children:void 0===e.isSetupAlready||e.isSetupAlready?(0,s.jsxs)("div",{className:"relative text-sm [&_input]:mb-0 [&_input]:leading-4",children:[!x&&!y&&(0,s.jsx)(t.an,{href:`/apps/${e.slug}/setup`,className:"absolute right-4 top-4",children:(0,s.jsx)(t.R,{name:"settings",className:"text-default h-4 w-4","aria-hidden":"true"})}),i]}):(0,s.jsxs)("div",{className:"flex h-64 w-full flex-col items-center justify-center gap-4 ",children:[(0,s.jsx)("p",{children:f("this_app_is_not_setup_already")}),(0,s.jsx)(t.an,{href:`/apps/${e.slug}/setup`,children:(0,s.jsx)(t.B,{StartIcon:"settings",children:f("setup")})})]})})]})}},51019:(e,l,a)=>{a.d(l,{a:()=>t,c:()=>s,i:()=>n});let s=[{label:"United States dollar",value:"USD"},{label:"Australian dollar",value:"AUD"},{label:"Brazilian real 2",value:"BRL"},{label:"Canadian dollar",value:"CAD"},{label:"Chinese Renmenbi 3",value:"CNY"},{label:"Czech koruna",value:"CZK"},{label:"Danish krone",value:"DKK"},{label:"Euro",value:"EUR"},{label:"Hong Kong dollar",value:"HKD"},{label:"Hungarian forint 1",value:"HUF"},{label:"Israeli new shekel",value:"ILS"},{label:"Japanese yen 1",value:"JPY"},{label:"Malaysian ringgit 3",value:"MYR"},{label:"Mexican peso",value:"MXN"},{label:"New Taiwan dollar 1",value:"TWD"},{label:"New Zealand dollar",value:"NZD"},{label:"Norwegian krone",value:"NOK"},{label:"Philippine peso",value:"PHP"},{label:"Polish złoty",value:"PLN"},{label:"Pound sterling",value:"GBP"},{label:"Russian ruble",value:"RUB"},{label:"Singapore dollar",value:"SGD"},{label:"Swedish krona",value:"SEK"},{label:"Swiss franc",value:"CHF"},{label:"Thai baht",value:"THB"}],t={USD:"$",AUD:"$",BRL:"R$",CAD:"$",CNY:"\xa5",CZK:"Kč",DKK:"kr",EUR:"€",HKD:"$",HUF:"Ft",ILS:"₪",JPY:"\xa5",MYR:"RM",MXN:"$",TWD:"$",NZD:"$",NOK:"kr",PHP:"₱",PLN:"zł",GBP:"\xa3",RUB:"₽",SGD:"$",SEK:"kr",CHF:"Fr",THB:"฿"};function n(e){return Object.keys(t).includes(e)}},89273:(e,l,a)=>{a.r(l),a.d(l,{default:()=>r});var s=a(95155),t=a(12115),n=a(51019),i=a(10061);let r=({getAppData:e,setAppData:l,eventType:a})=>{var r,d;let c=e("price"),u=e("currency")||n.c[0].value,[o,p]=(0,t.useState)(n.c.find(e=>e.value===u)),[m,x]=(0,t.useState)((0,n.i)(u)?n.a[u]:""),h=e("paymentOption"),b=(null==(r=i.K)?void 0:r.find(e=>h===e.value))||{label:i.K[0].label,value:i.K[0].value},f=!!a.seatsPerTimeSlot,[v,g]=(0,t.useState)(e("enabled")),{t:j}=(0,i.w)(),N=(null==(d=a.recurringEvent)?void 0:d.count)!==void 0;return(0,t.useEffect)(()=>{v&&(e("currency")||l("currency",n.c[0].value),e("paymentOption")||l("paymentOption",i.K[0].value))},[]),N?(0,s.jsx)(i.J,{className:"mt-2",severity:"warning",title:j("warning_recurring_event_payment")}):v?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mt-2 block items-center sm:flex",children:(0,s.jsx)(i.f,{label:"Price",labelSrOnly:!0,addOnLeading:m,addOnSuffix:u,step:"0.01",min:"0.5",type:"number",required:!0,className:"block w-full rounded-sm pl-2 text-sm",placeholder:"Price","data-testid":"paypal-price-input",onChange:e=>{l("price",(0,i.M)(Number(e.target.value),u)),o&&l("currency",o.value)},value:c>0?(0,i.O)(c,u):void 0})}),(0,s.jsxs)("div",{className:"mt-5 w-60",children:[(0,s.jsx)("label",{className:"text-default mb-1 block text-sm font-medium",htmlFor:"currency",children:j("currency")}),(0,s.jsx)(i.S,{variant:"default","data-testid":"paypal-currency-select",options:n.c,value:o,className:"text-black",defaultValue:o,onChange:e=>{e&&(p(e),x(n.a[e.value]),l("currency",e.value))}})]}),(0,s.jsxs)("div",{className:"mt-4 w-60",children:[(0,s.jsx)("label",{className:"text-default mb-1 block text-sm font-medium",htmlFor:"currency",children:"Payment option"}),(0,s.jsx)(i.S,{"data-testid":"paypal-payment-option-select",defaultValue:b?{...b,label:j(b.label)}:{...i.K[0],label:j(i.K[0].label)},options:i.K.map(e=>({...e,label:j(e.label)||e.label})),onChange:e=>{e&&l("paymentOption",e.value)},className:"mb-1 h-[38px] w-full",isDisabled:f})]}),f&&"HOLD"===h&&(0,s.jsx)(i.J,{className:"mt-2",severity:"warning",title:j("seats_and_no_show_fee_error")})]}):null}}}]);

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.