1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,342973,e=>{"use strict";var t=e.i(683682),s=e.i(271645);e.i(436180);var a=e.i(98925),r=e.i(90880),i=e.i(523353);function n(e,n){let{refetchUserData:l}=(0,i.useUserContext)(),o=(0,r.useAuthContext)(),{state:c,setError:d,setData:u,setLoading:m}=(0,t.useRequestState)(),f=(0,r.useFirestore)();return[(0,s.useCallback)(async(e,t,s=!1)=>new Promise(async(r,i)=>{m(!0);try{if(o.loaded&&o?.user){let r=(0,a.doc)(f,"users",e);s?(t.dateCreated=a.Timestamp.now(),await (0,a.setDoc)(r,t,{merge:!0})):await (0,a.updateDoc)(r,t),o?.user?.uid==e&&l(),m(!1),u(t)}u(t),r(t)}catch(e){d(e.message),i(e)}}),[f,u,d,m,o.loaded,o?.user]),c]}e.s(["default",()=>n])},705766,e=>{"use strict";let t,s;var a,r=e.i(271645);let i={data:""},n=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,l=/\/\*[^]*?\*\/| +/g,o=/\n+/g,c=(e,t)=>{let s="",a="",r="";for(let i in e){let n=e[i];"@"==i[0]?"i"==i[1]?s=i+" "+n+";":a+="f"==i[1]?c(n,i):i+"{"+c(n,"k"==i[1]?"":t)+"}":"object"==typeof n?a+=c(n,t?t.replace(/([^,])+/g,e=>i.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):i):null!=n&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),r+=c.p?c.p(i,n):i+":"+n+";")}return s+(t&&r?t+"{"+r+"}":r)+a},d={},u=e=>{if("object"==typeof e){let t="";for(let s in e)t+=s+u(e[s]);return t}return e};function m(e){let t,s,a,r=this||{},m=e.call?e(r.p):e;return((e,t,s,a,r)=>{var i;let m=u(e),f=d[m]||(d[m]=(e=>{let t=0,s=11;for(;t<e.length;)s=101*s+e.charCodeAt(t++)>>>0;return"go"+s})(m));if(!d[f]){let t=m!==e?e:(e=>{let t,s,a=[{}];for(;t=n.exec(e.replace(l,""));)t[4]?a.shift():t[3]?(s=t[3].replace(o," ").trim(),a.unshift(a[0][s]=a[0][s]||{})):a[0][t[1]]=t[2].replace(o," ").trim();return a[0]})(e);d[f]=c(r?{["@keyframes "+f]:t}:t,s?"":"."+f)}let p=s&&d.g?d.g:null;return s&&(d.g=d[f]),i=d[f],p?t.data=t.data.replace(p,i):-1===t.data.indexOf(i)&&(t.data=a?i+t.data:t.data+i),f})(m.unshift?m.raw?(t=[].slice.call(arguments,1),s=r.p,m.reduce((e,a,r)=>{let i=t[r];if(i&&i.call){let e=i(s),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":c(e,""):!1===e?"":e}return e+a+(null==i?"":i)},"")):m.reduce((e,t)=>Object.assign(e,t&&t.call?t(r.p):t),{}):m,(a=r.target,"object"==typeof window?((a?a.querySelector("#_goober"):window._goober)||Object.assign((a||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:a||i),r.g,r.o,r.k)}m.bind({g:1});let f,p,h,x=m.bind({k:1});function b(e,t){let s=this||{};return function(){let a=arguments;function r(i,n){let l=Object.assign({},i),o=l.className||r.className;s.p=Object.assign({theme:p&&p()},l),s.o=/ *go\d+/.test(o),l.className=m.apply(s,a)+(o?" "+o:""),t&&(l.ref=n);let c=e;return e[0]&&(c=l.as||e,delete l.as),h&&c[0]&&h(l),f(c,l)}return t?t(r):r}}var g=(e,t)=>"function"==typeof e?e(t):e,v=(t=0,()=>(++t).toString()),y=()=>{if(void 0===s&&"u">typeof window){let e=matchMedia("(prefers-reduced-motion: reduce)");s=!e||e.matches}return s},w=new Map,j=e=>{if(w.has(e))return;let t=setTimeout(()=>{w.delete(e),_({type:4,toastId:e})},1e3);w.set(e,t)},k=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:var s;let a;return t.toast.id&&(s=t.toast.id,(a=w.get(s))&&clearTimeout(a)),{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:r}=t;return e.toasts.find(e=>e.id===r.id)?k(e,{type:1,toast:r}):k(e,{type:0,toast:r});case 3:let{toastId:i}=t;return i?j(i):e.toasts.forEach(e=>{j(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===i||void 0===i?{...e,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let n=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+n}))}}},N=[],C={toasts:[],pausedAt:void 0},_=e=>{C=k(C,e),N.forEach(e=>{e(C)})},P={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},E=e=>(t,s)=>{let a=((e,t="blank",s)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...s,id:(null==s?void 0:s.id)||v()}))(t,e,s);return _({type:2,toast:a}),a.id},S=(e,t)=>E("blank")(e,t);S.error=E("error"),S.success=E("success"),S.loading=E("loading"),S.custom=E("custom"),S.dismiss=e=>{_({type:3,toastId:e})},S.remove=e=>_({type:4,toastId:e}),S.promise=(e,t,s)=>{let a=S.loading(t.loading,{...s,...null==s?void 0:s.loading});return e.then(e=>(S.success(g(t.success,e),{id:a,...s,...null==s?void 0:s.success}),e)).catch(e=>{S.error(g(t.error,e),{id:a,...s,...null==s?void 0:s.error})}),e};var q=(e,t)=>
1{_({type:1,toast:{id:e,height:t}})},M=()=>{_({type:5,time:Date.now()})},O=x` 2from { 3 transform: scale(0) rotate(45deg); 4 opacity: 0; 5} 6to { 7 transform: scale(1) rotate(45deg); 8 opacity: 1; 9}`,L=x` 10from { 11 transform: scale(0); 12 opacity: 0; 13} 14to { 15 transform: scale(1); 16 opacity: 1; 17}`,T=x` 18from { 19 transform: scale(0) rotate(90deg); 20 opacity: 0; 21} 22to { 23 transform: scale(1) rotate(90deg); 24 opacity: 1; 25}`,$=b("div")` 26 width: 20px; 27 opacity: 0; 28 height: 20px; 29 border-radius: 10px; 30 background: ${e=>e.primary||"#ff4b4b"}; 31 position: relative; 32 transform: rotate(45deg); 33 34 animation: ${O} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 35 forwards; 36 animation-delay: 100ms; 37 38 &:after, 39 &:before { 40 content: ''; 41 animation: ${L} 0.15s ease-out forwards; 42 animation-delay: 150ms; 43 position: absolute; 44 border-radius: 3px; 45 opacity: 0; 46 background: ${e=>e.secondary||"#fff"}; 47 bottom: 9px; 48 left: 4px; 49 height: 2px; 50 width: 12px; 51 } 52 53 &:before { 54 animation: ${T} 0.15s ease-out forwards; 55 animation-delay: 180ms; 56 transform: rotate(90deg); 57 } 58`,I=x` 59 from { 60 transform: rotate(0deg); 61 } 62 to { 63 transform: rotate(360deg); 64 } 65`,A=b("div")` 66 width: 12px; 67 height: 12px; 68 box-sizing: border-box; 69 border: 2px solid; 70 border-radius: 100%; 71 border-color: ${e=>e.secondary||"#e0e0e0"}; 72 border-right-color: ${e=>e.primary||"#616161"}; 73 animation: ${I} 1s linear infinite; 74`,F=x` 75from { 76 transform: scale(0) rotate(45deg); 77 opacity: 0; 78} 79to { 80 transform: scale(1) rotate(45deg); 81 opacity: 1; 82}`,R=x` 830% { 84 height: 0; 85 width: 0; 86 opacity: 0; 87} 8840% { 89 height: 0; 90 width: 6px; 91 opacity: 1; 92} 93100% { 94 opacity: 1; 95 height: 10px; 96}`,D=b("div")` 97 width: 20px; 98 opacity: 0; 99 height: 20px; 100 border-radius: 10px; 101 background: ${e=>e.primary||"#61d345"}; 102 position: relative; 103 transform: rotate(45deg); 104 105 animation: ${F} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 106 forwards; 107 animation-delay: 100ms; 108 &:after { 109 content: ''; 110 box-sizing: border-box; 111 animation: ${R} 0.2s ease-out forwards; 112 opacity: 0; 113 animation-delay: 200ms; 114 position: absolute; 115 border-right: 2px solid; 116 border-bottom: 2px solid; 117 border-color: ${e=>e.secondary||"#fff"}; 118 bottom: 6px; 119 left: 6px; 120 height: 10px; 121 width: 6px; 122 } 123`,z=b("div")` 124 position: absolute; 125`,H=b("div")` 126 position: relative; 127 display: flex; 128 justify-content: center; 129 align-items: center; 130 min-width: 20px; 131 min-height: 20px; 132`,B=x` 133from { 134 transform: scale(0.6); 135 opacity: 0.4; 136} 137to { 138 transform: scale(1); 139 opacity: 1; 140}`,Q=b("div")` 141 position: relative; 142 transform: scale(0.6); 143 opacity: 0.4; 144 min-width: 20px; 145 animation: ${B} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) 146 forwards; 147`,Z=({toast:e})=>{let{icon:t,type:s,iconTheme:a}=e;return void 0!==t?"string"==typeof t?r.createElement(Q,null,t):t:"blank"===s?null:r.createElement(H,null,r.createElement(A,{...a}),"loading"!==s&&r.createElement(z,null,"error"===s?r.createElement($,{...a}):r.createElement(D,{...a})))},G=b("div")` 148 display: flex; 149 align-items: center; 150 background: #fff; 151 color: #363636; 152 line-height: 1.3; 153 will-change: transform; 154 box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); 155 max-width: 350px; 156 pointer-events: auto; 157 padding: 8px 10px; 158 border-radius: 8px; 159`,W=b("div")` 160 display: flex; 161 justify-content: center; 162 margin: 4px 10px; 163 color: inherit; 164 flex: 1 1 auto; 165 white-space: pre-line; 166`,U=r.memo(({toast:e,position:t,style:s,children:a})=>{let i=e.height?((e,t)=>{let s=e.includes("top")?1:-1,[a,r]=y()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[` 1670% {transform: translate3d(0,${-200*s}%,0) scale(.6); opacity:.5;} 168100% {transform: translate3d(0,0,0) scale(1); opacity:1;} 169`,` 1700% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} 171100% {transform: translate3d(0,${-150*s}%,-1px) scale(.6); opacity:0;} 172`];return{animation:t?`${x(a)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${x(r)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0}
172,n=r.createElement(Z,{toast:e}),l=r.createElement(W,{...e.ariaProps},g(e.message,e));return r.createElement(G,{className:e.className,style:{...i,...s,...e.style}},"function"==typeof a?a({icon:n,message:l}):r.createElement(r.Fragment,null,n,l))});a=r.createElement,c.p=void 0,f=a,p=void 0,h=void 0;var J=({id:e,className:t,style:s,onHeightUpdate:a,children:i})=>{let n=r.useCallback(t=>{if(t){let s=()=>{a(e,t.getBoundingClientRect().height)};s(),new MutationObserver(s).observe(t,{subtree:!0,childList:!0,characterData:!0})}},[e,a]);return r.createElement("div",{ref:n,className:t,style:s},i)},V=m` 173 z-index: 9999; 174 > * { 175 pointer-events: auto; 176 } 177`,K=({reverseOrder:e,position:t="top-center",toastOptions:s,gutter:a,children:i,containerStyle:n,containerClassName:l})=>{let{toasts:o,handlers:c}=(e=>{let{toasts:t,pausedAt:s}=((e={})=>{let[t,s]=(0,r.useState)(C);(0,r.useEffect)(()=>(N.push(s),()=>{let e=N.indexOf(s);e>-1&&N.splice(e,1)}),[t]);let a=t.toasts.map(t=>{var s,a;return{...e,...e[t.type],...t,duration:t.duration||(null==(s=e[t.type])?void 0:s.duration)||(null==e?void 0:e.duration)||P[t.type],style:{...e.style,...null==(a=e[t.type])?void 0:a.style,...t.style}}});return{...t,toasts:a}})(e);(0,r.useEffect)(()=>{if(s)return;let e=Date.now(),a=t.map(t=>{if(t.duration===1/0)return;let s=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(s<0){t.visible&&S.dismiss(t.id);return}return setTimeout(()=>S.dismiss(t.id),s)});return()=>{a.forEach(e=>e&&clearTimeout(e))}},[t,s]);let a=(0,r.useCallback)(()=>{s&&_({type:6,time:Date.now()})},[s]),i=(0,r.useCallback)((e,s)=>{let{reverseOrder:a=!1,gutter:r=8,defaultPosition:i}=s||{},n=t.filter(t=>(t.position||i)===(e.position||i)&&t.height),l=n.findIndex(t=>t.id===e.id),o=n.filter((e,t)=>t<l&&e.visible).length;return n.filter(e=>e.visible).slice(...a?[o+1]:[0,o]).reduce((e,t)=>e+(t.height||0)+r,0)},[t]);return{toasts:t,handlers:{updateHeight:q,startPause:M,endPause:a,calculateOffset:i}}})(s);return r.createElement("div",{style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...n},className:l,onMouseEnter:c.startPause,onMouseLeave:c.endPause},o.map(s=>{let n,l,o=s.position||t,d=c.calculateOffset(s,{reverseOrder:e,gutter:a,defaultPosition:t}),u=(n=o.includes("top"),l=o.includes("center")?{justifyContent:"center"}:o.includes("right")?{justifyContent:"flex-end"}:{},{left:0,right:0,display:"flex",position:"absolute",transition:y()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${d*(n?1:-1)}px)`,...n?{top:0}:{bottom:0},...l});return r.createElement(J,{id:s.id,key:s.id,onHeightUpdate:c.updateHeight,className:s.visible?V:"",style:u},"custom"===s.type?g(s.message,s):i?i(s):r.createElement(U,{toast:s,position:o}))}))};e.s(["Toaster",()=>K,"default",()=>S,"toast",()=>S],705766)},443987,e=>{"use strict";var t=e.i(843476),s=e.i(271645);let a=(0,s.createContext)({sidePanel:null,setSidePanel:()=>{}});function r({children:e}){let[r,i]=(0,s.useState)({show:!1,width:"narrow"});return(0,t.jsx)(a.Provider,{value:{sidePanel:r,setSidePanel:i},children:e})}e.s(["SidePanelContext",0,a,"default",()=>r,"useSidePanelContext",0,()=>(0,s.useContext)(a)])},343794,(e,t,s)=>{!function(){"use strict";var s={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var n=a.apply(null,r);n&&e.push(n)}}else if("object"===i){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var l in r)s.call(r,l)&&r[l]&&e.push(l)}}}return e.join(" ")}if(t.exports)a.default=a,t.exports=a;else if("function"==typeof define&&"object"==typeof define.amd&&define.amd)void 0!==a&&e.v(a);else window.classNames=a}()},787906,e=>{"use strict";var t=e.i(271645);let s=t.forwardRef(function({title:e,titleId:s,...a},r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":s},a),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))});e.s(["CheckIcon",0,s],787906)},301931,e=>{"use strict";var t=e.i(843476),s=e.i(787906),a=e.i(522016),r=e.i(443987),i=e.i(271645),n=e.i(245871),l=e.i(618566);function o({lng:e}){let{t:o}=(0,n.useTranslation)(null,"g"),{sidePanel:c,setSidePanel:d}=(0,r.useSidePanelContext)(),u=(0,l.usePathname)(),m=u?.includes("/subscribe");(0,i.useEffect)(()=>{d(e=>({...e,title:""}))},[]);let f=(0,i.useMemo)(()=>{let e=navigator.userAgent.toLowerCase(),t=/iphone|ipad|ipod/.test(e),s=/android/.test(e);return t||s?"com.motherbeing.motherbeing://":null},[]);return(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsxs)("div",{className:"max-w-sm flex flex-col items-center",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"mx-auto flex h-20 w-20 w-18 items-center justify-center rounded-full bg-green-100",children:(0,t.jsx)(s.CheckIcon,{className:"h-10 w-10 text-green-600","aria-hidden":"true"})}),(0,t.jsxs)("div",{className:"mt-3 text-center sm:mt-5",children:[(0,t.jsx)("h3",{className:"text-mbmd font-semibold leading-6 text-gray-900",children:o(m?"subscriptionSuccessful":"orderSuccessful")}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("p",{className:"text-mbsm text-gray-500",children:o(m?"subscriptionSuccessfulText":"orderSuccessfulText")})})]})]}),(0,t.jsx)("div",{className:"mt-3 justify-center",children:(!m||m&&!!f)&&(0,t.jsxs)(a.default,{onClick:()=>{d(e=>({...e,show:!1}))},href:m?f:`/${e}/account`,className:"mb-btn inline-flex items-center gap-3 hover:gap-5 py-2 text-primary-black hover:text-primary-dark transition-all duration-300 ease-in-expo",children:[o("manageAccount"),(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"2.5",stroke:"currentColor",className:"w-5 h-5 direction_icon",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12h15m0 0l-6.75-6.75M19.5 12l-6.75 6.75"})})]})})]})})}e.s(["default",()=>o])},264462,e=>{"use strict";var t=e.i(271645);let s=t.forwardRef(function({title:e,titleId:s,...a},r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":s},a),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0 1 18 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3 1.5 1.5 3-3.75"}))});e.s(["ClipboardDocumentCheckIcon",0,s],264462)},609983,e=>{"use strict";var t=e.i(271645);let s=t.forwardRef(function({title:e,titleId:s,...a},r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":s},a),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))});e.s(["XCircleIcon",0,s],609983)},102662,e=>{"use strict";var t=e.i(843476),s=e.i(787906);e.i(522016);var a=e.i(443987),r=e.i(271645),i=e.i(245871),n=e.i(618566);function l({lng:e}){let{t:l}=(0,i.useTranslation)(null,"g"),{sidePanel:o,setSidePanel:c}=(0,a.useSidePanelContext)(),d=(0,n.usePathname)(),{id:u}=(0,n.useParams)();d?.includes("/subscribe");let m=(0,n.useRouter)();return(0,r.useEffect)(()=>{d.startsWith(`/${e}/appsubscribe`)&&m.push("?payment-success")},[d]),(0,r.useEffect)(()=>{c(e=>({...e,title:"",type:"paymentSuccess"}))},[]),(0,r.useMemo)(()=>{let e=navigator.userAgent.toLowerCase(),t=/iphone|ipad|ipod/.test(e),s=/android/.test(e);return t||s?"com.motherbeing.motherbeing://":null},[]),(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsxs)("div",{className:"max-w-sm flex flex-col items-center",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"mx-auto flex h-20 w-20 w-18 items-center justify-center rounded-full bg-green-100",children:(0,t.jsx)(s.CheckIcon,{className:"h-10 w-10 text-green-600","aria-hidden":"true"})}),(0,t.jsxs)("div",{className:"mt-3 text-center sm:mt-5",children:[(0,t.jsx)("h3",{className:"text-mbmd font-semibold leading-6 text-gray-900",children:l("orderSuccessful")}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("p",{className:"text-mbsm text-gray-500",children:l("subscriptionSuccessfulText")})})]})]}),(0,t.jsxs)("span",{onClick:()=>{u&&(window.location.href=`/${e}/programs/${u}`),c(e=>({...e,show:!1}))},className:"mb-btn inline-flex items-center gap-3 hover:gap-5 py-2 text-primary-black hover:text-primary-dark transition-all duration-300 ease-in-expo cursor-pointer",children:[l("backToDaleela"),(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"2.5",stroke:"currentColor",className:"w-5 h-5 direction_icon",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12h15m0 0l-6.75-6.75M19.5 12l-6.75 6.75"})})]})]})})}e.s(["default",()=>l])}
177,808341,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a={cancelIdleCallback:function(){return n},requestIdleCallback:function(){return i}};for(var r in a)Object.defineProperty(s,r,{enumerable:!0,get:a[r]});let i="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof s.default||"object"==typeof s.default&&null!==s.default)&&void 0===s.default.__esModule&&(Object.defineProperty(s.default,"__esModule",{value:!0}),Object.assign(s.default,s),t.exports=s.default)},479520,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a={default:function(){return v},handleClientScriptLoad:function(){return x},initScriptLoader:function(){return b}};for(var r in a)Object.defineProperty(s,r,{enumerable:!0,get:a[r]});let i=e.r(555682),n=e.r(190809),l=e.r(843476),o=i._(e.r(174080)),c=n._(e.r(271645)),d=e.r(742732),u=e.r(922737),m=e.r(808341),f=new Map,p=new Set,h=e=>{let{src:t,id:s,onLoad:a=()=>{},onReady:r=null,dangerouslySetInnerHTML:i,children:n="",strategy:l="afterInteractive",onError:c,stylesheets:d}=e,m=s||t;if(m&&p.has(m))return;if(f.has(t)){p.add(m),f.get(t).then(a,c);return}let h=()=>{r&&r(),p.add(m)},x=document.createElement("script"),b=new Promise((e,t)=>{x.addEventListener("load",function(t){e(),a&&a.call(this,t),h()}),x.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});i?(x.innerHTML=i.__html||"",h()):n?(x.textContent="string"==typeof n?n:Array.isArray(n)?n.join(""):"",h()):t&&(x.src=t,f.set(t,b)),(0,u.setAttributesFromProps)(x,e),"worker"===l&&x.setAttribute("type","text/partytown"),x.setAttribute("data-nscript",l),d&&(e=>{if(o.default.preinit)return e.forEach(e=>{o.default.preinit(e,{as:"style"})});if("undefined"!=typeof window){let t=document.head;e.forEach(e=>{let s=document.createElement("link");s.type="text/css",s.rel="stylesheet",s.href=e,t.appendChild(s)})}})(d),document.body.appendChild(x)};function x(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,m.requestIdleCallback)(()=>h(e))}):h(e)}function b(e){e.forEach(x),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");p.add(t)})}function g(e){let{id:t,src:s="",onLoad:a=()=>{},onReady:r=null,strategy:i="afterInteractive",onError:n,stylesheets:u,...f}=e,{updateScripts:x,scripts:b,getIsSsr:g,appDir:v,nonce:y}=(0,c.useContext)(d.HeadManagerContext);y=f.nonce||y;let w=(0,c.useRef)(!1);(0,c.useEffect)(()=>{let e=t||s;w.current||(r&&e&&p.has(e)&&r(),w.current=!0)},[r,t,s]);let j=(0,c.useRef)(!1);if((0,c.useEffect)(()=>{if(!j.current){if("afterInteractive"===i)h(e);else"lazyOnload"===i&&("complete"===document.readyState?(0,m.requestIdleCallback)(()=>h(e)):window.addEventListener("load",()=>{(0,m.requestIdleCallback)(()=>h(e))}));j.current=!0}},[e,i]),("beforeInteractive"===i||"worker"===i)&&(x?(b[i]=(b[i]||[]).concat([{id:t,src:s,onLoad:a,onReady:r,onError:n,...f,nonce:y}]),x(b)):g&&g()?p.add(t||s):g&&!g()&&h({...e,nonce:y})),v){if(u&&u.forEach(e=>{o.default.preinit(e,{as:"style"})}),"beforeInteractive"===i)if(!s)return f.dangerouslySetInnerHTML&&(f.children=f.dangerouslySetInnerHTML.__html,delete f.dangerouslySetInnerHTML),(0,l.jsx)("script",{nonce:y,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([0,{...f,id:t}])})`}});else return o.default.preload(s,f.integrity?{as:"script",integrity:f.integrity,nonce:y,crossOrigin:f.crossOrigin}:{as:"script",nonce:y,crossOrigin:f.crossOrigin}),(0,l.jsx)("script",{nonce:y,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([s,{...f,id:t}])})`}});"afterInteractive"===i&&s&&o.default.preload(s,f.integrity?{as:"script",integrity:f.integrity,nonce:y,crossOrigin:f.crossOrigin}:{as:"script",nonce:y,crossOrigin:f.crossOrigin})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let v=g;("function"==typeof s.default||"object"==typeof s.default&&null!==s.default)&&void 0===s.default.__esModule&&(Object.defineProperty(s.default,"__esMo
177dule",{value:!0}),Object.assign(s.default,s),t.exports=s.default)},3303,(e,t,s)=>{t.exports=e.r(479520)},605862,e=>{"use strict";var t=e.i(271645);let s=t.forwardRef(function({title:e,titleId:s,...a},r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":s},a),e?t.createElement("title",{id:s},e):null,t.createElement("path",{fillRule:"evenodd",d:"M10.868 2.884c-.321-.772-1.415-.772-1.736 0l-1.83 4.401-4.753.381c-.833.067-1.171 1.107-.536 1.651l3.62 3.102-1.106 4.637c-.194.813.691 1.456 1.405 1.02L10 15.591l4.069 2.485c.713.436 1.598-.207 1.404-1.02l-1.106-4.637 3.62-3.102c.635-.544.297-1.584-.536-1.65l-4.752-.382-1.831-4.401Z",clipRule:"evenodd"}))});e.s(["StarIcon",0,s],605862)},915415,e=>{"use strict";var t=e.i(843476),s=e.i(271645),a=e.i(301931),r=e.i(102662),i=e.i(443987),n=e.i(618566),l=e.i(605862);function o({id:e,question:s,feedback:a,setFeedback:r}){let i=[];for(let n=1;n<=5;n++)i.push((0,t.jsx)("span",{className:`cursor-pointer transition-colors duration-300 ${a?.[e]?.value>=n?"text-mb-yellow":"text-neutral-200/80"}`,onClick:()=>{r(t=>({...t,[e]:{id:e,title:s,type:"stars",value:n}}))},children:(0,t.jsx)(l.StarIcon,{className:"w-5 h-5"})},n));return i}var c=e.i(245871);function d({id:e,question:s,feedback:a,setFeedback:r,options:i,lng:n}){let{t:l}=(0,c.useTranslation)(n,"feedback");return(0,t.jsxs)("div",{className:"flex flex-col sm:grid-cols-2 gap-1 bg-white p-1.5 rounded-2xl -mb-0.5",children:[i.map(i=>(0,t.jsxs)("span",{className:`${a?.[e]?.value===i.value?`${i?.activeColor??"bg-mb-green-300"} text-white active`:"bg-neutral-100/80 text-neutral-700 hover:text-neutral-800 hover:bg-mb-custard-100"} group flex items-center gap-x-3 sm:gap-x-4 leading-snug px-5 py-3.5 rounded-xl cursor-pointer font-medium text-[0.92rem] transition-colors duration-300 ease-in-expo`,onClick:()=>{r(t=>({...t,[e]:{id:e,title:s,type:"choices",value:i.value,answerText:i.name,activeColor:i.activeColor}}))},children:[(0,t.jsx)("span",{className:"flex-grow",children:l(i.name)}),(0,t.jsxs)("span",{className:"text-black-700/10 group-[.active]:text-white transition-colors duration-300 ease-in-expo -me-1",children:[(0,t.jsx)("svg",{fill:"currentColor",viewBox:"0 0 24 24",className:"w-5 h-5 hidden group-[.active]:block",children:(0,t.jsx)("path",{d:"m12,0C5.383,0,0,5.383,0,12s5.383,12,12,12,12-5.383,12-12S18.617,0,12,0Zm6.2,10.512l-4.426,4.345c-.783.768-1.791,1.151-2.8,1.151-.998,0-1.996-.376-2.776-1.129l-1.899-1.867c-.394-.387-.399-1.02-.012-1.414.386-.395,1.021-.4,1.414-.012l1.893,1.861c.776.75,2.001.746,2.781-.018l4.425-4.344c.393-.388,1.024-.381,1.414.013.387.394.381,1.027-.014,1.414Z"})}),(0,t.jsx)("svg",{fill:"currentColor",viewBox:"0 0 24 24",className:"w-5 h-5 block group-[.active]:hidden",children:(0,t.jsx)("path",{d:"M12,0A12,12,0,1,0,24,12,12,12,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10,10,0,0,1,12,22Z"})})]})]},i.value)),(0,t.jsx)("span",{className:"hidden bg-mb-redwood/90"}),(0,t.jsx)("span",{className:"hidden bg-mb-yellow"}),(0,t.jsx)("span",{className:"hidden bg-mb-green-300/90"})]})}let u=["bg-mb-yellow","bg-mb-green-300/90","bg-mb-green-200","bg-mb-green-100"];function m({id:e,question:s,feedback:a,setFeedback:r,options:i,lng:n}){let{t:l}=(0,c.useTranslation)(n,"feedback");return(0,t.jsx)("div",{className:"text-center inline-flex gap-1 bg-white p-1.5 rounded-full -mb-0.5",children:i.map(i=>(0,t.jsx)("span",{className:`${a?.[e]?.value==i.value?`${u[i.value]} text-white active`:"bg-neutral-100/80 text-neutral-700 hover:text-neutral-800 hover:bg-mb-custard-100"} capitalize whitespace-nowrap min-w-[3.8rem] px-5 py-2 first-of-type:rounded-s-full last-of-type:rounded-e-full cursor-pointer font-medium text-[0.92rem] transition-colors duration-300 ease-in-expo`,onClick:()=>{r(t=>({...t,[e]:{id:e,title:s,type:"switch",value:i.value}}))},children:l(i.name)},i.value))})}function f({id:e,question:s,feedback:a,setFeedback:r,lng:i}){let{t:n}=(0,c.useTranslation)(i,"feedback");return(0,t.jsx)("textarea",{rows:3,name:e,id:e,dir:"auto",className:"block resize-none w-full rounded-xl border-0 p-2 sm:p-3 text-[0.9rem] leading-normal text-neutral-700 hover:text-neutral-800 !ring-0",defaultValue:"",onChange:t=>{r(a=>({...a,[e]:{id:e,title:s,type:"textarea",value:t.target.value}}))}})}var p=e.i(343794);e.i(436180);var h=e.i(98925),x=e.i(90880),b=e.i(683682);let g=s.forwardRef(function({title:e,titleId:t,...a},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},a),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12Z"}))});var v=e.i(264462),y=e.i(609983);function w({stutus:e,title:s,subtitle:a}){return(0,t.jsxs)("div",{className:"sm:mt-4 font-text tracking-normal leading-[1.72em]",children:["confirmed"===e?(0,t.jsx)("div",{className:"mx-auto flex h-20 w-20 w-18 items-center justify-center rounded-full bg-emerald-100 text-emerald-600",children:(0,t.jsx)(g,{className:"h-10 w-10 stroke-1","aria-hidden":"true"})}):"answered"===e?(0,t.jsx)("div",{className:"mx-auto flex h-20 w-20 w-18 items-center justify-center rounded-full bg-mb-custard-100/70 text-mb-yellow",children:(0,t.jsx)(v.ClipboardDocumentCheckIcon,{className:"h-10 w-10 stroke-1","aria-hidden":"true"})}):"canceled"===e?(0,t.jsx)("div",{className:"mx-auto flex h-20 w-20 w-18 items-center justify-center rounded-full bg-mb-custard-100/70 text-mb-yellow",children:(0,t.jsx)(y.XCircleIcon,{className:"h-10 w-10 stroke-1","aria-hidden":"true"})}):"",(0,t.jsxs)("div",{className:"mt-3 text-center sm:mt-5",children:[(0,t.jsx)("h3",{className:"font-titles text-[1.04rem] font-semibold leading-tight text-gray-900",children:s}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("p",{className:"text-[0.92rem] text-neutral-500",children:a})})]})]})}let j=s.forwardRef(function({title:e,titleId:t,...a},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},a),e?s.createElement("title",{id:t},e):null,s.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-8-5a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0v-4.5A.75.75 0 0 1 10 5Zm0 10a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",clipRule:"evenodd"}))});var k=e.i(705766);function N({lng:e,disableCloseConfirmation:a}){let{t:r}=(0,c.useTranslation)(e,"feedback"),{id:i}=(0,n.useParams)(),{data:l,questions:u,loading:g}
177=function(e){let t=(0,x.useFirestore)(),[a,r]=(0,s.useState)(null),[i,n]=(0,s.useState)(null),[l,o]=(0,s.useState)(!0);return(0,s.useEffect)(()=>{if(t&&e){let s;s=(0,h.doc)(t,"feedbackForms",e),(0,h.getDoc)(s).then(e=>{if(e.exists){let t=e.data();r(t),n(t.questions)}o(!1)}).catch(e=>{r(null),n(null),o(!1)})}},[t,e]),{data:a,questions:i,loading:l}}(i),[v,{loading:y}]=function(){let{state:e,setError:t,setData:a,setLoading:r}=(0,b.useRequestState)(),i=(0,x.useFirestore)();return[(0,s.useCallback)(async(e,s)=>new Promise(async(n,l)=>{try{r(!0);let t=(0,h.doc)(i,"feedbackForms",e);await (0,h.updateDoc)(t,{answers:s,answered:!0,answerDate:h.Timestamp.now()}),r(!1),a(s),n(s)}catch(e){r(!1),t(e.message),l(e)}}),[i,a,t,r]),e]}(),[N,C]=(0,s.useState)(!1),[_,P]=(0,s.useState)(!1),[E,S]=(0,s.useState)({});return((0,s.useEffect)(()=>{(N||!g&&(!u||l.answered))&&a()},[N,g,u,l]),N)?(0,t.jsx)(w,{stutus:"confirmed",title:r("submitConfirmedTitle"),subtitle:r("submitConfirmedSubtitle")}):g?(0,t.jsx)("div",{className:"hidden",children:"Loading..."}):!u||l?.answered?(0,t.jsx)(w,{stutus:"answered",title:r("cantLoadFormTitle"),subtitle:r("cantLoadFormSubtitle")}):(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("div",{className:"bg-mb-custard-100 rounded-2xl",children:(u??[]).map((e,s)=>(0,t.jsxs)("div",{className:"px-6 sm:px-8 py-6 sm:py-7 border-b border-white last-of-type:border-b-0",children:[(0,t.jsxs)("h4",{className:"flex items-start gap-x-3 justify-between font-titles font-medium text-primary-black text-[0.94rem] sm:text-mbxs mb-2.5 sm:mb-3.5",children:[(0,t.jsxs)("span",{children:[e.id,". ",r(e.question)]}),e?.required&&_&&(0,t.jsxs)("span",{className:"group relative text-orange-300 -mt-0.5 max-sm:-me-2",children:[(0,t.jsx)(j,{className:"w-6 h-6 animate-pulse cursor-pointer"}),(0,t.jsx)("span",{className:"absolute z-10 top-full end-0 pointer-events-none bg-white shadow-sm px-3 py-2 leading-tight font-sans text-[0.84rem] text-neutral-800 font-medium rounded-lg whitespace-nowrap translate-y-3 group-hover:translate-y-1 opacity-0 group-hover:opacity-100 transition duration-300 ease-in-expo",children:r("requiredField")})]})]}),"stars"===e.type?(0,t.jsx)("div",{className:"mb-rating gap-1 inline-flex ltr:justify-end bg-white px-5 py-3 rounded-full -mb-0.5",children:(0,t.jsx)(o,{id:e.id,feedback:E,question:e.question,setFeedback:S,count:5})}):"switch"===e.type?(0,t.jsx)(t.Fragment,{children:e.options&&(0,t.jsx)(m,{id:e.id,feedback:E,question:e.question,setFeedback:S,options:e.options})}):"textarea"===e.type?(0,t.jsx)(f,{id:e.id,feedback:E,question:e.question,setFeedback:S}):(0,t.jsx)(t.Fragment,{children:e.options&&(0,t.jsx)(d,{id:e.id,feedback:E,question:e.question,setFeedback:S,options:e.options})}),e.subQuestions&&(0,t.jsxs)("div",{className:(0,p.default)(E?.[e.id]?.value<=e.subQuestionsRequirement?"flex flex-col":"hidden","relative bg-white rounded-2xl pt-7 pb-0.5 mt-7"),children:[(0,t.jsx)("span",{className:"absolute start-6 -top-3.5",children:(0,t.jsx)("svg",{viewBox:"0 0 24 24",className:"w-6 h-6 fill-white",children:(0,t.jsx)("path",{d:"M6.414,15.586H17.586a1,1,0,0,0,.707-1.707L12.707,8.293a1,1,0,0,0-1.414,0L5.707,13.879A1,1,0,0,0,6.414,15.586Z"})})}),(e?.subQuestions??[]).map((e,s)=>(0,t.jsxs)("div",{className:"border-b border-mb-custard-100 last-of-type:border-b-0 mb
177-5 pb-5 px-6 last-of-type:pb-4 last-of-type:mb-0",children:[(0,t.jsxs)("h4",{className:"flex items-start gap-x-1.5 font-titles font-medium text-primary-black text-[0.92rem] mb-2.5",children:[(0,t.jsxs)("span",{className:"align-middle",children:["- ",r(e.question)]}),e?.required&&_&&(0,t.jsxs)("span",{className:"group relative text-orange-300 -mt-0.5 max-sm:-me-2",children:[(0,t.jsx)(j,{className:"w-6 h-6 animate-pulse cursor-pointer"}),(0,t.jsx)("span",{className:"absolute top-full sm:top-1/2 max-sm:end-0 sm:start-full z-10 pointer-events-none bg-white border border-neutral-200/80 px-3 py-2 leading-tight font-sans text-[0.84rem] text-neutral-800 font-medium rounded-lg whitespace-nowrap max-sm:translate-y-3 sm:-translate-y-1/2 translate-x-3 max-sm:group-hover:translate-y-1 sm:group-hover:translate-x-1 opacity-0 group-hover:opacity-100 transition duration-300 ease-in-expo",children:r("requiredField")})]})]}),"stars"===e.type?(0,t.jsx)("div",{className:"mb-rating relative gap-x-1 inline-flex ltr:justify-end",children:(0,t.jsx)(o,{id:e.id,feedback:E,question:e.question,setFeedback:S,count:5})}):"switch"===e.type?(0,t.jsx)(t.Fragment,{children:e.options&&(0,t.jsx)(m,{id:e.id,feedback:E,question:e.question,setFeedback:S,options:e.options})}):"textarea"===e.type?(0,t.jsx)("div",{className:"-mx-2",children:(0,t.jsx)(f,{id:e.id,feedback:E,question:e.question,setFeedback:S})}):(0,t.jsx)("div",{className:"-mx-2",children:e.options&&(0,t.jsx)(d,{id:e.id,feedback:E,question:e.question,setFeedback:S,options:e.options})}),e.subQuestions&&(0,t.jsx)(t.Fragment,{children:(e?.subQuestions??[]).map((s,a)=>(0,t.jsxs)("div",{className:(0,p.default)(E?.[e.id]?.value<=e.subQuestionsRequirement?"flex flex-col":"hidden","relative mt-4"),children:[(0,t.jsxs)("h4",{className:"flex items-start gap-x-1.5 font-titles font-medium text-primary-black text-[0.92rem] mb-2.5",children:[(0,t.jsxs)("span",{className:"align-middle",children:["- ",r(s.question)]}),s?.required&&_&&(0,t.jsxs)("span",{className:"group relative text-orange-300 -mt-0.5 max-sm:-me-2",children:[(0,t.jsx)(j,{className:"w-6 h-6 animate-pulse cursor-pointer"}),(0,t.jsx)("span",{className:"absolute top-full sm:top-1/2 max-sm:end-0 sm:start-full z-10 pointer-events-none bg-white border border-neutral-200/80 px-3 py-2 leading-tight font-sans text-[0.84rem] text-neutral-800 font-medium rounded-lg whitespace-nowrap max-sm:translate-y-3 sm:-translate-y-1/2 translate-x-3 max-sm:group-hover:translate-y-1 sm:group-hover:translate-x-1 opacity-0 group-hover:opacity-100 transition duration-300 ease-in-expo",children:r("requiredField")})]})]}),(0,t.jsx)("div",{className:"border-2 rounded-xl border-mb-custard-100",children:(0,t.jsx)(f,{id:s.id,feedback:E,question:s.question,setFeedback:S})})]},a))})]},s))]})]},s))}),_&&(0,t.jsx)("p",{className:"text-orange-500 text-mbxs text-center mt-4 mb-1 font-medium",children:r("pleaseSelectRequired")}),(0,t.jsx)("button",{disabled:y,type:"submit",className:"mt-3 flex w-full h-[3.375rem] ltr:tracking-tighter leading-none justify-center items-center font-medium text-mbxs py-5 rounded-2xl bg-primary-dark enabled:hover:bg-primary disabled:opacity-40 px-4 text-white transition-colors duration-300 ease-in-expo",onClick:()=>{if(function(e,t){for(let s of e){if(s.required&&!t[s.id])return!1;if(s.subQuestions&&s.subQuestionsRequirement&&t[s.id]&&t[s.id].value<=s.subQuestionsRequirement)for(let e of s.subQuestions){if(e.required&&!t[e.id])return!1;if(e.subQuestions&&e.subQuestionsRequirement&&t[s.id]&&t[s.id].value<=e.subQuestionsRequirement){for(let s of e.subQuestions)if(s.required&&!t[s.id])return!1}}}return!0}(u,E)){let e=v(i,E);k.default.promise(e,{loading:r("submittingFeedback"),success:(0,t.jsx)("b",{children:r("feedbackSubmitted")}),error:(0,t.jsx)("b",{children:r("somethingWrong")})}),e.then(()=>{C(!0)})}else P(!0)},children:r("submitFeedback")})]})}function C({lng:e,sidePanelTriggerObject:l}){let{t:o}=(0,c.useTranslation)(e,"feedback"),{sidePanel:d,setSidePanel:u}=(0,i.useSidePanelContext)(),m=(0,n.useRouter)(),[f,p]=(0,s.useState)(!0),h=()=>{p(!1)}
177,x=(0,n.usePathname)(),b=(0,n.useSearchParams)();return(0,s.useEffect)(()=>{l&&l?.type=="confirmPayment"&&(x.startsWith(`/${e}/appsubscribe`)?"true"==b.get("success")?u({show:!0,width:"narrow",title:"",Content:(0,t.jsx)(r.default,{lng:e})}):k.default.error(o("subscriptionFailed")):"true"==b.get("success")?u({show:!0,width:"narrow",title:"",Content:(0,t.jsx)(a.default,{lng:e})}):k.default.error(o("subscriptionFailed"))),l&&l?.type=="openFeedback"&&u({show:!0,width:"narrow",closeConfirmation:{show:f,title:o("feedbackConfirmationAlertTitle"),message:o("feedbackConfirmationAlertmMessage"),yes:o("feedbackConfirmationAlertYes"),no:o("feedbackConfirmationAlertNo")},onClose:()=>{m.push(`/${e}/`)},title:o("feedbackFormTitle"),Content:(0,t.jsx)(N,{lng:e,disableCloseConfirmation:h})})},[f]),(0,t.jsx)(t.Fragment,{})}e.s(["default",()=>C],915415)},461316,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=function({html:e,height:t=null,width:s=null,children:i,dataNtpc:n=""}){return(0,r.useEffect)(()=>{n&&performance.mark("mark_feature_usage",{detail:{feature:`next-third-parties-${n}`}})},[n]),(0,a.jsxs)(a.Fragment,{children:[i,e?(0,a.jsx)("div",{style:{height:null!=t?`${t}px`:"auto",width:null!=s?`${s}px`:"auto"},"data-ntpc":n,dangerouslySetInnerHTML:{__html:e}}):null]})};let a=e.r(843476),r=e.r(271645)},19598,(e,t,s)=>{"use strict";var a=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(s,"__esModule",{value:!0}),s.sendGTMEvent=void 0,s.GoogleTagManager=function(e){let{gtmId:t,gtmScriptUrl:s,dataLayerName:a="dataLayer",auth:o,preview:c,dataLayer:d,nonce:u}=e;l=a;let m=new URL(s||"https://www.googletagmanager.com/gtm.js");return t&&m.searchParams.set("id",t),"dataLayer"!==a&&m.searchParams.set("l",a),o&&m.searchParams.set("gtm_auth",o),c&&(m.searchParams.set("gtm_preview",c),m.searchParams.set("gtm_cookies_win","x")),(0,i.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:` 178 (function(w,l){ 179 w[l]=w[l]||[]; 180 w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'}); 181 ${d?`w[l].push(${JSON.stringify(d)})`:""} 182 })(window,'${a}');`},nonce:u}),(0,r.jsx)(n.default,{id:"_next-gtm","data-ntpc":"GTM",src:m.href,nonce:u})]})};let r=e.r(843476),i=e.r(271645),n=a(e.r(3303)),l="dataLayer";s.sendGTMEvent=(e,t)=>{let s=t||l;window[s]=window[s]||[],window[s].push(e)}},654576,(e,t,s)=>{"use strict";let a;var r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(s,"__esModule",{value:!0}),s.GoogleAnalytics=function(e){let{gaId:t,debugMode:s,dataLayerName:r="dataLayer",nonce:o}=e;return void 0===a&&(a=r),(0,n.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:` 183 window['${r}'] = window['${r}'] || []; 184 function gtag(){window['${r}'].push(arguments);} 185 gtag('js', new Date()); 186 187 gtag('config', '${t}' ${s?",{ 'debug_mode': true }":""});`},nonce:o}),(0,i.jsx)(l.default,{id:"_next-ga",src:`https://www.googletagmanager.com/gtag/js?id=${t}`,nonce:o})]})},s.sendGAEvent=function(){void 0===a?console.warn("@next/third-parties: GA has not been initialized"):window[a]?window[a].push(arguments):console.warn(`@next/third-parties: GA dataLayer ${a} does not exist`)};let i=e.r(843476),n=e.r(271645),l=r(e.r(3303))},626641,e=>{"use strict";var t=e.i(843476),s=e.i(271645),a=e.i(342973),r=e.i(523353),i=e.i(381248);function n({children:e}){let[n]=(0,a.default)(),{userInfo:l,updateUserContext:o}=(0,r.useUserContext)();return(0,s.useEffect)(()=>{void 0!==window?.gtag&&l?.uid&&(i.default.production||i.default.enableAnalyticsDev)&&window.gtag("get","G-GKM22JDL0S","client_id",async e=>{if(l?.analyticsClientId!=e&&e)try{o({analyticsClientId:e})}catch(e){}})},[l?.uid]),(0,t.jsx)(t.Fragment,{children:e})}e.s(["default",()=>n])},545636,e=>{e.v(t=>Promise.all(["static/chunks/4c70345a0780e76d.js"].map(t=>e.l(t))).then(()=>t(97568)))},189946,e=>{e.v(t=>Promise.all(["static/chunks/695a684f07570b16.js"].map(t=>e.l(t))).then(()=>t(189488)))},898907,e=>{e.v(t=>Promise.all(["static/chunks/031989d5688c7a5e.js"].map(t=>e.l(t))).then(()=>t(981650)))},247370,e=>{e.v(t=>Promise.all(["static/chunks/3c5ab8806283165a.js"].map(t=>e.l(t))).then(()=>t(188917)))},58616,e=>{e.v(t=>Promise.all(["static/chunks/74c68dbc7985b1be.js"].map(t=>e.l(t))).then(()=>t(834350)))},631605,e=>{e.v(t=>Promise.all(["static/chunks/1074f150a01681aa.js"].map(t=>e.l(t))).then(()=>t(635613)))},483123,e=>{e.v(t=>Promise.all(["static/chunks/9f20d0acb10fcc86.js"].map(t=>e.l(t))).then(()=>t(261512)))},944893,e=>{e.v(t=>Promise.all(["static/chunks/0cb9f6b152ccf371.js"].map(t=>e.l(t))).then(()=>t(800606)))},53139,e=>{e.v(t=>Promise.all(["static/chunks/fe9de103f04c5054.js"].map(t=>e.l(t))).then(()=>t(423719)))},110126,e=>{e.v(t=>Promise.all(["static/chunks/303ef2fca530b80e.js"].map(t=>e.l(t))).then(()=>
187t(55551)))},626653,e=>{e.v(t=>Promise.all(["static/chunks/39610a0269034d74.js"].map(t=>e.l(t))).then(()=>t(70847)))},880286,e=>{e.v(t=>Promise.all(["static/chunks/74e0108840ff6b32.js"].map(t=>e.l(t))).then(()=>t(744778)))},800509,e=>{e.v(t=>Promise.all(["static/chunks/26986819bc37d461.js"].map(t=>e.l(t))).then(()=>t(254237)))},269213,e=>{e.v(t=>Promise.all(["static/chunks/cacb5409b87662fd.js"].map(t=>e.l(t))).then(()=>t(110677)))},58262,e=>{e.v(t=>Promise.all(["static/chunks/4d64ba162620deb9.js"].map(t=>e.l(t))).then(()=>t(751103)))},650482,e=>{e.v(t=>Promise.all(["static/chunks/8e9b7be7d985b7b2.js"].map(t=>e.l(t))).then(()=>t(989164)))},749775,e=>{e.v(t=>Promise.all(["static/chunks/3c8c5e7f1dce5f88.js"].map(t=>e.l(t))).then(()=>t(479741)))},804594,e=>{e.v(t=>Promise.all(["static/chunks/13a821c37901c517.js"].map(t=>e.l(t))).then(()=>t(423671)))},82613,e=>{e.v(t=>Promise.all(["static/chunks/85f316541460af65.js"].map(t=>e.l(t))).then(()=>t(292857)))},506892,e=>{e.v(t=>Promise.all(["static/chunks/8b72959c373cc053.js"].map(t=>e.l(t))).then(()=>t(147050)))},17675,e=>{e.v(t=>Promise.all(["static/chunks/8edfbeeb7e9042c1.js"].map(t=>e.l(t))).then(()=>t(713881)))},6475,e=>{e.v(t=>Promise.all(["static/chunks/ae3c0055f012fe8f.js"].map(t=>e.l(t))).then(()=>t(18375)))}]);
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.