1import{o as e,r as t}from"./dist-DiEP1Qns.js";import{D as n,E as r,Ht as i,On as a,Zn as o,_ as s,b as c,bt as l,ct as u,er as d,ft as f,g as p,mt as m,o as h,qt as g,tr as _,u as v,v as y,vn as b,y as x}from"./runtime-core.esm-bundler-BKdLzFmX.js";import{t as S}from"./appVariables-if8fQ3xE.js";import{t as C}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as w}from"./Button-D-DnbTTq.js";import{t as T}from"./helper-D5ziWoUd.js";import{t as E}from"./ImageElement-DuUHuuKh.js";import{t as D}from"./BlurHashDecoder-BnjDmSW_.js";import{t as O}from"./Tooltip-CJuxS1sj.js";import{t as k}from"./shareUrls-CEv82ce-.js";import{t as A}from"./themeHelper-BsjLhJ4q.js";import{t as j}from"./request-DiNf7PXB.js";import{i as M}from"./stripePayment-Bu0q6j3z.js";import{n as N}from"./paymentHelper-BzrjJRaH.js";import{t as P}from"./dateFormatHelper-BnUfOMtH.js";import{t as ee}from"./UnpauseConfirmationModal-DF6ZJPS-.js";import{t as F}from"./postLockedFor-D-cETnqV.js";import{n as I,t as L}from"./postTypes-Deqpofw8.js";import{t as R}from"./membershipHelper-ClBuRtGX.js";import{n as z,t as B}from"./People-NaxAJoy1.js";var V={class:`tw-post-content break-words tw-limit-text-line-3`},H=[`innerHTML`],U={__name:`PostContentShort`,props:[`content`],setup(e){return(t,n)=>(m(),c(`div`,V,[s(`span`,{innerHTML:e.content},null,8,H)]))}},te={__name:`BlogPostWithoutImage`,props:[`post`,`fromPage`],setup(e){return(t,n)=>(m(),c(`div`,{class:o([e.fromPage==`home`?`h-[275px] p-7`:`h-50`,`bg-pageTheme1 h-50 flex items-center justify-center text-center`])},[e.post.project_update_short_description||e.post.project_update_heading?(m(),y(U,{key:0,content:e.post.project_update_short_description?a(T).sanitizeHtml(e.post.project_update_short_description):e.post.project_update_heading,class:`w-4/5`},null,8,[`content`])):x(``,!0)],2))}},ne={__name:`BlogPostWithImage`,props:[`post`,`fromPage`],setup(e){return(t,n)=>e.post.featured_image_url?(m(),y(E,{key:0,src:a(T).sanitizeHtml(e.post.featured_image_url),alt:e.post.project_update_heading,width:700,height:700,cropWidth:[480,768],cropSize:[400,600],intrinsicSize:800,imageClass:`${e.fromPage===`home`?`h-[290px] xs:h-50`:`h-50`} w-full`},null,8,[`src`,`alt`,`imageClass`])):x(``,!0)}},re={},ie={width:`12`,height:`12`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function ae(e,t){return m(),c(`svg`,ie,[...t[0]||=[s(`path`,{d:`M6 0C2.68667 0 0 2.68667 0 6V10.6667C0 11.4 0.6 12 1.33333 12H4V6.66667H1.33333V6C1.33333 3.42 3.42 1.33333 6 1.33333C8.58 1.33333 10.6667 3.42 10.6667 6V6.66667H8V12H10.6667C11.4 12 12 11.4 12 10.6667V6C12 2.68667 9.31333 0 6 0Z`,fill:`#717171`},null,-1)]])}var oe=C(re,[[`render`,ae]]),se={class:`flex justify-between flex-col flex-wrap h-full text-left`},ce={class:`w-full flex`},le={class:`text-grey71 text-[14px] font-cr-regular w-full flex`},ue={key:0,class:`flex`},de={key:0,class:`flex items-center tw-bullet-before`},fe={key:1,class:`flex items-center tw-bullet-before`},pe={key:1},me={key:0,class:`flex items-center tw-bullet-before`},he={__name:`PostHead`,props:[`date`,`title`,`postType`,`isPostUnlocked`,`viewCount`,`fromPage`,`voteCount`,`endsInDate`],setup(e){let t=e,n=b({time:``,text:``});return u(()=>{t.endsInDate&&setInterval(()=>{let e=P.remainingTimeCalculator(t.endsInDate);n.value.time=e.remainingTime,n.value.text=e.remainingTimeText,n.value.time},1e3)}),(t,r)=>(m(),c(`div`,se,[s(`div`,ce,[e.postType===a(L).AUDIO_POST&&!e.isPostUnlocked?(m(),y(oe,{key:0,class:`mr-1.5 mt-[6px]`})):x(``,!0),s(`h2`,{class:o([`text-dark font-cr-book text-md leading-6 overflow-hidden break-words w-full`,e.fromPage===`popular_posts`?`tw-limit-text-line-1`:`tw-limit-text-line-2`])},_(e.title),3)]),s(`div`,le,[s(`div`,null,_(a(P).dateFormat(e.date,`MMM DD, YYYY`)),1),e.postType==a(L).POLL_POST?(m(),c(`div`,ue,[e.voteCount>0?(m(),c(`div`,de,_(e.voteCount+` `+t.$t(`lang.common.vote_total`,e.voteCount)),1)):x(``,!0),a(n).time&&a(n).time>0?(m(),c(`div`,fe,_(a(n).time+` `+t.$t(a(n).text,a(n).time)+` `+t.$t(`lang.common.left`)),1)):x(``,!0)])):(m(),c(`div`,pe,[e.viewCount>0?(m(),c(`div`,me,_(e.viewCount+` `+t.$t(`lang.common.view`,e.viewCount)),1)):x(``,!0)]))])]))}},ge={__name:`AlbumPost`,props:[`post`,`fromPage`],setup(e){return(t,n)=>(m(),y(E,{src:a(T).sanitizeHtml(e.post.featured_image_url),alt:e.post.project_update_heading,width:700,height:280,cropWidth:[480],cropSize:[400],intrinsicSize:800,imageClass:`${e.fromPage===`home`?`h-[290px] xs:h-50`:`h-50`} w-full`},null,8,[`src`,`alt`,`imageClass`]))}},_e={__name:`EmbedPost`,props:[`post`,`fromPage`],setup(e){return(t,n)=>e.post.thumbnail?(m(),y(E,{key:0,src:e.post.thumbnail,alt:e.post.project_update_heading,width:700,height:700,cropWidth:[480,768],cropSize:[400,600],intrinsicSize:800,noImageCrop:!0,imageClass:`${e.fromPage===`home`?`h-[290px] xs:h-50`:`h-50`} w-full`},null,8,[`src`,`alt`,`imageClass`])):x(``,!0)}},ve={},ye=[`aria-label`];function be(e,t){return m(),c(`svg`,{"aria-label":e.$t(`lang.a11y.svg.lock`),width:`11`,height:`15`,viewBox:`0 0 11 15`,f
1ill:`none`,xmlns:`http://www.w3.org/2000/svg`},[...t[0]||=[s(`path`,{d:`M1.69531 14.7812C1.14323 14.7812 0.723958 14.6302 0.4375 14.3281C0.15625 14.0312 0.015625 13.5859 0.015625 12.9922V7.82031C0.015625 7.23177 0.15625 6.78906 0.4375 6.49219C0.723958 6.19531 1.14323 6.04688 1.69531 6.04688H8.54688C9.10417 6.04688 9.52344 6.19531 9.80469 6.49219C10.0911 6.78906 10.2344 7.23177 10.2344 7.82031V12.9922C10.2344 13.5859 10.0911 14.0312 9.80469 14.3281C9.52344 14.6302 9.10417 14.7812 8.54688 14.7812H1.69531ZM1.34375 6.64062V4.29688C1.34375 3.38021 1.52083 2.61719 1.875 2.00781C2.22917 1.39323 2.69531 0.932292 3.27344 0.625C3.85156 0.317708 4.46875 0.164062 5.125 0.164062C5.78646 0.164062 6.40365 0.317708 6.97656 0.625C7.55469 0.932292 8.02083 1.39323 8.375 2.00781C8.73438 2.61719 8.91406 3.38021 8.91406 4.29688V6.64062H7.63281V4.15625C7.63281 3.55729 7.51562 3.05208 7.28125 2.64062C7.05208 2.22917 6.7474 1.91927 6.36719 1.71094C5.99219 1.5026 5.57812 1.39844 5.125 1.39844C4.67708 1.39844 4.26302 1.5026 3.88281 1.71094C3.5026 1.91927 3.19792 2.22917 2.96875 2.64062C2.73958 3.05208 2.625 3.55729 2.625 4.15625V6.64062H1.34375Z`,fill:`white`},null,-1)]],8,ye)}var xe=C(ve,[[`render`,be]]),Se=[`aria-label`],Ce={class:`py-[14px] px-4 flex items-center gap-3 z-10`},we={class:`mt-5 min-h-[25px] flex`},Te={key:0,class:`text-base text-grey71 font-cr-regular`},Ee={key:0,class:`flex items-center tw-bullet-before before:bg-grey71`},De={key:0,class:`text-base text-grey71 font-cr-regular xs:mt-2`},Oe={key:0,class:`flex items-center tw-bullet-before before:bg-grey71 text-base text-grey71 font-cr-regular`},ke={__name:`LockedPoll`,props:[`post`],setup(t){let r=[30,35,25,40],i=t,d=b(i.post.poll_total_votes),f=b(i.post.is_published==z.PUBLISHED),p=b(i.post.is_published==z.ENDED),v=b({time:``,text:``}),y=b(i.post.poll_ends_at_date),S=b(i.post.poll_ended_date);return u(()=>{y.value&&setInterval(()=>{let e=P.remainingTimeCalculator(y.value);v.value.time=e.remainingTime,v.value.text=e.remainingTimeText,v.value.time},1e3)}),(t,i)=>(m(),c(h,null,[s(`div`,{"aria-label":t.$t(`lang.a11y.post.locked_poll`),class:`w-full flex flex-col gap-4 mt-8 relative items-center justify-center p-4`},[(m(),c(h,null,l(4,e=>s(`div`,{key:e,class:`w-full min-h-10 bg-[#23549F] bg-opacity-5 hover:bg-opacity-10 rounded-xl cursor-pointer relative overflow-hidden flex items-center justify-between`},[s(`div`,Ce,[i[0]||=s(`label`,{class:`wrapper`},[s(`input`,{class:`checkbox`,type:`checkbox`}),s(`span`,{class:`checkmark`})],-1),s(`span`,{class:o([`w-${a(r)[e-1]}`,`font-cr-book text-xl text-dark bg-[#23549F] h-5 bg-opacity-30`])},null,2)]),i[1]||=s(`div`,{class:`absolute pl-2 left-0 top-0 h-full bg-[#23549F] bg-opacity-30 rounded-xl`},null,-1)])),64)),i[2]||=s(`div`,{class:`w-full h-full absolute top-0 left-0 backdrop-blur-[2.75px] z-10 flex items-center justify-center`},null,-1)],8,Se),s(`div`,we,[n(e,{name:`slide`},{default:g(()=>[a(d)>
10?(m(),c(`span`,Te,_(a(d)+` `+t.$t(`lang.common.vote_total`,a(d))),1)):x(``,!0)]),_:1}),n(e,{name:`slide`},{default:g(()=>[a(d)>0&&a(f)&&a(v)||a(p)?(m(),c(`span`,Ee)):x(``,!0)]),_:1}),n(e,{name:`slide`},{default:g(()=>[a(f)&&a(v).time>0?(m(),c(`span`,De,_(a(v).time+` `+t.$t(a(v).text,a(v).time)+` `+t.$t(`lang.common.left`)),1)):x(``,!0)]),_:1}),n(e,{name:`slide`},{default:g(()=>[a(p)?(m(),c(`span`,Oe,_(t.$t(`lang.post.poll_ended_on`)+` `+a(P).dateFormat(a(S),`MMM DD, YYYY`)),1)):x(``,!0)]),_:1})])],64))}},Ae={__name:`LockedPostBody`,props:[`post`,`fromPage`],setup(e){return(t,n)=>e.post.blur_hash?(m(),y(D,{key:0,blurhash:e.post.blur_hash,width:700,height:300,class:o([e.fromPage===`post_single`?`h-80`:`h-50`,`w-full`])},null,8,[`blurhash`,`class`])):(m(),c(`div`,{key:1,class:o([e.fromPage===`post_single`?`h-80`:`h-50`,`w-full bg-dark`])},null,2))}},je={},Me=[`aria-label`];function Ne(e,t){return m(),c(`svg`,{"aria-label":e.$t(`lang.a11y.svg.mem_post_lock`),xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 13 20`,fill:`none`},[...t[0]||=[s(`path`,{d:`M2.21289 19.2266C1.52279 19.2266 0.998698 19.041 0.640625 18.6699C0.289062 18.2988 0.113281 17.7389 0.113281 16.9902V10.5254C0.113281 9.78971 0.289062 9.23633 0.640625 8.86523C0.998698 8.49414 1.52279 8.30859 2.21289 8.30859H10.7773C11.474 8.30859 11.998 8.49414 12.3496 8.86523C12.7077 9.23633 12.8867 9.78971 12.8867 10.5254V16.9902C12.8867 17.7389 12.7077 18.2988 12.3496 18.6699C11.998 19.041 11.474 19.2266 10.7773 19.2266H2.21289ZM2.38867 17.6934H10.6211C10.8229 17.6934 10.9759 17.6348 11.0801 17.5176C11.1842 17.4004 11.2363 17.2279 11.2363 17V10.5156C11.2363 10.2943 11.1842 10.1283 11.0801 10.0176C10.9759 9.90039 10.8229 9.8418 10.6211 9.8418H2.38867C2.19336 9.8418 2.04036 9.90039 1.92969 10.0176C1.82552 10.1283 1.77344 10.2943 1.77344 10.5156V17C1.77344 17.2279 1.82552 17.4004 1.92969 17.5176C2.04036 17.6348 2.19336 17.6934 2.38867 17.6934ZM1.77344 9.05078V6.12109C1.77344 4.97526 1.99479 4.02148 2.4375 3.25977C2.88021 2.49154 3.46289 1.91536 4.18555 1.53125C4.9082 1.14714 5.67969 0.955078 6.5 0.955078C7.32682 0.955078 8.09831 1.14714 8.81445 1.53125C9.53711 1.91536 10.1198 2.49154 10.5625 3.25977C11.0117 4.02148 11.2363 4.97526 11.2363 6.12109V9.05078H9.63477V5.94531C9.63477 5.19661 9.48828 4.5651 9.19531 4.05078C8.90885 3.53646 8.528 3.14909 8.05273 2.88867C7.58398 2.62826 7.06641 2.49805 6.5 2.49805C5.9401 2.49805 5.42253 2.62826 4.94727 2.88867C4.47201 3.14909 4.09115 3.53646 3.80469 4.05078C3.51823 4.5651 3.375 5.19661 3.375 5.94531V9.05078H1.77344Z`,fill:`white`},null,-1)]],8,Me)}var Pe=C(je,[[`render`,Ne]]),Fe={},Ie=[`aria-label`];function Le(e,t){return m(),c(`svg`,{"aria-label":e.$t(`lang.a11y.svg.supp_only_post_lock`),height:`20`,viewBox:`0 0 20 18`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},[...t[0]||=[s(`path`,{class:`#fff`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M9.68364 17C9.59637 17 9.33447 16.9096 9.33447 16.9096C7.41393 15.9153 2.87454 13.113 1.30321 8.6836C1.04132 7.87008 0.43025 4.52542 2.35076 2.44633C3.48561 1.18079 4.53316 1 5.23153 1C6.89016 1 8.63605 1.99435 9.68364 3.44068C10.7312 1.90395 12.3025 1 14.1357 1C14.8341 1 15.8817 1.18079 17.1038 2.44633C19.0243 4.52542 18.4132 7.96048 18.1513 8.6836C16.58 13.2034 11.9533 15.9153 10.1201 16.9096C9.94554 17 9.77092 17 9.68364 17Z`,stroke:`white`,"stroke-width":`2`},null,-1)]],8,Ie)}var Re=C(Fe,[[`render`,Le]]),ze={class:`flex justify-center`},Be={class:`font-cr-medium mt-2 text-sm`},Ve={__name:`LockedPostOverlay`,props:[`post`,`postLockedFor`,`fromPage`],setup(e){return(t,n)=>(m(),c(h,null,[s(`div`,ze,[e.post.project_update_locked_for===e.postLockedFor.MEMBERSHIP?(m(),y(Pe,{key:0,width:e.fromPage===`post_single`?24:20,height:e.fromPage===`post_single`?24:20},null,8,[`width`,`height`])):e.post.project_update_locked_for===e.postLockedFor.SUPPORTERS?(m(),y(Re,{key:1,width:`18`,height:`18`})):e.post.project_update_locked_for===e.postLockedFor.FOLLOWERS?(m(),y(B,{key:2,fillColor:`fff`,width:`30`,height:`18`})):x(``,!0)]),s(`div`,Be,_(e.post.project_update_locked_for===e.postLockedFor.MEMBERSHIP?t.$t(`lang.post.members_only`):e.post.project_update_locked_for===e.postLockedFor.FOLLOWERS?t.$t(`lang.post.followers_only`):e.post.project_update_locked_for===e.postLockedFor.SUPPORTERS?t.$t(`lang.post.supporters_only`):``),1)],64))}},He={class:`relative`},Ue={class:`text-center`},We={class:`text-sm font-cr-regular text-white/90`},Ge={class:`relative group`},Ke={key:0,class:`flex items-center justify-center`},qe={key:1},Je=[`href`],W={__name:`LockedPost`,props:[`post`,`creatorData`,`currentUser`,`fromPage`,`membershipSettings`,`subscription`,`stopFollowLoader`],emits:[`triggerPayment`],setup(e,{emit:t}){let l=e,d=t,f=b(`lang.common.support`),S=b(`lang.common.already_a_supporter`),C=b(0),E=b(!1),D=b(``),k=b(``),A=b(),P=l.post.post_type==L.POLL_POST,I=`mt-6 mx-auto h-12 font-cr-bold text-sm text-white before:bg-white/10 hover:before:bg-white/20 px-8 xs:mt-4 xs:px-4 xs:h-11`,z=b(!1),B=p(()=>!l.creatorData.subscription_paused||!l.creatorData.subscription_access_locked||l.post.project_update_locked_for
1!=F.MEMBERSHIP||!l.post.membership_levels?.length||!l.subscription?.membership_level?!1:l.post.membership_levels.some(e=>e.id==l.subscription.membership_level.id)),V=b(!1),H=b(!1),U=b(null),te=async()=>{V.value=!0;try{let e=await j.unpauseSubscription(l.subscription.id);if(e.data.status===`action_required`){window.location=e.data.hosted_invoice_url;return}U.value=e.data,H.value=!0}catch(e){console.error(`Error unpausing subscription:`,e)}finally{V.value=!1}},ne=()=>{H.value=!1,location.reload()};i(()=>l.stopFollowLoader,e=>{z.value=!e}),u(()=>{if(E.value=N.paymentEnabledOrNot(l.creatorData).disablePayment,D.value=N.paymentEnabledOrNot(l.creatorData).tooltipText,l.post.project_update_locked_for===F.FOLLOWERS){S.value=`lang.common.already_a_follower`;return}if(l.post.project_update_locked_for!==F.MEMBERSHIP)return;let e=null,t=null;if(l.post.membership_levels&&(e=l.post.membership_levels.filter(e=>R.canPaymentToLevel(e)),t=l.post.membership_levels.filter(e=>!R.canPaymentToLevel(e))),A.value=e.length>0?e[0]:t[0],A.value){if(l.fromPage==`post_single`&&(A.value.trial_period!=0&&l.membershipSettings.trial_available&&!l.creatorData.subscribed?(f.value=`lang.membership.start_free_trial`,C.value=0):A.value.price_lifetime?(f.value=`lang.post.join_now_for_lifetime`,C.value=A.value.price_lifetime_converted):(f.value=`lang.post.join_now_for_monthly`,C.value=A.value.price_monthly_converted),!E.value)){let e=R.levelStateCheck(A.value,l.creatorData,l.membershipSettings,l.subscription);E.value=e.disablePayment,D.value=e.tooltipText,k.value=e.width}S.value=`lang.common.already_a_member`}});let re=()=>{if(E.value)return;let e=M.SUPPORT,t;l.post.project_update_locked_for===F.MEMBERSHIP&&(e=M.MEMBERSHIP,t=A.value),l.post.project_update_locked_for===F.FOLLOWERS&&(z.value=!0,e=`follow`),d(`triggerPayment`,e,t)};return(t,i)=>(m(),c(h,null,[s(`div`,He,[a(P)?(m(),y(ke,{key:0,post:e.post},null,8,[`post`])):(m(),y(Ae,{key:1,post:e.post,fromPage:e.fromPage},null,8,[`post`,`fromPage`])),s(`div`,{class:o([{"bg-dark/30":!a(P)},`absolute left-0 top-0 flex justify-center items-center text-white w-full h-full`])},[s(`div`,Ue,[a(P)?x(``,!0):(m(),y(Ve,{key:0,fromPage:e.fromPage,post:e.post,postLockedFor:a(F)},null,8,[`fromPage`,`post`,`postLockedFor`])),e.fromPage===`post_single`?(m(),c(h,{key:1},[B.value?(m(),c(h,{key:0},[s(`p`,We,_(t.$t(`lang.membership.unpause_to_access_content`)),1),n(w,{onClick:i[0]||=e=>te(),disabled:V.value,class:o(a(I))},{default:g(()=>[r(_(t.$t(`lang.membership.unpause_membership`)),1)]),_:1},8,[`disabled`,`class`])],64)):(m(),c(h,{key:1},[s(`div`,Ge,[n(O,{class:o([`py-3 bottom-15 border border-black/40 border-solid !bg-[#252525] after:border-t-[#252525] tw-tooltip-black-with-border-before before:border-t-black/90 xs:px-2`,a(k)]),tooltipText:a(D)?t.$t(a(D),{name:e.creatorData.name}):``,arrowPosition:`center`},null,8,[`class`,`tooltipText`]),n(w,{onClick:i[1]||=e=>re(),initiallyDisabled:a(E),class:o([a(P)?a(`z-20 px-[18px] py-[14px] bg-[#23549F] hover:bg-opacity-90 cursor-pointer rounded-full text-white text-base font-cr-book shadow-locked-app-button`):a(I)]),disabled:a(z)},{default:g(()=>[a(P)?(m(),c(`span`,Ke,[n(xe,{class:`mr-2`}),r(` `+_(e.post.project_update_locked_for===a(F).MEMBERSHIP?t.$t(`lang.common.locked_for_member`):e.post.project_update_locked_for===a(F).FOLLOWERS?t.$t(`lang.common.join_for_free`):e.post.project_update_locked_for===a(F).SUPPORTERS?t.$t(`lang.common.locked_for_supporter`):``),1)])):(m(),c(`span`,qe,_(e.post.project_update_locked_for===a(F).MEMBERSHIP?t.$t(a(f),{amount:a(T).numberFormat(a(T).convertAmountToPay(a(C))),currency:a(T).userCurrencyConverted()}):e.post.project_update_locked_for===a(F).FOLLOWERS?t.$t(`lang.common.join_for_free`):e.post.project_update_locked_for===a(F).SUPPORTERS?t.$t(`lang.common.support`):``),1))]),_:1},8,[`initiallyDisabled`,`class`,`disabled`])]),!e.currentUser&&!a(P)?(m(),c(`div`,{key:0,class:o([[a(P)?`text-black absolute z-20`:`text-white`],`text-sm font-cr-regular mt-3 text-center`])},[r(_(t.$t(a(S)))+` `,1),s(`a`,{href:a(T).loginUrl(),rel:`nofollow`,class:`underline`},_(t.$t(`lang.common.log_in`)),9,Je)],2)):x(``,!0)],64))],64)):x(``,!0)])],2)]),H.value?(m(),y(v,{key:0,to:`body`},[n(ee,{unpauseData:U.value,subscription:e.subscription,onClose:ne},null,8,[`unpauseData`,`subscription`])])):x(``,!0)],64))}},Ye={},Xe=[`aria-label`];function Ze(e,t){return m(),c(`svg`,{"aria-label":e.$t(`lang.a11y.svg.rewind`),width:`48`,height:`48`,viewBox:`0 0 48 48`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},[...t[0]||=[s(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M34 13.034C31.04 11.056 27.56 10.0002 24 10C21.712 10 20.106 10.078 18.984 10.2C17.946 10.316 17.084 10.492 16.49 10.85C16.2439 10.9911 16.0311 11.1834 15.8658 11.4139C15.7005 11.6444 15.5867 11.9077 15.532 12.186C15.4865 12.4517 15.4987 12.724 15.5677 12.9845C15.6368 13.245 15.761 13.4877 15.932 13.696C16.1422 13.9553 16.4054 14.1667 16.704 14.316L16.712 14.322L16.722 14.328H16.728V14.33C16.73 14.33 16.732 14.33 17.454 12.864L16.732 14.332C16.9319 14.4301 17.1496 14.4864 17.372 14.4974C17.5944 14.5084 17.8167 14.4739 18.0253 14.396C18.2338 14.3181 18.4243 14.1985 18.5851 14.0444C18.7458 13.8904 18.8734 13.7051 18.96 13.5C19.074 13.484 19.2 13.468 19.346 13.452C20.298 13.346 21.768 13.272 24 13.272C26.9124 13.2724 29.7592 14.1363 32.1806 15.7546C34.6019 17.3729 36.4891 19.6728 37.6034 22.3635C38.7178 25.0543 39.0092 28.015 38.4409 30.8714C37.8727 33.7278 36.4702 36.3515 34.4109 38.4109C32.3515 40.4702 29.7278 41.8727 26.8714 42.4409C24.015 43.0092 21.0543 42.7178 18.3635 41.6034C15.6728 40.4891 13.3729 38.6019 11.7546 36.1806C10.1363 33.7592 9.2724 30.9124 9.272 28C9.272 27.7852 9.22968 27.5724 9.14747 27.3739C9.06525 27.1754 8.94474 26.9951 8.79283 26.8432C8.64091 26.6913 8.46056 26.5707 8.26207 26.4885C8.06358 26.4063 7.85084 26.364 7.636 26.364C7.42116 26.364 7.20842 26.4063 7.00993 26.4885C6.81144 26.5707 6.63109 26.6913 6.47917 26.8432C6.32726 26.9951 6.20675 27.1754 6.12453 27.3739C6.
104232 27.5724 6 27.7852 6 28C5.99989 31.1098 6.80546 34.1665 8.33818 36.8724C9.87091 39.5782 12.0785 41.8407 14.7458 43.4395C17.4131 45.0383 20.4491 45.9188 23.558 45.9952C26.6668 46.0716 29.7424 45.3412 32.485 43.8753C35.2276 42.4094 37.5436 40.2579 39.2073 37.6306C40.8711 35.0033 41.8257 31.9898 41.9783 28.8838C42.1309 25.7777 41.4762 22.6852 40.0779 19.9074C38.6797 17.1297 36.5857 14.7617 34 13.034Z`,fill:`white`},null,-1),s(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M25.498 2.488C25.1721 2.1751 24.7378 2.00037 24.286 2.00037C23.8342 2.00037 23.3999 2.1751 23.074 2.488L14.5 10.822C14.3414 10.9745 14.2152 11.1574 14.129 11.3598C14.0428 11.5622 13.9984 11.78 13.9984 12C13.9984 12.22 14.0428 12.4378 14.129 12.6402C14.2152 12.8426 14.3414 13.0255 14.5 13.178L23.072 21.512C23.3976 21.8254 23.832 22.0004 24.284 22.0004C24.7359 22.0004 25.1703 21.8254 25.496 21.512C25.6549 21.3595 25.7814 21.1765 25.8677 20.9738C25.9541 20.7712 25.9986 20.5533 25.9986 20.333C25.9986 20.1128 25.9541 19.8948 25.8677 19.6922C25.7814 19.4896 25.6549 19.3065 25.496 19.154L18.138 12L25.498 4.84601C25.6569 4.69351 25.7834 4.51046 25.8697 4.30785C25.9561 4.10524 26.0006 3.88726 26.0006 3.66701C26.0006 3.44675 25.9561 3.22877 25.8697 3.02616C25.7834 2.82355 25.6569 2.6405 25.498 2.488Z`,fill:`white`},null,-1),s(`path`,{d:`M20.1 35.52V24H18.828C18.52 25.136 17.628 25.416 15.778 25.416V26.698H18.446V35.518H20.098L20.1 35.52ZM29.772 25.4V24H22.928V30.236H24.398C25.0148 29.877 25.7186 29.695 26.432 29.71C27.92 29.71 28.774 30.566 28.774 31.95C28.774 33.348 27.958 34.334 26.468 34.334C25.162 34.334 24.236 33.742 24.218 32.376H22.566C22.566 34.596 24.126 35.734 26.45 35.734C28.956 35.734 30.444 34.104 30.444 31.898C30.444 29.644 28.902 28.312 26.668 28.312C25.724 28.312 25.016 28.508 24.598 28.74V25.4H29.772Z`,fill:`white`},null,-1)]],8,Xe)}var Qe=C(Ye,[[`render`,Ze]]),$e={},et=[`aria-label`];function tt(e,t){return m(),c(`svg`,{"aria-label":e.$t(`lang.a11y.svg.forward`),class:`xs-w-h-36`,width:`48`,height:`48`,viewBox:`0 0 48 48`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},[...t[0]||=[s(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M14 13.034C16.96 11.056 20.44 10.0002 24 10C26.288 10 27.894 10.078 29.016 10.2C30.054 10.316 30.916 10.492 31.51 10.85C31.7559 10.9913 31.9686 11.1836 32.1339 11.4141C32.2991 11.6446 32.4131 11.9078 32.468 12.186C32.5135 12.4517 32.5013 12.724 32.4323 12.9845C32.3632 13.245 32.239 13.4877 32.068 13.696C31.8619 13.9514 31.6043 14.1606 31.312 14.31L31.296 14.318L31.288 14.322C31.2847 14.3241 31.2814 14.3261 31.278 14.328H31.272V14.33C31.27 14.33 31.268 14.33 30.546 12.864L31.268 14.332C31.0683 14.4302 30.8506 14.4866 30.6283 14.4977C30.406 14.5089 30.1838 14.4745 29.9753 14.3968C29.7667 14.3191 29.5762 14.1997 29.4154 14.0458C29.2546 13.892 29.1268 13.7069 29.04 13.502C28.9116 13.4841 28.7829 13.4681 28.654 13.454C27.702 13.348 26.232 13.274 24 13.274C21.087 13.274 18.2394 14.1378 15.8174 15.7563C13.3953 17.3747 11.5076 19.675 10.3929 22.3663C9.27825 25.0576 8.9867 28.019 9.55514 30.876C10.1236 33.733 11.5265 36.3573 13.5864 38.417C15.6464 40.4766 18.2709 41.8792 21.1279 42.4473C23.985 43.0153 26.9464 42.7234 29.6376 41.6083C32.3287 40.4933 34.6288 38.6053 36.2469 36.183C37.865 33.7607 38.7284 30.913 38.728 28C38.728 27.5661 38.9004 27.15 39.2072 26.8432C39.514 26.5364 39.9301 26.364 40.364 26.364C40.7979 26.364 41.214 26.5364 41.5208 26.8432C41.8276 27.15 42 27.5661 42 28C42.0001 31.1098 41.1945 34.1665 39.6618 36.8724C38.1291 39.5782 35.9215 41.8407 33.2542 43.4395C30.5869 45.0383 27.5509 45.9188 24.442 45.9952C21.3332 46.0716 18.2576 45.3412 15.515 43.8753C12.7724 42.4094 10.4564 40.2579 8.79266 37.6306C7.12893 35.0033 6.17426 31.9898 6.02168 28.8838C5.86911 25.7777 6.52383 22.6852 7.92206 19.9074C9.32028 17.1297 11.4143 14.7617 14 13.034Z`,fill:`white`},null,-1),s(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M22.502 2.488C22.8279 2.1751 23.2622 2.00037 23.714 2.00037C24.1658 2.00037 24.6001 2.1751 24.926 2.488L33.498 10.822C33.6566 10.9745 33.7828 11.1574 33.869 11.3598C33.9552 11.5622 33.9996 11.78 33.9996 12C33.9996 12.22 33.9552 12.4378 33.869 12.6402C33.7828 12.8426 33.6566 13.0255 33.498 13.178L24.926 21.512C24.6003 21.8254 24.1659 22.0004 23.714 22.0004C23.262 22.0004 22.8277 21.8254 22.502 21.512C22.3431 21.3595 22.2166 21.1765 22.1302 20.9738C22.0439 20.7712 21.9993 20.5533 21.9993 20.333C21.9993 20.1128 22.0439 19.8948 22.1302 19.6922C22.2166 19.4896 22.3431 19.3065 22.502 19.154L29.862 12L22.502 4.84601C22.3431 4.69351 22.2166 4.51046 22.1302 4.30785C22.0439 4.10524 21.9993 3.88726 21.9993 3.66701C21.9993 3.44675 22.0439 3.22877 22.1302 3.02616C22.2166 2.82355 22.3431 2.6405 22.502 2.488Z`,fill:`white`},null,-1),s(`path`,{d:`M20.1 35.52V24H18.828C18.52 25.136 17.628 25.416 15.778 25.416V26.698H18.446V35.518H20.098L20.1 35.52ZM29.772 25.4V24H22.928V30.236H24.398C25.0148 29.877 25.7186 29.695 26.432 29.71C27.92 29.71 28.774 30.566 28.774 31.95C28.774 33.348 27.958 34.334 26.468 34.334C25.162 34.334 24.236 33.742 24.218 32.376H22.566C22.566 34.596 24.126 35.734 26.45 35.734C28.956 35.734 30.444 34.104 30.444 31.898C30.444 29.644 28.902 28.312 26.668 28.312C25.724 28.312 25.016 28.508 24.598 28.74V25.4H29.772Z`,fill:`white`},null,-1)]],8,et)}var nt=C($e,[[`render`,tt]]),rt={},it=[`aria-label`];function at(e,t){return m(),c(`svg`,{"aria-label":e.$t(`lang.a11y.svg.play`),width:`44`,height:`44`,viewBox:`0 0 44 44`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},[...t[0]||=[s(`path`,{d:`M22 0C9.87 0 0 9.87 0 22C0 34.13 9.87 44 22 44C34.13 44 44 34.13 44 22C44 9.87 34.13 0 22 0ZM29.908 22.984L17.804 30.296C17.6304 30.3998 17.4323 30.4556 17.2301 30.4578C17.0278 30.4599 16.8286 30.4083 16.6529 30.3082C16.4771 30.2081 16.3311 30.0631 16.2297 29.8881C16.1284 29.7131 16.0753 29.5143 16.076 29.312V14.688C16.0747 14.4855 16.1274 14.2863 16.2286 14.1109C16.3298 13.9355 16.4759 13.7902 16.6519 13.69C16.8278 13.5898 17.0273 13.5383 17.2298 13.5407C17.4323 13.5432 17.6305 13.5995 17.804 13.704L29.908 21.016C30.0769 21.1188 30.2164 21.2633 30.3133 21.4356C30.4101 21.608 30.461 21.8023 30.461 22C30.461 22.1977 30.4101 22.392 30.3133 22.5644C30.2164 22.7367 30.0769 22.8812 29.908 22.984Z`,fill:`white`},null,-1)]],8,it)}var ot=C(rt,[[`render`,at]]),st={},ct=[`aria-label`];function lt(e,t){return m(),c(`svg`,{"aria-label":e.$t(`lang.a11y.svg.pause`),class:`pause-svg xs-w-h-36`,width:`44`,height:`44`,viewBox:`0 0 44 44`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},[...t[0]||=[s(`path`,{d:`M22 0C9.87 0 0 9.87 0 22C0 34.13 9.87 44 22 44C34.13 44 44 34.13 44 22C44 9.87 34.13 0 22 0ZM18.616 28.77C18.616 29.219 18.4376 29.6496 18.1201 29.9671C17.8026 30.2846 17.372 30.463 16.923 30.463C16.474 30.463 16.0434 30.2846 15.7259 29.9671C15.4084 29.649
16 15.23 29.219 15.23 28.77V15.23C15.23 14.781 15.4084 14.3504 15.7259 14.0329C16.0434 13.7154 16.474 13.537 16.923 13.537C17.372 13.537 17.8026 13.7154 18.1201 14.0329C18.4376 14.3504 18.616 14.781 18.616 15.23V28.77ZM28.77 28.77C28.77 29.219 28.5916 29.6496 28.2741 29.9671C27.9566 30.2846 27.526 30.463 27.077 30.463C26.628 30.463 26.1974 30.2846 25.8799 29.9671C25.5624 29.6496 25.384 29.219 25.384 28.77V15.23C25.384 14.781 25.5624 14.3504 25.8799 14.0329C26.1974 13.7154 26.628 13.537 27.077 13.537C27.526 13.537 27.9566 13.7154 28.2741 14.0329C28.5916 14.3504 28.77 14.781 28.77 15.23V28.77Z`,fill:`white`},null,-1)]],8,ct)}var ut=C(st,[[`render`,lt]]),G=void 0,K={resetPlayerId(){G=void 0},pauseCurrentPlayingAudio(e){let t=document.getElementById(`audio_${G}`)??null;S.IsBrowser&&G!==void 0&&t&&(t.pause(),this.toggleAudioPlayerButton(G,!1)),G=e},toggleAudioPlayerButton(e,t){let n=document.getElementById(`play_${e}`),r=document.getElementById(`pause_${e}`),i=`block`,a=`none`;t&&(i=`none`,a=`block`),n.style.display=i,r.style.display=a}},q=`bmc_audio_playback_positions`,dt=`bmc_audio_speed_preference`,ft=720*60*60*1e3,pt=5,J={},Y=1,mt=()=>{if(!S.IsBrowser)return!1;try{let e=`__bmc_ls_test__`;return localStorage.setItem(e,`1`),localStorage.removeItem(e),!0}catch{return!1}},X=e=>{let t=Date.now();return Object.fromEntries(Object.entries(e).filter(([,e])=>t-e.lastUpdated<ft))},Z=()=>{if(!mt())return{...J};try{let e=localStorage.getItem(q);if(!e)return{};let t=JSON.parse(e),n=X(t);if(Object.keys(n).length<Object.keys(t).length)try{localStorage.setItem(q,JSON.stringify(n))}catch{}return n}catch{return{}}},ht=e=>{if(!mt()){J=e;return}try{localStorage.setItem(q,JSON.stringify(e))}catch(t){if(t&&(t.name===`QuotaExceededError`||t.code===22)){let t=X(e);try{localStorage.setItem(q,JSON.stringify(t))}catch{J=e}}}},Q={savePosition(e,t,n){let r=Z();n>0&&t>=n-pt||t<=0?delete r[e]:r[e]={currentTime:t,duration:n,lastUpdated:Date.now()},ht(r)},getPosition(e){let t=Z()[e];return t?t.currentTime:0},clearPosition(e){let t=Z();delete t[e],ht(t)},saveSpeed(e){if(S.IsBrowser)try{localStorage.setItem(dt,String(e))}catch{Y=e}},getSpeed(){if(!S.IsBrowser)return Y;try{let e=localStorage.getItem(dt);if(e===null)return 1;let t=parseFloat(e);return isNaN(t)?1:t}catch{return Y}}},gt={class:`tw-no-select`},_t={class:`flex justify-center items-center w-full mb-3`},vt=[`src`,`id`],yt=[`aria-hidden`,`tabindex`],bt={class:`flex items-center gap-2 text-base text-white font-cr-book xs:text-sm`},xt=[`max`],St={class:`flex items-center gap-1.5 shrink-0 tabular-nums`},Ct=[`aria-label`],wt={__name:`AudioPlayerElement`,props:[`post`,`fromPage`],setup(e){let t=e,r=[.75,1,1.25,1.5,2],i=`group-hover:scale-110 transition-all`,l=t.fromPage===`post_listing`?`w-8 h-8`:`xs:w-[52px] xs:h-[52px]`,d=t.fromPage===`post_listing`?`w-8 h-8`:`w-8 h-8 xs:w-[28px] xs:h-[28px]`,p=b(),h=b(),g=b(),v=b(1),y=t.post.id,x=t.post.post_description_json.content.duration,S=null,C=0,w=!1,E=!1,D=!1,O=()=>{if(!p.value||E||!D)return;let e=Date.now();e-C>=2e3&&(C=e,Q.savePosition(y,p.value.currentTime,x))},k=()=>{!p.value||E||!D||(Q.savePosition(y,p.value.currentTime,x),C=Date.now())},A=()=>{k()};u(()=>{S=new AbortController;let e=S.signal;v.value=Q.getSpeed(),setTimeout(()=>{ee(e),P(e),g.value.textContent=`00:00`;let t=Q.getPosition(y);t>0&&(h.value.value=Math.floor(t),I(),g.value.textContent=T.secondsToHms(t))},5),window.addEventListener(`beforeunload`,A)}),f(()=>{S&&=(S.abort(),null),window.removeEventListener(`beforeunload`,A),k()});let j=()=>{let e=p.value;if(K.pauseCurrentPlayingAudio(y),!w){w=!0;let t=Q.getPosition(y);if(t>0){E=!0;let n=setTimeout(()=>{E=!1},1e4),r=()=>{E=!1,clearTimeout(n),e.removeEventListener(`seeked`,r)},i=()=>{e.currentTime=t,e.removeEventListener(`canplay`,i)};e.addEventListener(`canplay`,i),e.addEventListener(`seeked`,r)}}D=!0,e.playbackRate=v.value,e.play()},M=()=>{p.value.pause()},N=e=>{K.toggleAudioPlayerButton(y,e)},P=e=>{let t=p.value;t.addEventListener(`ended`,function(){Q.clearPosition(y),L(0),N(!1),w=!1},{signal:e}),t.addEventListener(`play`,()=>{D=!0,N(!0)},{signal:e}),t.addEventListener(`pause`,()=>{k(),N(!1)},{signal:e}),t.addEventListener(`timeupdate`,()=>{z(),O()},{signal:e})},ee=e=>{let t=h.value;t.addEventListener(`input`,()=>{F(),I(),L(t.value)},{signal:e}),t.addEventListener(`change`,()=>{L(t.value),k()},{signal:e})},F=()=>{g.value.textContent=T.secondsToHms(h.value.value)},I=()=>{let e=h.value;e.style.setProperty(`--seek-before-width`,e.value/e.max*100+`%`)},L=e=>{p.value.currentTime=e},R=e=>{let t=p.value;e===`rewind`?t.currentTime-=15:t.currentTime+=15,z(),k()},z=()=>{p.value&&(h.value.value=Math.floor(p.value.currentTime),F(),I())},B=e=>{v.value=e,p.value&&(p.value.playbackRate=e),Q.saveSpeed(e)},V=()=>{let e=(r.indexOf(v.value)+1)%r.length;B(r[e])};return(t,r)=>(m(),c(`div`,gt,[s(`div`,_t,[s(`audio`,{ref_key:`audioElementRef`,ref:p,src:e.post.post_description_json.content.path,id:`audio_${e.post.id}`,crossOrigin:`anonymous`,preload:`none`,class:`hidden audioElement`,type:`audio/mpeg`},null,8,vt),s(`div`,{onClick:r[0]||=e=>R(`rewind`),role:`button`,tabindex:`0`,"aria-label":`rewind audio`,class:`cursor-pointer group`},[n(Qe,{class:o([a(i),a(d)])},null,8,[`class`])]),s(`div`,{class:o([`cursor-pointer group`,e.fromPage===`post_listing`?`mx-3`:`mx-8`])},[n(ot,{onClick:r[1]||=e=>j(),role:`button`,tabindex:`0`,"aria-label":`play audio`,id:`play_${e.post.id}`,class:o([a(i),a(l)])},null,8,[`id`,`class`]),n(ut,{onClick:r[2]||=e=>M(),role:`button`,tabindex:`0`,"aria-label":`pause audio`,style:{display:`none`},id:`pause_${e.post.id}`,class:o([a(i),a(l)])},null,8,[`id`,`class`])],2),s(`div`,{onClick:r[3]||=e=>R(`forward`),role:`button`,tabindex:`0`,"aria-label":`forward audio`,class:`cursor-pointer group`},[n(nt,{class:o([a(i),a(d)])},null,8,[`class`])])]),s(`div`,{class:o([{hidden:e.fromPage===`post_listing`||e.fromPage===`popular_posts`},`minsm:mt-8`]),"aria-hidden":e.fromPage===`post_listing`||e.fromPage===`popular_posts`,tabindex:e.fromPage===`post_listing`||e.fromPage===`popular_posts`?`-1`:`0`},[s(`div`,bt,[s(`span`,{ref_key:`currentTimeRef`,ref:g,class:`shrink-0 tabular-nums`},`00:00`,512),s(`input`,{type:`range`,max:e.post.post_description_json.content.duration,value:`0`,ref_key:`audioSeekerRef`,ref:h,class:`tw-audio-seeker flex-1 min-w-0`},null,8,xt),s(`div`,St,[s(`span`,null,_(a(T).secondsToHms(e.post.post_description_json.content.duration)),1),s(`button`,{onClick:V,"aria-label":`Playback speed: ${v.value}x. Click to change.`,class:`font-cr-bold text-dark leading-none focus:outline-none focus-visible:ring-2 focus-visible:ring-dark hover:bg-greyE5 transition-colors text-center bg-white rounded-full py-1 px-2 text-sm whitespace-nowrap`},_(v.value)+`x `,9,Ct)])])],10,yt)]))}},Tt={__name:`AudioPost`,props:[`post`,`pageColor`,`fromPage`],setup(e){let t=e,r=b(``);return u(()=>{let e=t.post.post_description_json.color;
1r.value=e===``||A.isLightColor(e)?A.audioBgColor(t.pageColor):e}),(t,i)=>(m(),c(`div`,{class:o([`p-4`,e.fromPage===`post_single`?`flex xs:flex-col`:e.fromPage==`home`?`h-[275px] py-6 px-20 xl:px-4 sm:h-[250px] xs:h-auto xs:px-6`:`h-50 py-6 xs:h-auto`]),style:d({"background-color":a(r)})},[e.post.featured_image_url?(m(),y(E,{key:0,src:a(T).sanitizeHtml(e.post.featured_image_url),alt:e.post.project_update_heading,width:e.fromPage===`post_single`?140:96,height:e.fromPage===`post_single`?140:96,cropWidth:[480],cropSize:[150],intrinsicSize:200,imageClass:`${e.fromPage===`post_single`?`h-35 w-35 xs:w-full xs:h-auto`:`h-24 w-24 xs:w-25 xs:h-25`} mx-auto rounded-lg`},null,8,[`src`,`alt`,`width`,`height`,`imageClass`])):x(``,!0),s(`div`,{class:o([`w-full flex mt-6`,{"ml-6 xs:ml-0 xs:mt-4":e.fromPage===`post_single`}])},[n(wt,{post:e.post,fromPage:e.fromPage,class:`w-full`},null,8,[`post`,`fromPage`])],2)],6))}},$={__name:`SinglePostLink`,props:[`post`],setup(e){return(n,r)=>(m(),y(a(t),{href:a(k).postSinglePage(e.post.project_update_slug,e.post.id),"aria-label":`link to post single page`,prefetch:``,"cache-for":`1m`,class:`absolute left-0 top-0 w-full h-full`},null,8,[`href`]))}},Et=[`aria-label`],Dt={__name:`PollPost`,props:[`post`,`fromPage`],setup(e){let t=e;u(()=>{v()});let n=b(t.post.poll_color_group),r=b(),i=b(),f=b(),p=b([{ticked:!0,progress:`70%`},{ticked:!0,progress:`30%`},{ticked:!1,progress:`0%`}]),g=[{id:1,primary:`#FFDE59`,secondary:`#257D43`,secondary_dim:`#449A984D`},{id:2,primary:`#E3BCFF`,secondary:`#B777E4`,secondary_dim:`#E9D6F7D9`},{id:3,primary:`#FFB3A0`,secondary:`#B8B5B5`,secondary_dim:`#DDDDDDD9`}],v=()=>{g.forEach(e=>{e.id===n.value&&(r.value=e.primary,i.value=e.secondary,f.value=e.secondary_dim)})};return(t,n)=>(m(),c(`div`,{style:d({backgroundColor:a(r)}),class:o([e.fromPage==`home`?`h-[275px] p-7 gap-5`:e.fromPage==`popular_posts`?`h-50 gap-0`:`h-50 gap-2`,`bg-pageTheme1 flex flex-col items-center justify-center text-center p-[22px]`])},[s(`div`,{class:o([e.fromPage==`home`?`px-20 maxmd:px-10 xs:px-0`:``,`tw-post-content break-words !text-[22px] tw-limit-text-line-2 !text-dark !tracking-[-0.11px] !leading-[28px]`])},_(e.post.project_update_heading),3),s(`div`,{"aria-label":t.$t(`lang.a11y.post.poll`),class:`w-full flex items-center justify-center`},[s(`div`,{"aria-hidden":`true`,class:o([e.fromPage==`home`?`w-[225.5px] h-[127px] p-6`:`w-[156px] h-[88px] p-[22px]`,`bg-white rounded-xl flex flex-col items-center justify-between mt-2`])},[(m(),c(h,null,l(3,t=>s(`div`,{key:t,class:`flex items-center justify-center gap-2 w-full`},[s(`div`,{style:d(a(p)[t-1].ticked?{backgroundColor:a(i),borderColor:a(i)}:{borderColor:a(i)}),class:o([e.fromPage==`home`?`w-4 h-4 text-[8px]`:`text-[5px]`,`w-2.5 h-2.5 aspect-square rounded-full border font-cr-black text-white flex items-center justify-center`])},_(a(p)[t-1].ticked?`â`:``),7),s(`div`,{style:d({backgroundColor:a(f)}),class:o([{"h-4":e.fromPage==`home`},`w-full h-2.5 bg-opacity-30 rounded-full overflow-hidden`])},[s(`div`,{style:d({backgroundColor:a(i),width:a(p)[t-1].progress}),class:`h-full w-[70%] bg-green rounded-full`},null,4)],6)])),64))],2)],8,Et)],6))}},Ot=[`aria-label`],kt={class:`relative w-full h-full p-2 xs:p-0`},At={key:0,class:`flex text-white bg-dark/50 text-sm font-cr-book items-center px-2 py-0.5 rounded-lg absolute z-10 left-5 top-5 border border-white/5 xs:top-7 xs:left-7`},jt={class:`rounded-lg overflow-hidden xs:rounded-2xl`},Mt={key:0},Nt={__name:`PostTile`,props:[`post`,`currentUser`,`creatorData`,`fromPage`],emits:[`openImageFullView`,`triggerPayment`],setup(e,{emit:t}){let i=e,l=t,u=p(()=>i.post.post_type!==L.AUDIO_POST||i.post.post_type===L.AUDIO_POST&&!i.post.is_post_unlocked),d=(e,t)=>{l(`triggerPayment`,e,t)};return(t,i)=>(m(),c(`div`,{role:`group`,tabindex:`0`,"aria-label":e.post.project_update_heading,class:`block relative w-full rounded-2xl tw-scale-on-hover before:rounded-2xl hover:before:shadow-hover-box xs:hover:before:shadow-none xs:bg-white xs:rounded-none xs:pb-4 xs:mb-3`},[s(`div`,kt,[e.post.project_update_is_pinned&&e.fromPage!==`home`?(m(),c(`div`,At,[n(I,{height:`13`,class:`mr-1`}),r(` `+_(t.$t(`lang.post.pinned`)),1)])):x(``,!0),u.value?(m(),y($,{key:1,class:`z-10`,post:e.post},null,8,[`post`])):x(``,!0),s(`div`,jt,[e.post.is_post_unlocked||e.post.post_type===a(L).POLL_POST?(m(),c(`div`,Mt,[e.post.post_type===a(L).BLOGPOST||e.post.post_type===a(L).OLD_POST?(m(),c(h,{key:0},[e.post.featured_image_url?(m(),y(ne,{key:0,fromPage:e.fromPage,post:e.post},null,8,[`fromPage`,`post`])):(m(),c(h,{key:1}
1,[e.post.thumbnail?(m(),y(_e,{key:0,fromPage:e.fromPage,post:e.post},null,8,[`fromPage`,`post`])):(m(),y(te,{key:1,post:e.post,fromPage:e.fromPage},null,8,[`post`,`fromPage`]))],64))],64)):x(``,!0),e.post.post_type===a(L).ALBUM_POST?(m(),y(ge,{key:1,post:e.post,fromPage:e.fromPage},null,8,[`post`,`fromPage`])):x(``,!0),e.post.post_type===a(L).AUDIO_POST?(m(),y(Tt,{key:2,fromPage:e.fromPage,post:e.post,pageColor:e.creatorData.page_color},null,8,[`fromPage`,`post`,`pageColor`])):x(``,!0),e.post.post_type===a(L).POLL_POST?(m(),y(Dt,{key:3,fromPage:e.fromPage,post:e.post,pageColor:e.creatorData.page_color},null,8,[`fromPage`,`post`,`pageColor`])):x(``,!0)])):(m(),y(W,{key:1,post:e.post,creatorData:e.creatorData,fromPage:`post_listing`,onTriggerPayment:d},null,8,[`post`,`creatorData`]))]),s(`div`,{class:o([{relative:!u.value},`h-[calc(100%-200px)]`])},[u.value?x(``,!0):(m(),y($,{key:0,post:e.post},null,8,[`post`])),n(he,{date:e.post.project_update_published_on??e.post.project_update_scheduled_on??e.post.project_update_created_on,title:e.post.project_update_heading,postType:e.post.post_type,isPostUnlocked:e.post.is_post_unlocked,viewCount:e.post.view_count,voteCount:e.post.poll_total_votes,endsInDate:e.post.poll_ends_at_date,fromPage:e.fromPage,class:`pb-1 pt-3`},null,8,[`date`,`title`,`postType`,`isPostUnlocked`,`viewCount`,`voteCount`,`endsInDate`,`fromPage`])],2)])],8,Ot))}};export{W as i,Tt as n,K as r,Nt as t};
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.