PageSourceSearch

https://app.workramen.com/_next/static/chunks/pages/settings/billing-15c760f73e3eb71c.js

js workramen.com collected 2026-10-04 23:45:19 UTC 15,278 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6423],{96396:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/billing",function(){return t(58229)}])},58229:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return B}});var a=t(52322),s=t(51281),i=t(89097),r=t(82076),l=t(47982),c=t(54461),o=t(90029),m=t(82123),d=t(51392),u=t(66173),x=t(40876),h=t(53119),f=t(88112),p=t(26173),g=t(37751);let E=(0,g.Z)("Key",[["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["path",{d:"m15.5 7.5 3 3L22 7l-3-3",key:"1rn1fs"}]]);var N=t(46210);let v=(0,g.Z)("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);var y=t(25014),b=t(70481),j=t(34234),w=t(27423),_=t(4358),D=t(35769),k=t(23848),I=t(39097),O=t.n(I),T=t(5632),L=t(2784);let C=[{name:"my_account",href:"/settings/my-account",icon:p.Z,children:[{name:"profile",href:"/settings/my-account/profile"},{name:"general",href:"/settings/my-account/general"},{name:"calendars",href:"/settings/my-account/calendars"},{name:"conferencing",href:"/settings/my-account/conferencing"},{name:"appearance",href:"/settings/my-account/appearance"}]},{name:"security",href:"/settings/security",icon:E,children:[{name:"password",href:"/settings/security/password"},{name:"impersonation",href:"/settings/security/impersonation"},{name:"2fa_auth",href:"/settings/security/two-factor-auth"}]},{name:"billing",href:"/settings/billing",icon:N.Z,children:[{name:"manage_billing",href:"/settings/billing"}]},{name:"developer",href:"/settings/developer",icon:v,children:[{name:"webhooks",href:"/settings/developer/webhooks"},{name:"api_keys",href:"/settings/developer/api-keys"}]},{name:"organization",href:"/settings/organizations",icon:D.Z,children:[{name:"profile",href:"/settings/organizations/profile"},{name:"general",href:"/settings/organizations/general"},{name:"members",href:"/settings/organizations/members"},{name:"appearance",href:"/settings/organizations/appearance"},{name:"billing",href:"/settings/organizations/billing"}]},{name:"teams",href:"/settings/teams",icon:y.Z,children:[]},{name:"admin",href:"/settings/admin",icon:j.Z,children:[{name:"features",href:"/settings/admin/flags"},{name:"license",href:"/auth/setup?step=1"},{name:"impersonation",href:"/settings/admin/impersonation"},{name:"apps",href:"/settings/admin/apps/calendar"},{name:"users",href:"/settings/admin/users"},{name:"organizations",href:"/settings/admin/organizations"}]}];C.find(e=>{if("security"===e.name&&!r.FH){var n;null===(n=e.children)||void 0===n||n.push({name:"sso_configuration",href:"/settings/security/sso"})}});let R=["admin"],A=["organization"],S=()=>{var e;let n=(0,k.useSession)(),{data:t}=o.S.viewer.me.useQuery(),{data:a}=(0,m.Z)(),s=(null===(e=n.data)||void 0===e?void 0:e.user.role)===c.$.ADMIN;return C.map(e=>{var s,i,l;return"/settings/my-account"===e.href?(e.name=(null==t?void 0:t.name)||"my_account",e.icon=void 0,e.avatar=(null==a?void 0:a.avatar)||r.fg+"/"+(null==n?void 0:null===(i=n.data)||void 0===i?void 0:null===(s=i.user)||void 0===s?void 0:s.username)+"/avatar.png"):"/settings/security"===e.href&&(null==t?void 0:t.identityProvider)===c.EZ.GOOGLE&&(e.children=null==e?void 0:null===(l=e.children)||void 0===l?void 0:l.filter(e=>"/settings/security/two-factor-auth"!==e.href)),e}),C.filter(e=>{var t,a;return A.includes(e.name)?!!(null===(a=n.data)||void 0===a?void 0:null===(t=a.user)||void 0===t?void 0:t.organizationId):!!s||!R.includes(e.name)})},M=e=>{let{name:n}=e;return(0,a.jsxs)(O(),{href:"/",className:"hover:bg-subtle [&[aria-current='page']]:bg-emphasis [&[aria-current='page']]:text-emphasis group-hover:text-default text-emphasis group my-6 flex h-6 max-h-6 w-full flex-row items-center rounded-md px-3 py-2 text-sm font-medium leading-4","data-testid":"vertical-tab-".concat(n),children:[(0,a.jsx)(w.Z,{className:"h-4 w-4 stroke-[2px] ltr:mr-[10px] rtl:ml-[10px] rtl:rotate-180 md:mt-0"}),(0,a.jsx)(d.Od,{title:n,as:"p",className:"max-w-36 min-h-4 truncate",loadingClassName:"ms-3",children:n})]})},Z=e=>{let{className:n="",navigationIsOpenedOnMobile:t}=e,{t:s}=(0,l.b)();(0,T.useRouter)();
1let r=S(),[c,o]=(0,L.useState)();return(0,a.jsx)("nav",{className:(0,i.Z)("no-scrollbar bg-muted fixed bottom-0 left-0 top-0 z-20 flex max-h-screen w-56 flex-col space-y-1 overflow-x-hidden overflow-y-scroll px-2 pb-3 transition-transform max-lg:z-10 lg:sticky lg:flex",n,t?"translate-x-0 opacity-100":"-translate-x-full opacity-0 lg:translate-x-0 lg:opacity-100"),"aria-label":"Tabs",children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(M,{name:s("back")}),r.map(e=>{var n,t,i;return"teams"!==e.name?(0,a.jsxs)(L.Fragment,{children:[(0,a.jsx)("div",{className:"".concat((null===(n=e.children)||void 0===n?void 0:n.length)?"":"!mb-3"),children:(0,a.jsxs)("div",{className:"[&[aria-current='page']]:bg-emphasis [&[aria-current='page']]:text-emphasis text-default group flex h-9 w-full flex-row items-center rounded-md px-2 text-sm font-medium leading-none",children:[e&&e.icon&&(0,a.jsx)(e.icon,{className:"h-[16px] w-[16px] stroke-[2px] ltr:mr-3 rtl:ml-3 md:mt-0"}),!e.icon&&(null==e?void 0:e.avatar)&&(0,a.jsx)("img",{className:"h-4 w-4 rounded-full ltr:mr-3 rtl:ml-3",src:null==e?void 0:e.avatar,alt:"User Avatar"}),(0,a.jsx)(d.Od,{title:e.name,as:"p",className:"truncate text-sm font-medium leading-5",loadingClassName:"ms-3",children:s(e.name)})]})}),(0,a.jsx)("div",{className:"my-3 space-y-0.5",children:null===(t=e.children)||void 0===t?void 0:t.map((n,t)=>{var i;return(0,a.jsx)(u.Z,{name:s(n.name),isExternalLink:n.isExternalLink,href:n.href||"/",textClassNames:"px-3 text-emphasis font-medium text-sm",className:"my-0.5 h-7 ".concat(e.children&&t===(null===(i=e.children)||void 0===i?void 0:i.length)-1&&"!mb-3"),disableChevron:!0},n.href)})})]},e.href):(0,a.jsx)(L.Fragment,{children:(0,a.jsx)("div",{className:"".concat((null===(i=e.children)||void 0===i?void 0:i.length)?"":"mb-3"),children:(0,a.jsx)(O(),{href:e.href,children:(0,a.jsxs)("div",{className:"hover:bg-subtle [&[aria-current='page']]:bg-emphasis [&[aria-current='page']]:text-emphasis group-hover:text-default text-default group flex h-9 w-full flex-row items-center rounded-md px-2 py-[10px]  text-sm font-medium leading-none",children:[e&&e.icon&&(0,a.jsx)(e.icon,{className:"h-[16px] w-[16px] stroke-[2px] ltr:mr-3 rtl:ml-3 md:mt-0"}),(0,a.jsx)(d.Od,{title:e.name,as:"p",className:"truncate text-sm font-medium leading-5",loadingClassName:"ms-3",children:s(e.name)})]})})})},e.href)})]})})},P=e=>{let{t:n}=(0,l.b)(),t=(0,T.useRouter)();return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("nav",{className:"bg-muted border-muted sticky top-0 z-20 flex w-full items-center justify-between border-b py-2 sm:relative lg:hidden",children:(0,a.jsxs)("div",{className:"flex items-center space-x-3 ",children:[(0,a.jsx)(x.z,{StartIcon:_.Z,color:"minimal",variant:"icon",onClick:e.onSideContainerOpen,children:(0,a.jsx)("span",{className:"sr-only",children:n("show_navigation")})}),(0,a.jsxs)("button",{className:"hover:bg-emphasis flex items-center space-x-2 rounded-md px-3 py-1 rtl:space-x-reverse",onClick:()=>t.back(),children:[(0,a.jsx)(w.Z,{className:"text-default h-4 w-4"}),(0,a.jsx)("p",{className:"text-emphasis font-semibold",children:n("settings")})]})]})})})};function G(e){let{children:n,...t}=e,i=(0,T.useRouter)(),r=(0,L.useState)(!1),{t:c}=(0,l.b)(),[o,m]=r;return(0,L.useEffect)(()=>{let e=()=>{window.innerWidth>=1024&&m(!1)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,L.useEffect)(()=>{o&&m(!o)},[i.asPath]),(0,a.jsx)(s.ZP,{withoutSeo:!0,flexChildrenContainer:!0,hideHeadingOnMobile:!0,...t,SidebarContainer:(0,a.jsxs)(a.Fragment,{children:[o&&(0,a.jsx)("button",{onClick:()=>m(!1),className:"fixed left-0 top-0 z-10 h-full w-full bg-black/50",children:(0,a.jsx)("span",{className:"sr-only",children:c("hide_navigation")})}),(0,a.jsx)(Z,{navigationIsOpenedOnMobile:o})]}),drawerState:r,MobileNavigationContainer:null,TopNavContainer:(0,a.jsx)(P,{onSideContainerOpen:()=>m(!o)}),children:(0,a.jsx)("div",{className:"flex flex-1 [&>*]:flex-1",children:(0,a.jsxs)("div",{className:"mx-auto max-w-full justify-center md:max-w-3xl",children:[(0,a.jsx)(z,{}),(0,a.jsx)(h.Z,{children:(0,a.jsx)(L.Suspense,{fallback:(0,a.jsx)(b.Z,{}),children:n})})]})})})}function z(){let{meta:e}=(0,f.jq)(),{t:n,isLocaleReady:t}=(0,l.b)();return(0,a.jsx)("header",{className:"mx-auto block justify-between pt-8 sm:flex",children:(0,a.jsxs)("div",{className:"border-subtle mb-8 flex w-full items-center pb-1",children:[e.backButton&&(0,a.jsx)("a",{href:"javascript:history.back()",children:(0,a.jsx)(w.Z,{className:"mr-7"})}),(0,a.jsxs)("div",{children:[e.title&&t?(0,a.jsx)("h1",{className:"font-cal text-emphasis mb-1 text-xl font-bold leading-5 tracking-wide",children:n(e.title)}):(0,a.jsx)("div",{className:"bg-emphasis mb-1 h-6 w-24 animate-pulse rounded-md"}),e.description&&t?(0,a.jsx)("p",{className:"text-default text-sm ltr:mr-4 rtl:ml-4",children:n(e.description)}):(0,a.jsx)("div",{className:"bg-emphasis mb-1 h-6 w-32 animate-pulse rounded-md"})]}),(0,a.jsx)("div",{className:"ms-auto flex-shrink-0",children:e.CTA})]})})}var F=t(43441),U=t(11394);let W=e=>{let{title:n,description:t,className:s,children:r}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("section",{className:(0,i.Z)("text-default flex flex-col sm:flex-row",s),children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"font-medium",children:n}),(0,a.jsx)("p",{children:t})]}),(0,a.jsx)("div",{className:"flex-shrink-0 pt-3 sm:ml-auto sm:pl-3 sm:pt-0",children:r})]}),(0,a.jsx)("hr",{className:"border-subtle"})]})},V=()=>{let{t:e}=(0,l.b)(),n=(0,T.useRouter)(),t=n.asPath,s="/api/integrations/stripepayment/portal?returnTo=".concat(r.fg).concat(t),i=async()=>{await open()};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(f.ZP,{title:e("billing"),description:e("manage_billing_description")}),(0,a.jsxs)("div",{className:"space-y-6 text-sm sm:space-y-8",children:[(0,a.jsx)(W,{title:e("view_and_manage_billing_details"),description:e("view_and_edit_billing_details"),children:(0,a.jsx)(x.z,{color:"primary",className:"text-white",href:s,target:"_blank",EndIcon:F.Z,children:e("billing_portal")})}),(0,a.jsx)(W,{title:e("need_anything_else"),description:e("further_billing_help"),children:(0,a.jsx)(x.z,{color:"secondary",onClick:i,children:e("contact_support")})})]})]})};V.getLayout=e=>(0,a.jsx)(G,{children:e}),V.PageWrapper=U.Z;var B=V},84788:function(e,n,t){"use strict";t.d(n,{Z:function(){return s}});var a=t(37751);let s=(0,a.Z)("ChevronRight",[["polyline",{points:"9 18 15 12 9 6",key:"1rtp27"}]])},70481:function(e,n,t){"use strict";t.d(n,{Z:function(){return s}});var a=t(37751);let s=(0,a.Z)("Loader",[["line",{x1:"12",x2:"12",y1:"2",y2:"6",key:"gza1u7"}],["line",{x1:"12",x2:"12",y1:"18",y2:"22",key:"1qhbu9"}],["line",{x1:"4.93",x2:"7.76",y1:"4.93",y2:"7.76",key:"xae44r"}],["line",{x1:"16.24",x2:"19.07",y1:"16.24",y2:"19.07",key:"bxnmvf"}],["line",{x1:"2",x2:"6",y1:"12",y2:"12",key:"89khin"}],["line",{x1:"18",x2:"22",y1:"12",y2:"12",key:"pb8tfm"}],["line",{x1:"4.93",x2:"7.76",y1:"19.07",y2:"16.24",key:"1uxjnu"}],["line",{x1:"16.24",x2:"19.07",y1:"7.76",y2:"4.93",key:"6duxfx"}]])},34234:function(e,n,t){"use strict";t.d(n,{Z:function(){return s}});var a=t(37751);
1let s=(0,a.Z)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},4358:function(e,n,t){"use strict";t.d(n,{Z:function(){return s}});var a=t(37751);let s=(0,a.Z)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]])},54461:function(e,n,t){"use strict";t.d(n,{$:function(){return r},BW:function(){return h},EZ:function(){return i},Gh:function(){return x},Nz:function(){return m},T8:function(){return f},_m:function(){return u},ck:function(){return d},dH:function(){return a},fF:function(){return o},gn:function(){return c},nJ:function(){return l},tN:function(){return s}});let a={ROUND_ROBIN:"ROUND_ROBIN",COLLECTIVE:"COLLECTIVE",MANAGED:"MANAGED"},s={UNLIMITED:"UNLIMITED",ROLLING:"ROLLING",RANGE:"RANGE"},i={CAL:"CAL",GOOGLE:"GOOGLE",SAML:"SAML"},r={USER:"USER",ADMIN:"ADMIN"},l={MEMBER:"MEMBER",ADMIN:"ADMIN",OWNER:"OWNER"},c={CANCELLED:"CANCELLED",ACCEPTED:"ACCEPTED",REJECTED:"REJECTED",PENDING:"PENDING"},o={TEXT:"TEXT",TEXTLONG:"TEXTLONG",NUMBER:"NUMBER",BOOL:"BOOL",RADIO:"RADIO",PHONE:"PHONE"},m={calendar:"calendar",messaging:"messaging",other:"other",payment:"payment",video:"video",web3:"web3",automation:"automation",analytics:"analytics",conferencing:"conferencing",crm:"crm"},d={FREE_TIER:"FREE_TIER",TEAM:"TEAM",PER_USER:"PER_USER"},u={DRAFT:"DRAFT",PENDING:"PENDING",COMPLETED:"COMPLETED"},x={FIRST_PAGE:"FIRST_PAGE",LAST_PAGE:"LAST_PAGE",ALL_PAGES:"ALL_PAGES",NO_PAGES:"NO_PAGES"},h={SENT:"SENT",RESENT:"RESENT",VIEWED:"VIEWED",VIEW_DONE:"VIEW_DONE",SIGNED:"SIGNED",COMPLETED:"COMPLETED",DOWNLOADED:"DOWNLOADED",REMINDER:"REMINDER",AUDIT_VIEWED:"AUDIT_VIEWED",PRINTED:"PRINTED"},f={BOOKED_MEETING:"BOOKED_MEETING",VISITED_LINK:"VISITED_LINK",VIEWED_DOCUMENT:"VIEWED_DOCUMENT",SIGNED_DOCUMENT:"SIGNED_DOCUMENT",VISITED_PLACE:"VISITED_PLACE"}},66173:function(e,n,t){"use strict";var a=t(52322),s=t(89097),i=t(47982),r=t(39097),l=t.n(r),c=t(5632),o=t(2784),m=t(43441),d=t(84788),u=t(51392);let x=e=>{var n;let{name:t,href:r,info:h,isChild:f,disableChevron:p,linkProps:g,...E}=e,{t:N}=(0,i.b)(),{asPath:v}=(0,c.useRouter)(),y=v.startsWith(r);return(0,a.jsx)(o.Fragment,{children:!E.hidden&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(l(),{href:r,...g,target:E.isExternalLink?"_blank":"_self",className:(0,s.Z)(E.textClassNames||"text-default text-sm font-medium leading-none","min-h-8 hover:bg-gray-200 hover:text-awst [&[aria-current='page']]:bg-emphasis [&[aria-current='page']]:text-awst group-hover:text-default group flex w-64 flex-row items-center rounded-md px-3 py-[10px]",E.disabled&&"pointer-events-none !opacity-30",(f||!E.icon)&&"ml-7 w-auto ltr:mr-5 rtl:ml-5",h?"h-14":"h-6",E.className),"data-testid":"vertical-tab-".concat(t),"aria-current":y?"page":void 0,children:[E.icon&&(0,a.jsx)(E.icon,{className:(0,s.Z)("h-[16px] w-[16px] stroke-[2px] ltr:mr-2 rtl:ml-2 md:mt-0",E.iconClassName)}),(0,a.jsxs)("div",{className:"h-fit",children:[(0,a.jsxs)("span",{className:"flex items-center space-x-2 rtl:space-x-reverse",children:[(0,a.jsx)(u.Od,{title:N(t),as:"p",className:"max-w-36 min-h-4 mt-px truncate",children:N(t)}),E.isExternalLink?(0,a.jsx)(m.Z,{}):null]}),h&&(0,a.jsx)(u.Od,{as:"p",title:N(h),className:"max-w-44 mt-1 truncate text-xs font-normal",children:N(h)})]}),!p&&y&&(0,a.jsx)("div",{className:"ml-auto self-center",children:(0,a.jsx)(d.Z,{width:20,height:20,className:"text-awst h-auto w-[20px] stroke-[1.5px]"})})]},t),null===(n=E.children)||void 0===n?void 0:n.map(e=>(0,a.jsx)(x,{...e,isChild:!0},e.name))]})},t)};n.Z=x}},function(e){e.O(0,[8934,937,4294,6862,2043,9097,8537,4408,6281,241,4803,9637,2620,1394,1056,3798,1281,9774,2888,179],function(){return e(e.s=96396)}),_N_E=e.O()}]);
2//# sourceMappingURL=billing-15c760f73e3eb71c.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.