1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1468],{11313:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f,getFitnessApps:()=>I});var c=n(70825),a=n.n(c),i=n(14232),o=n(79836),s=n(73589),r=n(37237),M=n(9801),u=n(80475),l=n(51205),x=n.n(l),N=n(26123);function j(e){let{fitbit:t,handleDisconnectFitnessApp:n}=e;return i.createElement("div",{className:"jsx-3805937696 container"},i.createElement("img",{src:x(),alt:"",className:"jsx-3805937696 logo"}),i.createElement("div",{className:"jsx-3805937696 text"},"Only your public workouts will be posted to your active supporter pages. You'll need an active Fitbit account to connect."),null!=t&&t.hasToken?i.createElement(N.$n,{raised:!0,className:"connect-btn",onClick:()=>n("fitbit")},"Disconnect"):i.createElement(N.$n,{raised:!0,className:"connect-btn",onClick:()=>window.location.href=null==t?void 0:t.authorisationUrl},"Connect"),i.createElement(a(),{id:"3805937696"},'.container.jsx-3805937696{padding:32px;max-width:640px;border-radius:16px;box-shadow:rgba(100,100,111,0.2) 0px 7px 29px 0px;font-family:"Montserrat";}.text.jsx-3805937696{margin:24px 0;line-height:1.5;}.container.jsx-3805937696 .connect-btn{background:#2ebec0;padding:0 32px;min-height:48px;}.container.jsx-3805937696 .connect-btn:hover{background:#67aaab;}@media (max-width:480px){.container.jsx-3805937696 .logo.jsx-3805937696{width:128px;}.container.jsx-3805937696 .connect-btn{min-height:40px;}}'))}var d=n(53068),m=n.n(d);function g(e){let{strava:t,handleDisconnectFitnessApp:n}=e,{hasToken:c,authorisationUrl:o}=t;return i.createElement("div",{className:"jsx-3748136910 container"},i.createElement("img",{src:m(),alt:"",className:"jsx-3748136910 logo"}),i.createElement("div",{className:"jsx-3748136910 text"},"Only your public workouts will be posted to your active supporter pages. You'll need an active Strava account to connect."),c?i.createElement(N.$n,{raised:!0,className:"connect-btn disabled-btn",disabled:!0,onClick:()=>n("strava")},"Disconnect"):i.createElement(N.$n,{raised:!0,className:"connect-btn disabled-btn",disabled:!0,onClick:()=>window.location.href=o},"Connect"),i.createElement("div",{className:"jsx-3748136910 notice"},"Strava integration is not available. Please add your activity manually."),i.createElement(a(),{id:"3748136910"},'.container.jsx-3748136910{padding:32px;border-radius:16px;box-shadow:rgba(100,100,111,0.2) 0px 7px 29px 0px;max-width:640px;font-family:"Montserrat";}.text.jsx-3748136910{margin:24px 0;line-height:1.5;}.container.jsx-3748136910 .connect-btn{background:#fc6100;padding:0 32px;min-height:48px;}.container.jsx-3748136910 .disabled-btn{background:#ccc;cursor:not-allowed;pointer-events:none;}.container.jsx-3748136910 .connect-btn:hover{background:#fc9352;}.container.jsx-3748136910 .notice.jsx-3748136910{margin-top:16px;line-height:1.5;color:#404041;font-size:12px;}@media (max-width:480px){.container.jsx-3748136910 .logo.jsx-3748136910{width:128px;}.container.jsx-3748136910 .connect-btn{min-height:40px;}}'))}var C=n(56563),y=n(8274),D=n(98904),p=n(89099),T=n(92538),w=n(47852);function E(e){let{data:t}=e,{strava:n,fitbit:c}=t,o=(0,D.VB)(),s=(0,p.useRouter)(),r=async e=>{await C.gV(o,{typeOfConnection:e}).then(t=>{T.oR.success("Successfully disconnected from ".concat(e,"!"),{icon:i.createElement(w.A.success,null)}),setTimeout(()=>{window.location.href="/my_account/manage-connections"},1e3)}).catch(e=>{T.oR.error("".concat(e),{icon:i.createElement(w.A.error,null)})})};return(0,i.useEffect)(()=>{if(s.query.success&&"1"===s.query.success){let e=s.query.type;T.oR.success("Successfully connected to ".concat(e,"!"),{icon:i.createElement(w.A.success,null)}),setTimeout(()=>{window.location.href="/my_account/manage-connections"},1e3)}},[s]),i.createElement(i.Fragment,null,i.createElement("div",{className:"jsx-20851036 container"},i.createElement(N.y8,{position:"top-center"}),i.createElement(u.A,null),i.createElement("div",{className:"jsx-20851036 cover-fitbit"},i.createElement(j,{fitbit:c,handleDisconnectFitnessApp:r})),i.createElement("div",{className:"jsx-20851036 cover-fitbit"},i.createElement(g,{strava:n,handleDisconnectFitnessApp:r}))),i.createElement(a(),{id:"20851036"},".container.jsx-20851036{margin:40px 30px;}.cover-fitbit.jsx-20851036{margin:24px 0;}.container.jsx-20851036 .Toastify__toast-container--top-center{top:80px;}.container.jsx-20851036 .Toastify__toast-container{max-width:800px;width:100%;z-index:9;}@media (max-width:480px){.container.jsx-20851036{margin:0 20px;}.container.jsx-20851036 .Toastify__toast-container--top-center{top:110px;}}"))}async function I(e){let t=new y.Q9("https://api.mycause.com.au",e);return await C.ZE(t)}E.getLayout=e=>{let{children:t,user:n}=e;return i.createElement(o.A,{user:n},t)},E.getInitialProps=async e=>{let t;let n=await (0,r.H7)(e);if(!n)return(0,M.A)(e,"/my_account",{external:!0}),{};try{t=await I(n.token)}catch(e){console.error(e)}return{user:n.user,data:t}};let f=(0,s.g)({guard:!0,passive:!0})(E)},20476:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/my_account/manage-connections",function(){return n(11313)}])}
1,47852:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var c=n(14232);let a={error:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0],c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},c.createElement("path",{d:"M13 7H11V13H13V7ZM12 15C11.7167 15 11.4792 15.0958 11.2875 15.2875C11.0958 15.4792 11 15.7167 11 16C11 16.2833 11.0958 16.5208 11.2875 16.7125C11.4792 16.9042 11.7167 17 12 17C12.2833 17 12.5208 16.9042 12.7125 16.7125C12.9042 16.5208 13 16.2833 13 16C13 15.7167 12.9042 15.4792 12.7125 15.2875C12.5208 15.0958 12.2833 15 12 15ZM12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2ZM12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4Z",fill:"#D70E00"}))},success:()=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},c.createElement("path",{d:"M13 7H11V13H13V7ZM12 15C11.7167 15 11.4792 15.0958 11.2875 15.2875C11.0958 15.4792 11 15.7167 11 16C11 16.2833 11.0958 16.5208 11.2875 16.7125C11.4792 16.9042 11.7167 17 12 17C12.2833 17 12.5208 16.9042 12.7125 16.7125C12.9042 16.5208 13 16.2833 13 16C13 15.7167 12.9042 15.4792 12.7125 15.2875C12.5208 15.0958 12.2833 15 12 15ZM12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2ZM12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4Z",fill:"#155724"})),warning:()=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},c.createElement("path",{d:"M11 17H13V11H11V17ZM12 9C12.2833 9 12.5208 8.90417 12.7125 8.7125C12.9042 8.52083 13 8.28333 13 8C13 7.71667 12.9042 7.47917 12.7125 7.2875C12.5208 7.09583 12.2833 7 12 7C11.7167 7 11.4792 7.09583 11.2875 7.2875C11.0958 7.47917 11 7.71667 11 8C11 8.28333 11.0958 8.52083 11.2875 8.7125C11.4792 8.90417 11.7167 9 12 9ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"#FF5C00"}))}},51205:e=>{e.exports="/_next/static/images/fitbit_logo-f9b5cc8e114ec2d75b8738989c3eee2d.svg"},53068:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTY4IiBoZWlnaHQ9IjQwIiB2aWV3Qm94PSIwIDAgMTY4IDQwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMjUuNjQ0NyAyOS45M
1DY5TDIyLjE2MjIgMjMuMDQ2OUgxNy4wNTQ3TDI1LjY0NDcgMzkuOTk5NEwzNC4yMjk3IDIzLjA0NjlIMjkuMTE3MiIgZmlsbD0iI0Y5Qjc5NyIvPgo8cGF0aCBkPSJNMTcuNDM0NSAxMy43MTVMMjIuMTYyIDIzLjA0NUgyOS4xMTQ1TDE3LjQzNDUgMEw1Ljc2OTUzIDIzLjA0NzVIMTIuNzE3IiBmaWxsPSIjRjA1MjIyIi8+CjxwYXRoIGQ9Ik00NC4wMDEzIDI3Ljc2M0w0Ny45NjA4IDIzLjAzODdDNTAuMzg0NyAyNC44NzkgNTMuMTQ0MSAyNS42NTQ0IDU1Ljc0NjUgMjUuNjU0NEM1Ny4wODEgMjUuNjU0NCA1Ny42NjAzIDI1LjI5OTkgNTcuNjYwMyAyNC43MDExVjI0LjYzNDdDNTcuNjYwMyAyMy45OTIgNTYuOTcwNCAyMy42NTg4IDU0LjU5MDUgMjMuMTcxNUM0OS42MDY5IDIyLjE1MTcgNDUuMjI1MyAyMC43MzIzIDQ1LjIyNTMgMTYuMDUxOFYxNS45ODU0QzQ1LjIyNTMgMTEuNzcxIDQ4LjUxNzUgOC41MDk4OCA1NC42NTcxIDguNTA5ODhDNTguOTUwOCA4LjUwOTg4IDYyLjEwO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DE1LjgzIDEwMi4wMTkgMTcuMjcyVjE3LjMxNTlIMTAxLjk5NVpNMTIwLjc3IDhMMTA4Ljc4IDMxLjA5MDVIMTE2Ljc0NEwxMjAuNzcgMjMuMDE3NEwxMjQuNzk2IDMxLjA5MDVIMTMyLjc2MUwxMjAuNzcgOFpNMTU2LjAxIDhMMTQ0LjAyIDMxLjA5MDVIMTUxLjk4NEwxNTYuMDEgMjMuMDE3NEwxNjAuMDM2IDMxLjA5MDVIMTY4TDE1Ni4wMSA4Wk0xMzguMzkgMzJMMTUwLjQwMyA4LjkwOTU0SDE0Mi40MzlMMTM4LjQxMyAxNi45ODI2TDEzNC4zNjQgOC45MDk1NEgxMjYuNEwxMzguMzkgMzJaIiBmaWxsPSIjRkM2MTAwIi8+Cjwvc3ZnPgo="},56563:(e,t,n)=>{"use strict";async function c(e,t){return e.request("/my-account/profile",{method:"POST",body:t})}async function a(e,t){return e.request("/my-account/check-if-need-email-verification",{method:"POST",body:t})}async function i(e,t){return e.request("/my-account/verify-email",{method:"POST",body:t})}async function o(e,t){return e.request("/my-account/confirm-email",{method:"POST",body:t})}async function s(e){return await e.request("/my-account",{method:"DELETE"})}async function r(e){return await e.request("/my-account/credit-card")}async function M(e,t){return await e.request("/my-account/credit-card",{method:"DELETE",body:t})}async function u(e,t){return e.request("/my-account/credit-card",{method:"POST",body:t})}async function l(e,t){return e.request("/my-account/facebook",{method:"POST",body:t})}async function x(e,t){return e.request("/my-account/credit-card/make-default",{method:"POST",body:t})}async function N(e){return e.request("/my-account/check-user-deletion",{method:"POST"})}async function j(e){return await e.request("/my-account/fitness-apps")}async function d(e,t){return e.request("/my-account/disconnect-app",{method:"POST",body:t})}async function m(e,t,n){return await e.request("/callback/fitbit-handle-callback?code=".concat(t,"&state=").concat(n))}n.d(t,{A$:()=>i,Ci:()=>s,EM:()=>N,Hi:()=>a,ZE:()=>j,_c:()=>m,dq:()=>M,eg:()=>c,gV:()=>d,j4:()=>u,jf:()=>o,pS:()=>x,rn:()=>l,vx:()=>r})},80475:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var c=n(70825),a=n.n(c),i=n(26123),o=n(89099),s=n(14232);let r=function(){let{0:e,1:t}=(0,s.useState)("info"),n=(0,o.useRouter)(),c=[{id:"info",label:"Profile",href:"/my_account/profile"},{id:"cards",label:"Credit Cards",href:"/my_account/credit_cards"},{id:"apps",label:"Fitness Apps",href:"/my_account/manage-connections"}];return(0,s.useEffect)(()=>{c.map(e=>e.href===n.pathname&&t(e.id))},[n.pathname]),s.createElement("div",{className:"jsx-2827501992 cover"},s.createElement("div",{className:"jsx-2827501992 title"},"Account"),s.createElement("div",{className:"jsx-2827501992 tabs"},c.map(t=>s.createElement("div",{key:t.id,className:"jsx-2827501992 cover-tab"},s.createElement(i.$n,{className:"tab ".concat(e===t.id&&"active"),onClick:()=>n.push(t.href)},t.label)))),s.createElement(a(),{id:"2827501992"},'.cover.jsx-2827501992{font-family:"Montserrat";}.title.jsx-2827501992{font-size:24px;font-weight:700;padding-bottom:10px;border-bottom:1px solid #e2e2e2;}.tabs.jsx-2827501992{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:16px;margin-top:40px;}.tabs.jsx-2827501992 button.tab{background:#f2f8f1;color:#404041;font-size:16px;font-weight:400;padding:10px 16px;}.tabs.jsx-2827501992 button.active{background:#65a797;color:#fff;font-weight:700;}@media (max-width:445px){.tabs.jsx-2827501992{gap:10px;}.tabs.jsx-2827501992 button.tab{font-size:14px;}}@media (max-width:480px){.cover.jsx-2827501992{margin-top:50px;}}@media (max-width:395px){.tabs.jsx-2827501992{gap:8px;}.tabs.jsx-2827501992 button.tab{font-size:12px;}}'))}}},e=>{var t=t=>e(e.s=t);e.O(0,[7348,4312,5874,2254,5,176,636,6593,8792],()=>t(20476)),_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.