PageSourceSearch

https://www.bossitude.com/assets/SlideUpModal-CBCD62fe.js

js bossitude.com collected 2026-10-04 08:52:09 UTC 7,552 bytes, 5 lines download raw bytes

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]="f7b31dc0-c9d8-53ef-9f4e-39c876da578c")}catch(e){}}();
3import{a as e,t}from"./jsx-runtime-CMgEUHpv.js";import{V as n,g as r,m as i}from"./dist-CAHjj65Z.js";import{t as a}from"./useTranslation-BymTnaHx.js";import{O as o,n as s}from"./components-B8bHjdou.js";import{t as c}from"./Text-B4PqLHDw.js";import{t as l}from"./XMarkIcon-DiiMYgcz.js";import{t as u}from"./Image-B1Otrzxn.js";import{t as d}from"./dialog-DQRLOcH9.js";import{t as f}from"./transition-zOPc9j2i.js";import{t as p}from"./LoginWithPasswordAction-DbTL_kDj.js";var m=e(n());function h({title:e,titleId:t,...n},r){return m.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?m.createElement(`title`,{id:t},e):null,m.createElement(`path`,{fillRule:`evenodd`,d:`M12.516 2.17a.75.75 0 0 0-1.032 0 11.209 11.209 0 0 1-7.877 3.08.75.75 0 0 0-.722.515A12.74 12.74 0 0 0 2.25 9.75c0 5.942 4.064 10.933 9.563 12.348a.749.749 0 0 0 .374 0c5.499-1.415 9.563-6.406 9.563-12.348 0-1.39-.223-2.73-.635-3.985a.75.75 0 0 0-.722-.516l-.143.001c-2.996 0-5.717-1.17-7.734-3.08Zm3.094 8.016a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z`,clipRule:`evenodd`}))}var g=m.forwardRef(h),_=t(),v=({isOpen:e,onClose:t,children:n,title:r,publication:i,alternativeAction:a})=>{let o=!!i?.has_subscription_password;return(0,_.jsx)(f,{appear:!0,show:e,as:m.Fragment,children:(0,_.jsxs)(d,{as:`div`,onClose:t,children:[(0,_.jsx)(f.Child,{as:m.Fragment,enter:`ease-out duration-50`,enterFrom:`opacity-0`,enterTo:`opacity-100`,leave:`ease-in duration-50`,leaveFrom:`opacity-100`,leaveTo:`opacity-0`,children:(0,_.jsx)(`div`,{className:`fixed inset-0 bottom-0 left-0 z-20 bg-black/60`})}),(0,_.jsx)(f.Child,{as:m.Fragment,enter:`ease-out duration-100`,enterFrom:`transform sm:translate-y-0 translate-y-1/2 opacity-0`,enterTo:`transform translate-y-0 opacity-100`,leave:`ease-in duration-100`,leaveFrom:`transform translate-y-0 opacity-100`,leaveTo:`transform sm:translate-y-0 translate-y-1/2 opacity-0`,children:(0,_.jsx)(`div`,{className:`fixed inset-0 bottom-0 left-0 z-40 flex items-end overflow-y-auto sm:items-center`,children:(0,_.jsx)(d.Panel,{className:`relative flex justify-center w-full mx-auto overflow-auto text-left align-middle transition-all transform max-w-none rounded-t-wt bg-wt-background sm:max-w-xl sm:rounded-wt`,children:(0,_.jsxs)(`div`,{className:`w-full`,children:[(0,_.jsxs)(`div`,{className:`relative p-6`,children:[(0,_.jsx)(`div`,{className:`absolute right-6`,children:(0,_.jsx)(`button`,{"aria-label":`Close`,className:`flex items-center justify-center w-6 h-6 transition-all rounded-wt hover:bg-black/5`,onClick:t,children:(0,_.jsx)(l,{className:`w-5 h-5 text-gray-400 transition-all stroke-1 hover:text-gray-700`})})}),(0,_.jsx)(`div`,{className:``,children:(0,_.jsxs)(`div`,{className:`flex flex-col`,children:[(0,_.jsx)(`div`,{className:`w-12 h-12 mx-auto overflow-hidden rounded-wt`,children:(0,_.jsx)(u,{className:`object-contain w-full h-full rounded-wt`,src:i?.logo?.thumb?.url||``,alt:`${r} logo`,aspectRatio:`square`,maxWidth:200})}),o?(0,_.jsx)(c,{as:`h2`,size:`xl`,type:`title`,weight:`medium`,theme:`default`,className:`mt-6 text-center break-words`,children:r}):(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(c,{as:`h4`,size:`2xl`,theme:`content`,className:`mt-6 text-center`,children:r})})]})}),(0,_.jsx)(`div`,{className:`mt-6`,children:n})]}),a&&(0,_.jsx)(`div`,{className:`p-6 text-center border-t`,children:a})]})})})})]})})},y=({isOpen:e,handleCloseModal:t,publication:n})=>{let{t:r}=a(),i=!!n?.has_subscription_password;return(0,_.jsx)(v,{title:r(`shared.cta.login_to_pub`,{name:n.name}),description:`${r(`nav.description`)}`,isOpen:e,onClose:t,publication:n,alternativeAction:n.private?``:(0,_.jsx)(`div`,{className:`flex flex-col`,children:(0,_.jsxs)(c,{as:`p`,size:`xs`,type:`body`,theme:`default`,children:[r(`login.sign_up_label`),` `,(0,_.jsx)(s,{to:`/subscribe`,className:`underline`,children:(0,_.jsx)(c,{as:`span`,size:`xs`,type:`body`,weight:`bold`,theme:`default`,children:r(`shared.cta.sign_up`)})})]})}),children:(0,_.jsx)(p,{onSuccess:t,bypassSparkLoopMode:!0,showLoginWithPassword:i})})},b=()=>{let[e,t]=o(),n=e.get(`modal`);return{isLoginModalOpen:n===`login`,isSignupModalOpen:n===`signup`,handleCloseModal:()=>{e.delete(`modal`),t(e,{replace:!0})},handleOpenModal:n=>{e.set(`modal`,n),t(e,{replace:!0})}}},x=e=>e===1?``:`s`,S=e=>{let t=new Date,n=new Date(e),r=t.getTime()-n.getTime(),i=Math.floor(r/1e3),a=Math.floor(i/60),o=Math.floor(a/60),s=Math.floor(o/24),c=Math.floor(s/7),l=Math.floor(c/4),u=Math.floor(l/12);return i<60?`${i} second${x(i)} ago`:a<60?`${a} minute${x(a)} ago`:o<24?`${o} hour${x(o)} ago`:s<7?`${s} day${x(s)} ago`:c<4?`${c} week${x(c)} ago`:l<12?`${l} month${x(l)} ago`:`${u} year${x(u)} ago`},C=({guid:e,setCookie:t,cookiesSet:n})=>{let[a,s]=o(),c=i(),l=r(),u=a.get(`last_resource_guid`)||e,d=a.get(`admin_token`),f=a.get(`jwt_token`),p=c.hash!==``,h=a.toString();(0,m.useEffect)(()=>
3{if(n&&u)if(t({name:`last_resource_guid`,value:u,days:1}),a.delete(`last_resource_guid`),d&&a.delete(`admin_token`),f&&a.delete(`jwt_token`),p){let e=new URLSearchParams(a);l(`${c.pathname}?${e.toString()}${c.hash}`,{replace:!0,state:{}})}else h!==a.toString()&&s(a,{replace:!0})},[n,u,h])},w=({isOpen:e,onClose:t,children:n,title:r,description:i})=>(0,_.jsx)(f,{appear:!0,show:e,as:m.Fragment,children:(0,_.jsxs)(d,{as:`div`,onClose:t,children:[(0,_.jsx)(f.Child,{as:m.Fragment,enter:`ease-out duration-50`,enterFrom:`opacity-0`,enterTo:`opacity-100`,leave:`ease-in duration-50`,leaveFrom:`opacity-100`,leaveTo:`opacity-0`,children:(0,_.jsx)(`div`,{className:`fixed inset-0 bottom-0 left-0 z-20 bg-black/60`})}),(0,_.jsx)(f.Child,{as:m.Fragment,enter:`ease-out duration-100`,enterFrom:`transform sm:translate-y-0 translate-y-1/2 opacity-0`,enterTo:`transform translate-y-0 opacity-100`,leave:`ease-in duration-100`,leaveFrom:`transform translate-y-0 opacity-100`,leaveTo:`transform sm:translate-y-0 translate-y-1/2 opacity-0`,children:(0,_.jsx)(`div`,{className:`fixed inset-0 bottom-0 left-0 z-40 flex items-end overflow-y-auto sm:items-center`,children:(0,_.jsx)(d.Panel,{className:`relative mx-auto flex w-full max-w-none transform justify-center overflow-auto rounded-t-wt bg-wt-background p-8 text-left align-middle transition-all sm:max-w-xl sm:rounded-wt`,children:(0,_.jsxs)(`div`,{className:`relative w-full space-y-4`,children:[(0,_.jsxs)(`div`,{className:`flex justify-between`,children:[(0,_.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,_.jsx)(c,{as:`h4`,size:`2xl`,theme:`content`,children:r}),(0,_.jsx)(c,{as:`p`,size:`md`,theme:`content`,weight:`regular`,className:`font-regular`,children:i})]}),(0,_.jsx)(`div`,{className:`h-6 w-6`,children:(0,_.jsx)(`button`,{"aria-label":`Close`,className:`flex h-6 w-6 items-center justify-center rounded-wt transition-all hover:bg-black/5`,onClick:t,children:(0,_.jsx)(l,{className:`h-5 w-5 stroke-1 text-gray-400 transition-all hover:text-gray-700`})})})]}),n]})})})})]})});export{y as a,b as i,C as n,v as o,S as r,g as s,w as t};
4//# sourceMappingURL=SlideUpModal-CBCD62fe.js.map
5//# debugId=f7b31dc0-c9d8-53ef-9f4e-39c876da578c

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.