PageSourceSearch

https://www.soki.ai/_next/static/chunks/4823-37ce0cad9e66b2af.js

js soki.ai collected 2026-10-05 15:51:17 UTC 11,296 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1e6113b4-32f6-432a-8276-a37c30f2b388",e._sentryDebugIdIdentifier="sentry-dbid-1e6113b4-32f6-432a-8276-a37c30f2b388")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4823],{6491:e=>{e.exports={wrapper:"AuthButton_wrapper__raVfU",loginLink:"AuthButton_loginLink__cIljy",account:"AuthButton_account__Y5I3F",text:"AuthButton_text__H_uY_",icon:"AuthButton_icon__ol1FG",tooltip:"AuthButton_tooltip__YFzDD",button:"AuthButton_button__t3O4_",pulse:"AuthButton_pulse__Ebn7M"}},35080:e=>{e.exports={dropdown:"CurrencySelector_dropdown__THGzq",pulse:"CurrencySelector_pulse__zkoz1"}},37881:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var o=n(75269);n(59585);var r=n(90796),i=n.n(r);function s(e){let{...t}=e;return(0,o.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,o.jsx)("path",{d:"M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z",opacity:".25"}),(0,o.jsx)("path",{d:"M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z",className:i().spinner})]})}},44058:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o});var o=function(e){return e[e.READY=0]="READY",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.ERROR=3]="ERROR",e}({})},55815:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var o=n(75269),r=n(59585),i=n(36015),s=n(6491),l=n.n(s),a=n(24228),c=n(62064),u=n.n(c),d=function(e){return e[e.CENTER=0]="CENTER",e[e.START=1]="START",e[e.END=2]="END",e[e.CENTER_START=3]="CENTER_START",e[e.CENTER_END=4]="CENTER_END",e}({}),h=function(e){return e.ABOVE="above",e.BELOW="below",e.LEFT="left",e.RIGHT="right",e.OVER="over",e}({}),f=n(47565);let p=[h.ABOVE,h.BELOW],m=d.CENTER,w=(0,r.forwardRef)(function(e,t){var n;let s,{aroundElement:l,rootNode:c,positioningPreference:w=p,relativeAlignment:_=m,spacing:E,visible:b,noBackground:v,stationary:A=!1,className:g,children:x}=e,[R,N]=r.useState(),T=r.useRef(null),y=null!=c?c:null==(n=T.current)?void 0:n.getRootNode();function S(){if(T.current&&l&&b){let[e,t,n]=function(e){var t,n,o;let{spacing:r=0,viewportLimited:i=!1,positioningPreference:s=[h.ABOVE,h.BELOW],relativeAlignment:l=d.CENTER,...a}=e;if(void 0===a.around&&void 0===a.aroundElement&&void 0===a.at)throw Error("At least one of 'around', 'aroundElement' or 'at' needs to be specified");if(0===s.length)throw Error("At least one positioning preference needs to be specified");let c=null!=(o=null!=(n=a.around)?n:null==(t=a.aroundElement)?void 0:t.getBoundingClientRect())?o:new DOMRect(a.at[0]-window.scrollX,a.at[1]-window.scrollY,0,0);function u(){switch(l){case d.CENTER:return c.x+window.scrollX+c.width/2-a.width/2;case d.START:return c.x+window.scrollX;case d.END:return c.x+window.scrollX+c.width-a.width;case d.CENTER_START:return c.x+window.scrollX-a.width/2;case d.CENTER_END:return c.x+window.scrollX+c.width-a.width/2}}function p(e){var t;for(let n of null!=(t=a.clearOf)?t:[]){let t=document.querySelectorAll("[".concat(f.XW,'="').concat(n,'"]'));if(t.length>0){let n=t[0].getBoundingClientRect(),o=n.x+window.scrollX,r=n.y+window.scrollY,i=n.width;r+n.height>w&&r<w+a.height&&(o>m?e[1]=Math.min(e[1],o-a.width):e[0]=Math.max(e[0],o+i))}else console.warn("Could not locate element with injected ui ID:",n)}return e}let m=0,w=0,_=0,E=0,b=s[0];e:for(let e of s){b=e;let t=[i?window.scrollX:0,document.documentElement.clientWidth+window.scrollX-a.width],n=[i?window.scrollY:0,document.documentElement.clientHeight+window.scrollY-a.height];switch(b){case h.ABOVE:if(w=c.y+window.scrollY-r-a.height,m=u(),E=w,_=m,n[1]=w,(t=p(t))[0]>t[1]||n[0]>n[1])break;if(m=Math.min(Math.max(t[0],m),t[1]),w<0){w=0;break}break e;case h.BELOW:if(w=c.y+window.scrollY+c.height+r,m=u(),E=w,_=m,n[0]=w,m=Math.min(Math.max((t=p(t))[0],m),t[1]),w>n[1]){w=n[1];break}break e;case h.LEFT:if(w=window.scrollY+c.top,m=window.screenX+c.left-a.width-r,E=w,_=m,n[0]=w,m=Math.min(Math.max((t=p(t))[0],m),t[1]),w>n[1]){w=n[1];break}break e;case h.RIGHT:if(w=window.scrollY+c.top,m=window.scrollX+c.right+r,E=w,_=m,n[0]=w,m=Math.min(Math.max((t=p(t))[0],m),t[1]),w>n[1]){w=n[1];break}break e;case h.OVER:if(w=window.scrollY+c.top,m=window.scrollX+c.left,E=w,_=m,n[0]=w,m=Math.min(Math.max((t=p(t))[0],m),t[1]),w>n[1]){w=n[1];break}break e;default:throw Error("Invalid preference: ".concat(e))}}return[[m,w],[_,E],b]}({width:T.current.clientWidth,height:T.current.clientHeight,aroundElement:l,positioningPreference:w,relativeAlignment:_,spacing:E});N({left:e[0],top:e[1],transformOrigin:"below"===n?"top":"bottom"})}}return s=y instanceof ShadowRoot?y:y instanceof Document?y.body:document.body,(0,r.useEffect)(()=>{A||S()},[x,l,E,b,w,A]),(0,r.useEffect)(()=>{A&&S()},[b,A]),a.createPortal((0,o.jsx)("div",{ref:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach(t=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e))})}}
1(T,t),className:(0,i.A)(u().tooltipWrapper,{[u().hidden]:!b||void 0===R,[u().background]:!v},g),style:R,children:x}),s)});var _=n(65878),E=n(86103),b=n(95818),v=n(49791),A=n(48552),g=n(34866),x=n(87309);let R=e=>fetch(e).then(e=>e.json());var N=n(9110),T=n(25356);let y=(0,T.createServerReference)("00099048b6ded41e29a82bb36cda16d6b708d58ae8",T.callServer,void 0,T.findSourceMapURL,"logOutAction");var S=n(79810),B=n(44058);let C=function(e){let{className:t}=e,n=(0,N.usePathname)(),{session:s,isLoading:a}=function(){var e;let{data:t,error:n,isLoading:o,mutate:r}=(0,x.Ay)("/api/session/verifySession",R,{refreshInterval:6e4,onError:()=>{}});return{session:null!=(e=null==t?void 0:t.session)?e:null,error:n,isLoading:o,mutate:r}}(),c=(0,b.useTranslations)("buttons"),[u,f]=r.useState(null!==s),[p,m]=r.useState(!1),[T,C]=r.useState(B.Q.READY),k=r.useRef(null),j=r.useRef(null),I=(0,r.useMemo)(()=>"/dashboard"===n,[n]);if((0,r.useEffect)(()=>{if(p&&j.current&&k.current)return function(e,t){let n,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e3;function i(){n=window.setTimeout(a,r)}function s(){clearTimeout(n)}function l(t){var n;(!(e.length>1)||t.composedPath().some(t=>e.includes(t)))&&(1!==e.length||(n=e[0],t.composedPath().some(e=>e===n)))||a()}function a(){t(),o&&c()}function c(){r>=0&&(e.forEach(e=>e.removeEventListener("mouseleave",i)),e.forEach(e=>e.removeEventListener("mouseenter",s))),document.removeEventListener("mousedown",l,!0),document.removeEventListener("scroll",l,!0)}return r>=0&&(e.forEach(e=>e.addEventListener("mouseleave",i)),e.forEach(e=>e.addEventListener("mouseenter",s))),document.addEventListener("mousedown",l,!0),document.addEventListener("scroll",l,!0),c}([j.current,k.current],()=>m(!1))},[p]),(0,r.useEffect)(()=>{f(null!==s)},[s]),a)return null;if(!u)return(0,o.jsxs)("div",{className:l().wrapper,children:[(0,o.jsx)(A.default,{href:v.L.LOGIN,target:"_self",rel:"noreferrer",className:(0,i.A)(l().loginLink,t),type:g.a$.primary,newTab:!1,children:c("logIn")}),(0,o.jsx)(A.default,{href:v.L.SIGNUP,target:"_self",rel:"noreferrer",className:(0,i.A)(l().loginLink,t),type:g.a$.tertiary,newTab:!1,children:c("signUp")})]});{let e=(null==s?void 0:s.email)||"";return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{ref:k,onClick:()=>m(!0),className:(0,i.A)(l().account,t),children:[(0,o.jsx)(E.A,{icon:{type:_.A.ID,id:"UserRound"},className:(0,i.A)(l().icon,l().avatar)}),(0,o.jsx)("span",{className:l().text,children:e}),(0,o.jsx)(E.A,{icon:{type:_.A.ID,id:"ChevronDown"},className:l().icon})]}),(0,o.jsxs)(w,{ref:j,visible:p,aroundElement:k.current,spacing:10,className:l().tooltip,relativeAlignment:d.CENTER,positioningPreference:[h.BELOW],children:[!I&&(0,o.jsx)(A.default,{href:"/dashboard",rel:"noreferrer",type:g.a$.tertiary,className:l().button,children:c("dashboard")}),(0,o.jsx)(S.A,{state:T,onClick:function(){C(B.Q.LOADING),(0,r.startTransition)(async()=>{try{await y(),f(!1),C(B.Q.READY)}catch(e){console.error("### LOG OUT ACTION ERROR ###",e),C(B.Q.READY)}})},tertiary:!0,className:l().button,children:c("logOut")})]})]})}}},62064:e=>{e.exports={tooltipWrapper:"TooltipWrapper_tooltipWrapper__pOfFE",background:"TooltipWrapper_background__4vol8",hidden:"TooltipWrapper_hidden__NAyr4",pulse:"TooltipWrapper_pulse__NkEn7",widenIn:"TooltipWrapper_widenIn__Lg2Ie",widenOut:"TooltipWrapper_widenOut__vonr2"}},73429:e=>{e.exports={submitButton:"SubmitButton_submitButton__HYODy",loadingIcon:"SubmitButton_loadingIcon__MlQrb",successContainer:"SubmitButton_successContainer__JKoCf",checkIcon:"SubmitButton_checkIcon__smpdT",successText:"SubmitButton_successText__PHuDU",content:"SubmitButton_content__BVlI_",loading:"SubmitButton_loading__oqEJt",success:"SubmitButton_success__Fhz7U",pulse:"SubmitButton_pulse__2m0An"}},75861:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var o=n(75269),r=n(59585),i=n(9110),s=n(35080),l=n.n(s),a=n(7261),c=n(11357),u=n(2853);let d=[{selectedTitle:"$ USD",title:"$ USD",type:c.U.USD},{selectedTitle:"€ EUR",title:"€ EUR",type:c.U.EUR}],h=r.memo(function(e){let{className:t}=e,{currency:n,saveUserPreference:s}=(0,u.C)(),c=(0,r.useRef)(null),h=(0,i.usePathname)(),f=(0,r.useMemo)(()=>{let e=h.split("/");return"tutoring"===e[1]||"dashboard"===e[1]},[h]),p=(0,r.useCallback)(e=>{s(e)},[]);return f?(0,o.jsx)(a.A,{ref:c,options:d,onChange:p,selectedOption:n,allowNoSelection:!1,className:l().dropdown}):null})},79810:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var o=n(75269),r=n(36015);n(59585);var i=n(86103),s=n(73429),l=n.n(s);function a(e){let{...t}=e;return(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...t,children:(0,o.jsx)("polyline",{points:"20 6 9 17 4 12"})})}var c=n(44058),u=n(37881),d=n(37919);let h=function(e){let{state:t=c.Q.READY,onClick:n,children:s,successText:h,className:f,BtnComponent:p=d.A,...m}=e;switch(t){case c.Q.ERROR:case c.Q.READY:return(0,o.jsx)(d.A,{className:(0,r.A)(l().submitButton,f),onClick:()=>null==n?void 0:n(t),...m,children:(0,o.jsx)("div",{className:l().content,children:s})});case c.Q.LOADING:return(0,o.jsxs)(d.A,{className:(0,r.A)(l().submitButton,l().loading,f),...m,children:[(0,o.jsx)(i.A,{display:"fill",className:l().loadingIcon,children:(0,o.jsx)(u.A,{fill:m.tertiary?"black":"white"})}),(0,o.jsx)("div",{className:l().content,style:{visibility:"hidden"},children:s})]});case c.Q.SUCCESS:return(0,o.jsxs)(d.A,{className:(0,r.A)(l().submitButton,l().success,f),...m,children:[(0,o.jsxs)("div",{className:l().successContainer,children:[(0,o.jsx)(i.A,{display:"fill",className:l().checkIcon,children:(0,o.jsx)(a,{})}),h&&(0,o.jsx)("div",{className:l().successText,children:h})]}),(0,o.jsx)("div",{className:l().content,style:{visibility:"hidden"},children:s})]});default:return console.error("Invalid state for SubmitButton"),(0,o.jsx)(o.Fragment,{})}}},90796:e=>{e.exports={spinner:"SimpleSpinnerIcon_spinner__HsX5T",spinner_animation:"SimpleSpinnerIcon_spinner_animation__HwB3n"}}}]);

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.