1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5873f740-5a74-54e4-979d-c57913388a51")}catch(e){}}(); 3import{a as e,t}from"./jsx-runtime-CMgEUHpv.js";import{V as n,m as r}from"./dist-CAHjj65Z.js";import{t as i}from"./useTranslation-BymTnaHx.js";import{k as a,n as o}from"./components-B8bHjdou.js";import{t as s}from"./classnames-PxzWHlFm.js";import{t as c}from"./Typography-DJfjxaJy.js";import{t as l}from"./transition-zOPc9j2i.js";var u=e(n());function d({title:e,titleId:t,...n},r){return u.createElement(`svg`,Object.assign({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,"data-slot":`icon`,ref:r,"aria-labelledby":t},n),e?u.createElement(`title`,{id:t},e):null,u.createElement(`path`,{fillRule:`evenodd`,d:`M15.75 2.25H21a.75.75 0 0 1 .75.75v5.25a.75.75 0 0 1-1.5 0V4.81L8.03 17.03a.75.75 0 0 1-1.06-1.06L19.19 3.75h-3.44a.75.75 0 0 1 0-1.5Zm-10.5 4.5a1.5 1.5 0 0 0-1.5 1.5v10.5a1.5 1.5 0 0 0 1.5 1.5h10.5a1.5 1.5 0 0 0 1.5-1.5V10.5a.75.75 0 0 1 1.5 0v8.25a3 3 0 0 1-3 3H5.25a3 3 0 0 1-3-3V8.25a3 3 0 0 1 3-3h8.25a.75.75 0 0 1 0 1.5H5.25Z`,clipRule:`evenodd`}))}var f=u.forwardRef(d),p=e(s(),1),m=()=>{let{pathname:e}=r();return{isManagePage:e.endsWith(`/manage`),isBillingPage:e.endsWith(`/billing`),isPreferencesPage:e.endsWith(`/preferences`)}},h=t(),g=({subscriberId:e,hasPreferencesEnabled:t})=>{let n=a(),{isManagePage:r,isBillingPage:s,isPreferencesPage:c}=m(),{t:l}=i(``,{keyPrefix:`settings_side_nav.items`}),u=[{href:`/subscribe/${e}/manage`,text:l(`general_information`),active:r},{href:`/subscribe/${e}/billing`,text:l(`billing`),active:s}];return t&&u.push({href:`/subscribe/${e}/preferences`,text:l(`preferences`),active:c}),(0,h.jsxs)(`ul`,{className:`space-y-4`,children:[u.map(e=>(0,h.jsx)(`li`,{children:(0,h.jsx)(o,{to:e.href,className:(0,p.default)(`text-gray-500 transition-colors hover:text-gray-700 active:text-gray-400`,{"cursor-default font-medium text-gray-900 hover:text-gray-900 active:text-gray-900":e.active}),"aria-current":e.active?`page`:void 0,children:e.text})},e.href)),(0,h.jsxs)(`button`,{className:`flex items-center gap-4 text-gray-500 transition-colors hover:text-gray-700 active:text-gray-400`,onClick:()=>{let e=new FormData;e.append(`pathname`,window?.location?.pathname),n(e,{method:`post`,action:`/logout`})},children:[(0,h.jsx)(`span`,{children:l(`logout`)}),(0,h.jsx)(f,{className:`inline-block h-4 w-4`})]})]})},_=({subscriberId:e,children:t,hasPreferencesEnabled:n=!1,isLoggedIn:r})=>(0,h.jsxs)(`div`,{className:`mx-auto mb-40 flex max-w-3xl flex-col items-start justify-between gap-8 px-4 py-8 sm:mb-0 lg:max-w-5xl lg:flex-row lg:items-start lg:justify-start xl:max-w-6xl xl:px-0 xl:pl-4`,children:[r&&e&&(0,h.jsx)(`div`,{className:`w-full max-w-2xl lg:w-60`,children:(0,h.jsx)(g,{hasPreferencesEnabled:n,subscriberId:e})}),(0,h.jsx)(`div`,{className:(0,p.default)(`flex w-full flex-col space-y-12 lg:flex-1`,!r&&`items-center`),children:t})]}),v=({color:e,className:t,size:n=`md`,delay:r,visible:i=!0})=>{let[a,o]=(0,u.useState)(i&&r===void 0);return(0,u.useEffect)(()=>{if(r){let e=setTimeout(()=>{o(i)},r);return()=>clearTimeout(e)}},[r,i]),(0,h.jsx)(l,{show:a,enter:`transition-opacity duration-200`,enterFrom:`opacity-0`,enterTo:`opacity-100`,leave:`transition-opacity duration-200`,leaveFrom:`opacity-100`,leaveTo:`opacity-0`,children:(0,h.jsxs)(`svg`,{className:(0,p.default)(`animate-spin`,t,{sm:`w-4 h-4`,md:`w-5 h-5`,lg:`w-6 h-6`}[n],`text-${e}`),xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,children:[(0,h.jsx)(`circle`,{className:`opacity-25`,cx:12,cy:12,r:10,stroke:`currentColor`,strokeWidth:4,fill:`none`}),(0,h.jsx)(`path`,{className:`opacity-75`,fill:`currentColor`,d:`M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z`})]})})};v.defaultProps={color:`gray-900`,className:void 0};var y=function(e){return e.default=`default`,e.compact=`compact`,e.wide=`wide`,e}({}),b=({density:e=y.default,children:t,className:n,id:r,backgroundColor:i=`bg-white`})=>{let a={default:`p-6`,compact:`p-4`,wide:`p-10`}[e];return(0,h.jsx)(`div`,{id:r,className:(0,p.default)(`border-surface-200 rounded-md border`,i,a,n),children:t})},x=({title:e,titleAction:t,description:n,scrollToId:r,className:i,children:a,maxWidthClassName:o=`max-w-2xl`})=>(0,h.jsxs)(b,{id:r,className:(0,p.default)(`w-full p-8`,i,o),children:[(0,h.jsxs)(`div`,{className:`mb-6 space-y-2`,children:[(0,h.jsxs)(`div`,{className:`flex justify-between`,children:[(0,h.jsx)(c,{weight:`medium`,size:`lg`,children:e}),t&&t]}),n&&(0,h.jsx)(c,{size:`sm`,className:`text-gray-700`,children:n})]}),a]});export{v as n,_ as r,x as t}; 4//# sourceMappingURL=Section-C5SudLaW.js.map
5//# debugId=5873f740-5a74-54e4-979d-c57913388a51
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.