1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1203],{34995:function(e,t,i){Promise.resolve().then(i.t.bind(i,53832,23)),Promise.resolve().then(i.bind(i,31667)),Promise.resolve().then(i.bind(i,39510))},31667:function(e,t,i){"use strict";i.d(t,{CommonProvider:function(){return o},I:function(){return r}});var u=i(57437),n=i(2265),a=i(80605),l=i(23372);let s=(0,n.createContext)(void 0),o=e=>{let{children:t,commonText:i,authText:o,menuText:r,pricingText:d}=e,{data:v,status:c}=(0,a.useSession)(),[_,f]=(0,n.useState)({}),[m,S]=(0,n.useState)(1e3),[b,h]=(0,n.useState)(!1),[p,y]=(0,n.useState)(!1),[P,x]=(0,n.useState)(!1),[N,k]=(0,n.useState)(!1),[C,w]=(0,n.useState)(!1),[g,j]=(0,n.useState)(""),[E,I]=(0,n.useState)(!1),[A,F]=(0,n.useState)(!1),[O,Z]=(0,n.useState)(!1),[T,q]=(0,n.useState)(!1),[z,B]=(0,n.useState)(!1),[D,G]=(0,n.useState)(!1),[H,J]=(0,n.useState)(!1);async function K(){if("authenticated"==c){var e,t,i,u,n,a,l;f({user_id:null==v?void 0:null===(e=v.user)||void 0===e?void 0:e.user_id,name:null==v?void 0:null===(t=v.user)||void 0===t?void 0:t.name,email:null==v?void 0:null===(i=v.user)||void 0===i?void 0:i.email,image:null==v?void 0:null===(u=v.user)||void 0===u?void 0:u.image,paypal_customer_id:null==v?void 0:null===(n=v.user)||void 0===n?void 0:n.paypal_customer_id,available_times:null==v?void 0:null===(a=v.user)||void 0===a?void 0:a.available_times,role:null==v?void 0:null===(l=v.user)||void 0===l?void 0:l.role}),h(!1),S(void 0)}}(0,l.Z)(()=>{K()},m);let[L,M]=(0,n.useState)(void 0),Q=async()=>{if(!L)return;let e=await fetch("/api/user/getAvailableTimes"),t=await e.json();f({..._,available_times:null==t?void 0:t.available_times}),t.available_times>=0&&M(void 0)};return(0,l.Z)(()=>{Q()},L),(0,u.jsx)(s.Provider,{value:{userData:_,setUserData:f,showLoginModal:b,setShowLoginModal:h,showLogoutModal:p,setShowLogoutModal:y,showLoadingModal:P,setShowLoadingModal:x,showGeneratingModal:N,setShowGeneratingModal:k,showPricingModal:C,setShowPricingModal:w,toastText:g,setToastText:j,showToastModal:E,setShowToastModal:I,commonText:i,authText:o,menuText:r,pricingText:d,showConfirmModal:A,setShowConfirmModal:F,showPricingPaddleModal:O,setShowPricingPaddleModal:Z,showPayModal:D,setShowPayModal:G,showPayWayModal:H,setShowPayWayModal:J,setIntervalAvailableTimes:M,showManageBilling:T,setShowManageBilling:q,showPaddleCancelToastText:z,setShowPaddleCancelToastText:B},children:t})},r=()=>(0,n.useContext)(s)},39510:function(e,t,i){"use strict";i.d(t,{NextAuthProvider:function(){return a}});var u=i(57437),n=i(80605);function a(e){let{children:t}=e;return(0,u.jsx)(n.SessionProvider,{children:t})}},53832:function(e){e.exports={style:{fontFamily:"'__Inter_f367f3', '__Inter_Fallback_f367f3'",fontStyle:"normal"},className:"__className_f367f3"}}},function(e){e.O(0,[7236,8192,2971,2117,1744],function(){return e(e.s=34995)}),_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.