1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{24394:function(e,t,n){Promise.resolve().then(n.t.bind(n,25418,23)),Promise.resolve().then(n.bind(n,33411)),Promise.resolve().then(n.bind(n,78526)),Promise.resolve().then(n.bind(n,79550)),Promise.resolve().then(n.bind(n,30893)),Promise.resolve().then(n.bind(n,98191)),Promise.resolve().then(n.bind(n,80574)),Promise.resolve().then(n.bind(n,8357)),Promise.resolve().then(n.bind(n,43436)),Promise.resolve().then(n.bind(n,56880)),Promise.resolve().then(n.bind(n,53514)),Promise.resolve().then(n.t.bind(n,53502,23)),Promise.resolve().then(n.t.bind(n,21970,23)),Promise.resolve().then(n.t.bind(n,1785,23))},33411:function(e,t,n){"use strict";n.d(t,{CookieConsentBar:function(){return u}});var r=n(87756),i=n(30318),o=n(8914);let s=o.Q8,a={granted:31536e3,dismissed:2592e3};function l(){let e={analytics_storage:"granted",ad_storage:"granted",ad_user_data:"granted",ad_personalization:"granted"},t=window;"function"==typeof t.gtag?t.gtag("consent","update",e):(t.dataLayer=t.dataLayer||[],t.dataLayer.push(["consent","update",e]))}function u(e){let{locale:t="he"}=e,n="en"!==t,[u,c]=(0,i.useState)(!1),[d,f]=(0,i.useState)(!1),h=(0,i.useRef)(null),m=(0,i.useRef)(null);(0,i.useEffect)(()=>{let e=(0,o.dE)();if("granted"===e){l();return}"dismissed"!==e&&c(!0)},[]),(0,i.useEffect)(()=>{if(!u)return;let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[u]),(0,i.useEffect)(()=>{if(!u)return;let e=requestAnimationFrame(()=>f(!0));return m.current?.focus(),()=>cancelAnimationFrame(e)},[u]);let p=(0,i.useCallback)(e=>{if("Escape"===e.key){e.preventDefault(),e.stopPropagation();return}if("Tab"!==e.key)return;let t=h.current?.querySelectorAll("a[href], button:not([disabled])");if(!t||0===t.length)return;let n=t[0],r=t[t.length-1],i=document.activeElement;e.shiftKey&&i===n?(e.preventDefault(),r.focus()):e.shiftKey||i!==r||(e.preventDefault(),n.focus())},[]);if(!u)return null;let y={title:n?"×× ×× × ×שת×ש×× ××¢××××ת":"We use cookies",body:n?"××× ××××ר ×××¤× ×¢×¦×¨×ª×, ×××××× ××× ×שפר ×ת ××תר. ××× ××× ×©×× ××ר ש×××× ×ת×× ××ש×ת.":"To remember where you left off and understand how to improve the site. Nothing here identifies you personally.",privacy:n?"×××× ××ת ×פר×××ת":"Privacy Policy",accept:n?"××שר××":"Accept",refuse:n?"×סר×××":"Decline"},g=e=>{"granted"===e&&l(),document.cookie=`${s}=${e}; path=/; max-age=${a[e]}; SameSite=Lax; Secure`,c(!1),window.dispatchEvent(new Event(o.QU))};return(0,r.jsx)("div",{style:{position:"fixed",inset:0,zIndex:90,display:"flex",alignItems:"center",justifyContent:"center",padding:18,background:"rgba(10,4,18,.72)",backdropFilter:"blur(3px)",WebkitBackdropFilter:"blur(3px)",opacity:d?1:0,transition:"opacity 180ms ease-out"},children:(0,r.jsxs)("div",{ref:h,role:"dialog","aria-modal":"true","aria-labelledby":"cookie-consent-title",dir:n?"rtl":"ltr",onKeyDown:p,style:{position:"relative",zIndex:91,width:"100%",maxWidth:390,padding:"26px 26px 24px",textAlign:"center",background:"#1B0F2B",border:"1px solid rgba(255,255,255,.13)",borderRadius:20,boxShadow:"0 30px 80px rgba(0,0,0,.65)",opacity:d?1:0,transform:d?"scale(1)":"scale(.96)",transition:"opacity 220ms ease-out, transform 220ms ease-out"},children:[(0,r.jsx)("div",{"aria-hidden":!0,style:{fontSize:30,marginBottom:10,lineHeight:1},children:"\uD83C\uDF6A"}),(0,r.jsx)("h2",{id:"cookie-consent-title",style:{fontSize:18,fontWeight:800,color:"#FFFFFF",marginBottom:9},children:y.title}),(0,r.jsxs)("p",{style:{fontSize:18,fontWeight:400,lineHeight:1.4,color:"#FFFFFF",marginBottom:20},children:[y.body," ",(0,r.jsx)("a",{href:`/${n?"he":"en"}/privacy`,style:{color:"#DCCBEF",textDecoration:"underline"},children:y.privacy})]}),(0,r.jsx)("button",{ref:m,type:"button",onClick:()=>g("granted"),style:{display:"block",width:"100%",padding:14,fontSize:15.5,fontWeight:800,color:"#2B1A06",background:"linear-gradient(180deg,#F0B840,#E0A32B)",borderRadius:12,boxShadow:"0 8px 26px rgba(240,184,64,.30)"},children:y.accept}),(0,r.jsx)("button",{type:"button",onClick:()=>g("dismissed"),style:{display:"inline-block",marginTop:16,padding:"8px 4px",fontSize:13.5,color:"#A08FB8",textDecoration:"underline",textUnderlineOffset:4,textDecorationThickness:1},children:y.refuse})]})})}},78526:function(e,t,n){"use strict";n.d(t,{FirstPartyPageView:function(){return u}});var r=n(87756),i=n(30318),o=n(72107),s=n(85e3),a=n(83579);function l(){let e=(0,o.usePathname)(),t=(0,o.useSearchParams)(),n=(0,i.useRef)(null);return(0,i.useEffect)(()=>{(0,a.n)();let r=t?.toString(),i=e+(r?`?${r}`:"");n.current!==i&&(n.current=i,(0,s.Z0)({referrer:document.referrer||null}))},[e,t]),null}function u(){return(0,r.jsx)(i.Suspense,{fallback:null,children:(0,r.jsx)(l,{})})}},79550:function(e,t,n){"use strict";n.d(t,{GtmSpaPageView:function(){return l}});var r=n(87756),i=n(30318),o=n(72107),s=n(43545);function a(){let e=(0,o.usePathname)(),t=(0,o.useSearchParams)(),n=(0,i.useRef)(!0),r=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let i=t?.toString(),o=e+(i?`?${i}`:"");
1if(n.current){n.current=!1,r.current=o;return}o!==r.current&&(r.current=o,(0,s.y)({event:"spa_page_view",page_path:o,page_title:"undefined"!=typeof document?document.title:""}))},[e,t]),null}function l(){return(0,r.jsx)(i.Suspense,{fallback:null,children:(0,r.jsx)(a,{})})}},30893:function(e,t,n){"use strict";n.d(t,{PostHogProvider:function(){return m}});var r=n(87756),i=n(30318),o=n(72107),s=n(72442),a=n(91366),l=n(81250),u=n(8914),c=n(62896);let d="phc_rHwqA4kcTiW5kobfbckarRXCUAu4phZg5VS8BJzQCvsD",f=!1;function h(){let e=(0,o.usePathname)(),t=(0,o.useSearchParams)();return(0,i.useEffect)(()=>{if(!f||!d)return;let n=t?.toString(),r=(0,l.N)(e+(n?`?${n}`:""));s.ZP.capture("$pageview",{$current_url:r})},[e,t]),null}function m(e){let{children:t}=e;return(0,i.useEffect)(()=>{let e;if(!d)return;let t=window,n=()=>{void 0===e&&(0,u.Hp)()&&(e=(t.requestIdleCallback??(e=>setTimeout(e,2e3)))(()=>void(!f&&d&&(f=!0,s.ZP.init(d,{api_host:"/ingest",ui_host:"https://eu.posthog.com",person_profiles:"identified_only",capture_pageview:!1,capture_pageleave:!0,respect_dnt:!0,enable_recording_console_log:!1,session_recording:{maskAllInputs:!0,maskTextSelector:"*",maskInputOptions:{password:!0,email:!0},blockSelector:"[data-ph-no-capture]",collectFonts:!1,recordCrossOriginIframes:!1},sanitize_properties:e=>{let t={...e};for(let e of["$current_url","$referrer","$pathname","$initial_current_url","$initial_referrer"])e in t&&(t[e]=(0,l.N)(t[e]));return t},loaded:e=>{"true"===c.env.NEXT_PUBLIC_POSTHOG_DEBUG&&e.debug();let t=(0,l.N)(window.location.pathname+window.location.search);e.capture("$pageview",{$current_url:t})}})))))};n();let r=(0,u.vj)(n);return()=>{r();let n=t.cancelIdleCallback;n&&"number"==typeof e&&n(e)}},[]),(0,r.jsxs)(a.zf,{client:s.ZP,children:[(0,r.jsx)(i.Suspense,{fallback:null,children:(0,r.jsx)(h,{})}),t]})}},14295:function(e,t,n){"use strict";n.d(t,{i:function(){return s}});var r=n(87756),i=n(30318),o=n(40105);function s(e){let{trigger:t,title:n,body:s,cta:a,dismiss:l,locale:u,onAccept:c,onDismiss:d}=e,f="he"===u;(0,i.useEffect)(()=>{(0,o.jN)("shown",t,u)},[t,u]),(0,i.useEffect)(()=>{let e=document.body,t=document.documentElement,n=window.scrollY,r=window.innerWidth-t.clientWidth;e.classList.add("offer-modal-open");let i={position:e.style.position,top:e.style.top,left:e.style.left,right:e.style.right,overscrollBehavior:e.style.overscrollBehavior,gutter:t.style.getPropertyValue("scrollbar-gutter")};return e.style.position="fixed",e.style.top=`-${n}px`,e.style.left="0",e.style.right="0",e.style.overscrollBehavior="contain",r>0&&t.style.setProperty("scrollbar-gutter","stable"),()=>{e.classList.remove("offer-modal-open"),e.style.position=i.position,e.style.top=i.top,e.style.left=i.left,e.style.right=i.right,e.style.overscrollBehavior=i.overscrollBehavior,i.gutter?t.style.setProperty("scrollbar-gutter",i.gutter):t.style.removeProperty("scrollbar-gutter"),window.scrollTo(0,n)}},[]);let h=()=>{(0,o.jN)("dismissed",t,u),d()};return(0,r.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":f?"×צעת ×××××":"Assessment offer",dir:f?"rtl":"ltr",className:"fixed inset-0 z-50 flex items-center justify-center px-4",children:[(0,r.jsx)("button",{type:"button",onClick:h,"aria-label":f?"ס××ר×":"Close",tabIndex:-1,className:"absolute inset-0 bg-black/60"}),(0,r.jsxs)("div",{className:"relative w-full max-w-lg rounded-2xl border border-white/15 bg-[#1a0a2e]/95 p-6 pe-12 text-white shadow-[0_24px_64px_-12px_rgba(0,0,0,0.75)] backdrop-blur-md",children:[(0,r.jsx)("button",{type:"button",onClick:h,"aria-label":f?"ס××ר×":"Close",className:"absolute end-3 top-3 grid h-9 w-9 place-items-center rounded-full text-white/60 transition hover:bg-white/10 hover:text-white",children:(0,r.jsx)("svg",{viewBox:"0 0 24 24",className:"h-5 w-5",fill:"none",stroke:"currentColor",strokeWidth:2,"aria-hidden":!0,children:(0,r.jsx)("path",{strokeLinecap:"round",d:"M6 6l12 12M18 6L6 18"})})}),(0,r.jsx)("h3",{className:"text-2xl font-extrabold leading-snug",children:n}),(0,r.jsx)("p",{className:"mt-3 text-xl leading-relaxed text-white/85",children:s}),(0,r.jsxs)("div",{className:"mt-6 flex flex-wrap items-center gap-x-4 gap-y-3",children:[(0,r.jsx)("button",{type:"button",onClick:()=>{(0,o.jN)("clicked",t,u),c()},className:"flex-1 rounded-full bg-gradient-to-r from-amber-400 to-rose-400 px-6 py-3.5 text-xl font-bold text-stone-900 transition hover:brightness-105",children:a}),(0,r.jsx)("button",{type:"button",onClick:h,className:"shrink-0 px-2 py-2 text-xl text-white/60 underline-offset-4 transition hover:text-white/90",children:l})]})]})]})}},98191:function(e,t,n){"use strict";n.d(t,{GlobalAssessmentOffer:function(){return l}});var r=n(87756),i=n(30318),o=n(72107),s=n(14295),a=n(40105);function l(e){let{locale:t}=e,n=(0,o.useRouter)(),[l,u]=(0,i.useState)(null),[c,d]=(0,i.useState)(null);return((0,i.useEffect)(()=>{let e=!1,n=null,r=(0,a.Ak)();(0,a.Hq)();let i=async n=>{if(e||(0,a.Wc)())return;let r=await (0,a.j)(t,n);e||(0,a.Wc)()||((0,a.ez)(),d(r),u(n))},o=window,s=(o.requestIdleCallback??(e=>window.setTimeout(e,2e3)))(()=>{e||(async()=>
1{if((0,a.Wc)())return;let t=await (0,a.Ob)();if(!(e||(0,a.ph)(t))&&!t.loggedIn){if(!(0,a.zZ)(window.location.pathname)&&r)return void await i("return24h");n=setTimeout(()=>{if(e||(0,a.Wc)())return;let t=window.location.pathname;(0,a.zZ)(t)||(0,a.ep)(t)||i("browse2min")},12e4)}})()});return()=>{e=!0;let t=o.cancelIdleCallback;t&&"number"==typeof s&&t(s),n&&clearTimeout(n)}},[t]),l&&c)?(0,r.jsx)(s.i,{trigger:l,title:c.title,body:c.body,cta:c.cta,dismiss:c.dismiss,locale:t,onAccept:()=>{u(null),n.push(`/${t}/journey/assessment`)},onDismiss:()=>u(null)}):null}},85e3:function(e,t,n){"use strict";n.d(t,{Bx:function(){return a},Z0:function(){return l},j:function(){return s}});var r=n(81250);let i="/api/analytics/event";function o(e,t){let n={path:(0,r.N)(window.location.pathname+window.location.search),...t};return"string"==typeof n.referrer&&(n.referrer=(0,r.N)(n.referrer)),{event:e,session_id:function(){if("undefined"==typeof sessionStorage)return"ssr";let e="_mioshy_sid",t=sessionStorage.getItem(e);return t||(t=`${Date.now()}_${Math.random().toString(36).slice(2,9)}`,sessionStorage.setItem(e,t)),t}(),device_id:function(){if("undefined"==typeof document)return null;let e=document.cookie.match(/(?:^|; )mioshy_device_id=([^;]*)/);return e?decodeURIComponent(e[1]):null}(),locale:window.location.pathname.match(/^\/(he|en)\//)?.[1]??null,properties:n}}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o(e,t)),keepalive:!0}).catch(()=>{})}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=o(e,t);try{let e=JSON.stringify(n);if("undefined"!=typeof navigator&&"function"==typeof navigator.sendBeacon&&navigator.sendBeacon(i,new Blob([e],{type:"application/json"})))return;fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:e,keepalive:!0}).catch(()=>{})}catch{}}function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s("page_view",e)}},8914:function(e,t,n){"use strict";n.d(t,{Hp:function(){return s},Q8:function(){return r},QU:function(){return i},dE:function(){return o},vj:function(){return a}});let r="mioshy_cookie_consent",i="mioshy:consent-decided";function o(){if("undefined"==typeof document)return null;let e=document.cookie.match(/(?:^|; )mioshy_cookie_consent=([^;]*)/),t=e?decodeURIComponent(e[1]):null;return"granted"===t||"dismissed"===t?t:null}function s(){return"granted"===o()}function a(e){return window.addEventListener(i,e),()=>window.removeEventListener(i,e)}},43545:function(e,t,n){"use strict";function r(e){let t=window;t.dataLayer=t.dataLayer||[],t.dataLayer.push(e)}n.d(t,{y:function(){return r}})},81250:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});let r=["code","token","email","invite","ref_code"];function i(e){if("string"!=typeof e||!e)return e;try{let t=new URL(e,"https://mioshy.com"),n=!1;for(let e of r)t.searchParams.has(e)&&(t.searchParams.set(e,"redacted"),n=!0);if(!n)return e;return e.startsWith("http")?t.toString():t.pathname+t.search+t.hash}catch{return e}}},83579:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var r=n(19406);let i="mioshy_device_id";function o(){let e=function(e){if("undefined"==typeof document)return null;let t=document.cookie.match(RegExp(`(?:^|; )${e.replace(/[$()*+.?[\\\]^{|}-]/g,"\\$&")}=([^;]*)`));return t?decodeURIComponent(t[1]):null}(i);if(e&&e.length>8)return e;let t=(0,r.Z)();return!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:365;"undefined"!=typeof document&&(document.cookie=`${encodeURIComponent(e)}=${encodeURIComponent(t)}; Path=/; Max-Age=${86400*n}; SameSite=Lax`)}(i,t),t}},40105:function(e,t,n){"use strict";n.d(t,{Ak:function(){return y},Hq:function(){return g},Ob:function(){return c},Wc:function(){return h},ep:function(){return w},ez:function(){return m},j:function(){return u},jN:function(){return _},ph:function(){return d},zZ:function(){return v}});var r=n(72442),i=n(39627),o=n(83579);let s={ingame:"ingame_spin6",login:"after_login",return24h:"return_24h",browse2min:"browse_2min",exitintent:"exit_intent"},a={he:{ingame:{title:"×¡×§×¨× ×× ××עת ×× ×××ת ×§××¨× ××× ×××?",body:"11 ש×××ת קצר×ת, ×××ª× ××§×××× ×ª××× × ××ש×ת ×©× ××××××ת ש××× - ×××× ××× ××××× ×××ש××.",cta:"×§×× ×ת ××××××",dismiss:"××ר ××"},login:{title:"××× ×ר××ת ×ת×× ×©××",body:"פ××ת ×ש××ש ××§×ת, ×××ª× ××××¢×× ×××¤× ××××××ת ש××× ×¢×××ת ×××× - ×¢× ×××צ×ת ××ש××ת ש××× ××××.",cta:"×ת××××× ××××××",dismiss:"××¤×¢× ××רת"},return24h:{title:"×××¨×ª× - ×××× × ×¢×××§ קצת",body:"×××××× ××××ר ×××× ×××: 11 ש×××ת, ××××××× ××××××ת ×××× ××תר × ×¤×ª×.",cta:"××××××",dismiss:"×× ×¢×ש××"},browse2min:{title:"××ר ××× ××§×ת ×××ª× × \uD83D\uDC9C",body:"ר×צ×× ××עת ×××¤× ××××××ת ש××× ×¢×××ת? 11 ש×××ת קצר×ת, ×ת××× × ××ש×ת ש×××.",cta:"×§×× ×ת ××××××",dismiss:"××ר ××"},exitintent:{title:"ר××¢ ××¤× × ×©××ª× ××××××",body:"××¤× × ×©×ª×¦×× - 11 ש×××ת קצר×ת ש×ר×× ××× ××× ××××××ת ש××× ××××× ×××ש××.",cta:"××, ×§×× ×××ª× ××××××",dismiss:"××ש××× ××צ×××"}},en:{ingame:{title:"Curious what's really going on between you?",body:"11 short questions and you get a personal picture of your relationship - and where it can go next.",cta:"Take the assessment",dismiss:"Later"},login:{title:"Good to see you again",body:"Under three minutes and you'll know where your relationship stands today - with recommendations just for you.",cta:"Start the assessment",dismiss:"Another time"},return24h:{title:"You're back - let's go a little deeper",body:"The quick asse
1ssment is waiting: 11 questions, and the path to a better relationship opens up.",cta:"To the assessment",dismiss:"Not now"},browse2min:{title:"A few minutes in \uD83D\uDC9C",body:"Want to know where your relationship stands? 11 short questions and a personal snapshot.",cta:"Take the assessment",dismiss:"Later"},exitintent:{title:"One moment before you go",body:"Before you leave - 11 short questions to show where your relationship can go next.",cta:"Yes, take me to the assessment",dismiss:"Continue to exit"}}},l=["title","body","cta","dismiss"];async function u(e,t){let n=a[e][t];try{let r=(0,i.B)(),o=l.map(e=>`assessment_offer_${t}_${e}`),{data:s}=await r.from("cms_texts").select("key, he_text, en_text").in("key",o),a=new Map((s??[]).map(t=>[t.key,"he"===e?t.he_text:t.en_text])),u=e=>{let r=a.get(`assessment_offer_${t}_${e}`)?.trim();return r&&r.length>0?r:n[e]};return{title:u("title"),body:u("body"),cta:u("cta"),dismiss:u("dismiss")}}catch{return n}}async function c(){try{let e=await fetch("/api/marketing/offer-eligibility",{headers:{"x-device-id":(0,o.n)()}});if(!e.ok)return{loggedIn:!1,assessmentDone:!1,journeyEntitled:!1};return await e.json()}catch{return{loggedIn:!1,assessmentDone:!1,journeyEntitled:!1}}}function d(e){return e.assessmentDone||e.journeyEntitled}let f="mioshy_assessment_offer_shown_v1";function h(){return"undefined"!=typeof sessionStorage&&"1"===sessionStorage.getItem(f)}function m(){if("undefined"!=typeof sessionStorage)try{sessionStorage.setItem(f,"1")}catch{}}let p="mioshy_last_visit_v1";function y(){if("undefined"==typeof localStorage)return!1;let e=Number(localStorage.getItem(p)||0);return e>0&&Date.now()-e>864e5}function g(){if("undefined"!=typeof localStorage)try{localStorage.setItem(p,String(Date.now()))}catch{}}let b=["/mioshy-sex","/sex-game"];function w(e){return b.some(t=>e.includes(t))}let x=["/survey","/my/survey","/journey/assessment","/couples-assessment","/assessments","/game","/sex-game","/between-us","/marathon","/billing","/pricing","/paywall","/auth","/dashboard","/admin"];function v(e){let t=e.replace(/^\/(he|en)(?=\/|$)/,"")||"/";return x.some(e=>t===e||t.startsWith(`${e}/`))}function _(e,t,n){try{r.ZP.capture(`assessment_offer_${e}`,{trigger:s[t],page:window.location.pathname,locale:n})}catch{}}},39627:function(e,t,n){"use strict";n.d(t,{B:function(){return i}});var r=n(3880);function i(){return(0,r.createBrowserClient)("https://kphfmbqqafrvuzmiotsz.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImtwaGZtYnFxYWZydnV6bWlvdHN6Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzYwNTk1MTYsImV4cCI6MjA5MTYzNTUxNn0.-vOqIXcSVcFsdg6RVKW7w6DhT51MftqN7IBMVR2ZZ5k")}},25418:function(){}},function(e){e.O(0,[8447,9754,765,7810,5666,3227,3214,4222,1744],function(){return e(e.s=24394)}),_N_E=e.O()}]);
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.