PageSourceSearch

https://commmune.com/_next/static/chunks/pages/view/parental_consent-e7cd8bbd8b664f17.js

js commmune.com collected 2026-10-02 06:28:54 UTC 9,203 bytes, 5 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="cf3f3cab-df72-53ab-b9a4-03cb906d0bd2")}catch(e){}}();
3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7326],{9223:(e,a,s)=>{"use strict";s.d(a,{W:()=>d});var n=s(45023),t=s(2004),i=s.n(t),r=s(36439);class d extends r.Component{render(){return(0,n.FD)("div",{className:i().dynamic([["c952b8f945b68b08",[this.props.width?this.props.width:"360",this.props.center?"0":"-10%",this.props.height]]])+" sharedContainer",children:[this.props.children,(0,n.Y)(i(),{id:"c952b8f945b68b08",dynamic:[this.props.width?this.props.width:"360",this.props.center?"0":"-10%",this.props.height],children:`.sharedContainer.__jsx-style-dynamic-selector{width:90%;max-width:${this.props.width?this.props.width:"360"}px;margin:auto;position:absolute;top:${this.props.center?"0":"-10%"};bottom:0;left:0;right:0;height:${this.props.height}px}`})]})}}},14162:(e,a,s)=>{"use strict";s.d(a,{B:()=>c});var n=s(45023),t=s(2004),i=s.n(t);s(36439);var r=s(9223),d=s(80328),l=s(88075);function c({disableSiteDesign:e,headerText:a,headerImage:s,children:t,...o}){let h=(0,l.R)();return e?(0,n.FD)(r.W,{...o,children:[s,(0,n.Y)("section",{children:(0,n.Y)(d.n,{text:a})}),t]}):(0,n.FD)("div",{className:"jsx-bafd874e9de19258 siteDesignBackground",children:[(0,n.FD)("div",{className:"jsx-bafd874e9de19258 siteDesignCard",children:[(0,n.FD)("div",{className:"jsx-bafd874e9de19258",children:[s,(0,n.Y)("section",{className:"jsx-bafd874e9de19258",children:(0,n.Y)(d.n,{text:a,color:h.headingColor})})]}),(0,n.Y)("div",{className:"jsx-bafd874e9de19258 siteDesignCardContent",children:t})]}),(0,n.Y)(i(),{id:"bafd874e9de19258",children:".siteDesignBackground.jsx-bafd874e9de19258{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding-block:16px}.siteDesignCard.jsx-bafd874e9de19258{width:min(408px,90%);min-height:514px;display:grid;grid-template-rows:auto 1fr;align-items:center;margin:0 auto;background-color:#fff;border-radius:12px;box-shadow:0 2px 8px rgba(0,0,0,.06);padding:32px 24px}.siteDesignCardContent.jsx-bafd874e9de19258{min-width:0}.siteDesignCard.jsx-bafd874e9de19258 button:disabled{opacity:.25}"})]})}},64519:(e,a,s)=>{"use strict";s.d(a,{G:()=>l});var n=s(45023),t=s(9534),i=s(25008),r=s.n(i),d=s(47921);let l=({className:e})=>{let a=(0,d.k)();return(0,n.Y)(n.FK,{children:a&&(0,n.Y)("div",{className:r()(`elfsight-app-${t.NR}`,e),"data-elfsight-app-lazy":!0})})}},76948:(e,a,s)=>{"use strict";s.r(a),s.d(a,{default:()=>y});var n=s(45023),t=s(2004),i=s.n(t),r=s(36439),d=s(37612),l=s(20764),c=s(90524),o=s(63640),h=s(15316),p=s(17162),u=s(86448),m=s(14162),g=s(76768),b=s(62885);let f=e=>"object"==typeof e&&null!==e&&e.response?.status===404,y=()=>{let{t:e}=(0,c.B)(["pages/view/parental_consent"]),a=(0,l.useRouter)(),s="string"==typeof a.query._jwt?a.query._jwt:"",t="string"==typeof a.query.tenantId?a.query.tenantId:"",[y,N]=(0,r.useState)({kind:"loading"}),[x,w]=(0,r.useState)(!1);(0,r.useEffect)(()=>{if(a.isReady){if(!s||!t)return void N({kind:"invalid"});d.A.get(`${(0,b.Cm)()}/gdpr/parental_consent`,{params:{_jwt:s,tenantId:t}}).then(({data:e})=>{let a={childEmailMasked:e.childEmailMasked??null,authMethod:e.authMethod??null,requestedAt:e.requestedAt??null};N(e.status===h.o$.CONSENTED?{kind:"already-consented",brandName:e.brandName,signupUrl:null,child:a}:{kind:"pending",brandName:e.brandName,child:a})}).catch(e=>{g.v.error(e),N(f(e)?{kind:"invalid"}:{kind:"error"})})}},[a.isReady,s,t]);let Y=async()=>{if("pending"===y.kind){w(!0);try{let{data:e}=await d.A.post(`${(0,b.Cm)()}/gdpr/parental_consent/approve`,{_jwt:s},{params:{tenantId:t}});N(e.result===h.vr.ALREADY_CONSENTED?{kind:"already-consented",brandName:y.brandName,signupUrl:e.signupUrl,child:y.child}:{kind:"consented",brandName:y.brandName,signupUrl:e.signupUrl,child:y.child})}catch(e){g.v.error(e),N(f(e)?{kind:"invalid"}:{kind:"error"})}finally{w(!1)}}},v=a=>(0,n.FD)("section",{className:"child-identity","data-cy":"parental-consent-child-identity",children:[(0,n.Y)("p",{className:"message",children:e("Child's email address used for sign-up: {{email}}",{email:a.childEmailMasked??e("(not available for this sign-up method)")})}),null!==a.authMethod&&(0,n.Y)("p",{className:"message",children:e("Sign-up method: {{method}}",{method:(a=>{switch(a){case"password":return e("Email address and password");case"social":return e("Social login (Google, Apple, LINE)");case"saml":case"oidc":return e("Single sign-on (an account issued by an organization or school)");case"line-liff":return e("LINE");case null:return null}})(a.authMethod)})}),null!==a.requestedAt&&(0,n.Y)("p",{className:"message",children:e("Requested at: {{datetime}}
3",{datetime:new Date(a.requestedAt).toLocaleString()})})]});return(0,n.Y)(u.I,{children:(0,n.FD)(m.B,{disableSiteDesign:!0,height:450,headerText:e("Consent to your child's participation"),children:[(0,n.Y)("section",{className:"jsx-aba5f27caa537021 mt-4",children:(()=>{switch(y.kind){case"loading":return(0,n.Y)("p",{className:"message",children:e("Loading...")});case"pending":return(0,n.FD)(n.FK,{children:[(0,n.Y)("p",{className:"message",children:e("A child under {{age}} residing in the EU has requested to join {{brandName}} and named you as their parent or guardian.",{age:h.J4,brandName:y.brandName})}),v(y.child),(0,n.Y)("p",{className:"message",children:e("If your child joins, {{brandName}} will process the following personal data: email address, display name, profile information they enter, and their activity within the community (posts, comments, reactions).",{brandName:y.brandName})}),(0,n.Y)("p",{className:"message note",children:e("No account is created until you consent. If you do not recognize this request, simply close this page.")}),(0,n.Y)("section",{className:"mt-4 text-center",children:(0,n.Y)(p.a,{className:"w-75",color:o.A.MAIN_BLUE,disabled:x,onClick:Y,"data-cy":"parental-consent-approve-button",children:e("I consent")})})]});case"consented":case"already-consented":return(0,n.FD)(n.FK,{children:[(0,n.Y)("p",{className:"message",children:"consented"===y.kind?e("Thank you. Your consent has been recorded."):e("You have already given consent.")}),v(y.child),y.signupUrl&&(0,n.FD)(n.FK,{children:[(0,n.Y)("p",{className:"message",children:e("Please ask your child to continue signing up from the following page, using the same sign-up method and email address as before.")}),(0,n.Y)("p",{className:"message text-center",children:(0,n.Y)("a",{href:y.signupUrl,"data-cy":"parental-consent-signup-url",children:y.signupUrl})})]})]});case"invalid":return(0,n.FD)(n.FK,{children:[(0,n.Y)("p",{className:"message",children:e("This link is invalid.")}),(0,n.Y)("p",{className:"message note",children:e("The request may have been deleted, or a new consent email may have been sent to a different address.")})]});case"error":return(0,n.Y)("p",{className:"message",children:e("Something went wrong. Please try again later.")})}})()}),(0,n.Y)(i(),{id:"aba5f27caa537021",children:".message.jsx-aba5f27caa537021{font-size:14px;line-height:1.6}.note.jsx-aba5f27caa537021{color:#909090;font-size:12px}"})]})})}},80328:(e,a,s)=>{"use strict";s.d(a,{n:()=>l});var n=s(45023),t=s(2004),i=s.n(t),r=s(63669),d=s(7528);let l=e=>(0,n.FD)(n.FK,{children:[(0,n.FD)("section",{className:i().dynamic([["b0a4e6c0d54c39ad",[e.color||"#254860"]]])+" header",children:[e.route&&(0,n.Y)(r.N,{route:e.route,children:(0,n.Y)(d.K0,{style:{position:"absolute",top:-5,left:0},children:(0,n.Y)("i",{className:i().dynamic([["b0a4e6c0d54c39ad",[e.color||"#254860"]]])+" fas fa-chevron-left"})})}),(0,n.Y)("span",{className:i().dynamic([["b0a4e6c0d54c39ad",[e.color||"#254860"]]]),children:e.text})]}),(0,n.Y)(i(),{id:"b0a4e6c0d54c39ad",dynamic:[e.color||"#254860"],children:`.header.__jsx-style-dynamic-selector{font-size:24px;font-weight:bold;text-align:center}.header.__jsx-style-dynamic-selector span.__jsx-style-dynamic-selector{color:${e.color||"#254860"}}.iconButton.__jsx-style-dynamic-selector{position:absolute;top:7px;left:15px}`})]})},84667:(e,a,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/view/parental_consent",function(){return s(76948)}])},86448:(e,a,s)=>{"use strict";s.d(a,{I:()=>l});var n=s(45023),t=s(2004),i=s.n(t);s(36439);var r=s(64519),d=s(4437);function l({children:e}){let a=(0,d.ew)();return(0,n.FD)(n.FK,{children:[(0,n.Y)("div",{className:`jsx-914b6d7276ffa34b language-selector ${a?"language-selector-sp":"language-selector-pc"}`,children:(0,n.Y)(r.G,{})}),e,(0,n.Y)(i(),{id:"914b6d7276ffa34b",children:".language-selector.jsx-914b6d7276ffa34b{position:absolute!important}.language-selector-pc.jsx-914b6d7276ffa34b{top:32px;right:32px}.language-selector-sp.jsx-914b6d7276ffa34b{right:16px;margin:8px 0 16px 0}"})]})}},88075:(e,a,s)=>{"use strict";s.d(a,{R:()=>i});var n=s(41471),t=s(84284);let i=()=>
3(0,n.useSelector)(t.$f)}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=84667)),_N_E=e.O()}]);
4//# sourceMappingURL=parental_consent-e7cd8bbd8b664f17.js.map
5//# debugId=cf3f3cab-df72-53ab-b9a4-03cb906d0bd2

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.