PageSourceSearch

https://app.mentortools.com/app/_next/static/chunks/pages/settings/analytics-fc71da64204dda94.js

js mentortools.com collected 2026-09-24 10:33:49 UTC 30,039 bytes, 2 lines download raw bytes

1try{let e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a3d885ff-58d1-4d46-b1f2-9579a1acd1aa",e._sentryDebugIdIdentifier="sentry-dbid-a3d885ff-58d1-4d46-b1f2-9579a1acd1aa")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3386],{3221:(e,t,a)=>{"use strict";a.d(t,{A:()=>_});var n=a(44501),i=a(40670),l=a(14232),o=a(98260),r=a(79219),s=a(37876);let d=["children"],_=l.forwardRef(function(e,t){let{children:a}=e,_=(0,i.A)(e,d),c=(0,r.QM)();if(null===c)throw TypeError("No TabContext provided");let g=l.Children.map(a,e=>l.isValidElement(e)?l.cloneElement(e,{"aria-controls":(0,r.eR)(c,e.props.value),id:(0,r.vU)(c,e.props.value)}):null);return(0,s.jsx)(o.A,(0,n.A)({},_,{ref:t,value:c.value,children:g}))})},31165:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var n=a(44501),i=a(40670),l=a(14232),o=a(49995),r=a(4697),s=a(64713),d=a(26200),_=a(47951),c=a(45879);function g(e){return(0,c.Ay)("MuiCardContent",e)}(0,_.A)("MuiCardContent",["root"]);var p=a(37876);let x=["className","component"],b=(0,s.Ay)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),u=l.forwardRef(function(e,t){let a=(0,d.A)({props:e,name:"MuiCardContent"}),{className:l,component:s="div"}=a,_=(0,i.A)(a,x),c=(0,n.A)({},a,{component:s}),u=(e=>{let{classes:t}=e;return(0,r.A)({root:["root"]},g,t)})(c);return(0,p.jsx)(b,(0,n.A)({as:s,className:(0,o.A)(u.root,l),ownerState:c,ref:t},_))})},31857:(e,t,a)=>{"use strict";a.d(t,{A:()=>y});var n=a(37876),i=a(14232),l=a(64713),o=a(74234),r=a(8600),s=a(54227),d=a(3801),_=a(88414),c=a(4262),g=a(41093),p=a(99399),x=a(64148),b=a(94356);let u=(0,l.Ay)(s.A,{shouldForwardProp:e=>!["renderType","isMobile","navigationSize"].includes(e)})(({theme:e,renderType:t,isMobile:a,navigationSize:n})=>({display:"flex",alignItems:"center",justifyContent:"space-between",flexDirection:a?"column":"row",background:e.palette.background.paper,transition:"all 0.25s ease-in-out",border:"1px",..."modal"===t?{width:"100%",boxSizing:"border-box",flex:"0 0 auto",zIndex:"auto",position:"static",padding:e.spacing(4,6),borderTop:`1px solid ${e.palette.divider}`,borderBottomRightRadius:e.spacing(2)}:{flex:1,zIndex:10,position:"fixed",bottom:0,left:a?"0":n,width:`calc(100% - ${a?"0":n}px)`,padding:`${e.spacing(4)} ${e.spacing(16)}`}})),y=(0,i.memo)(({renderType:e="regular",saveAndCloseButton:{onSubmit:t,tooltip:a,text:l,isSubmitting:y,disabled:m,startIcon:f,endIcon:A,actionCode:T,anyActionCode:h,courseId:I,...k}={},deleteButton:{onSubmit:C,tooltip:v,text:S,isSubmitting:j,disabled:N,startIcon:w,endIcon:E,actionCode:B,anyActionCode:G,courseId:D,...P}={},saveButton:{onSubmit:R,tooltip:V,variant:M,text:F,isSubmitting:L,disabled:Y,startIcon:O,endIcon:Q,actionCode:$,anyActionCode:W,courseId:z,...q}={},cancelButton:{onSubmit:K,text:Z,tooltip:U,isSubmitting:X,disabled:H,startIcon:J,endIcon:ee,actionCode:et,anyActionCode:ea,courseId:en,...ei}={},applyButton:{onSubmit:el,tooltip:eo,text:er,startIcon:es,endIcon:ed,isSubmitting:e_,disabled:ec,actionCode:eg,anyActionCode:ep,courseId:ex}={}})=>{let eb=(0,o.A)(),{t:eu}=(0,g.o)(),{settings:ey}=(0,c.t)(),{hasAccess:em,hasCourseAccess:ef}=(0,p.D)(),[eA,eT]=(0,i.useState)(null),eh=(e,t,a,n,i)=>async()=>{if(i&&!eA){if(t&&a&&n){if(!ef(t,a,n))return}else if(t&&!em(t))return;eT(e),await i?.(),eT(()=>null)}},eI=!!eA,ek=(0,_.A)(e=>e.breakpoints.down("md")),eC=ey.navCollapsed?b.A.collapsedNavigationSize:b.A.navigationSize;return(0,n.jsxs)(u,{renderType:e,isMobile:ek,navigationSize:eC,"data-sentry-element":"Footer","data-sentry-component":"FormFooter","data-sentry-source-file":"index.tsx",children:[(0,n.jsx)(s.A,{sx:{paddingBottom:+!!ek},"data-sentry-element":"Box","data-sentry-source-file":"index.tsx",children:C&&(0,n.jsx)(r.A,{arrow:!0,title:v,children:(0,n.jsx)("span",{children:(0,n.jsx)(x.f,{action:B,anyAction:G,courseId:D,children:(0,n.jsx)(d.A,{disabled:eI||N,loading:"delete"===eA||j,variant:"tonal",color:"error",onClick:eh("delete",B,G,D,C),startIcon:w,endIcon:E,...P,children:S||eu("ACTION.delete")})})})})}),(0,n.jsxs)(s.A,{justifyContent:"center",display:"flex",gap:eb.spacing(ek?3:4),flexWrap:"wrap","data-sentry-element":"Box","data-sentry-source-file":"index.tsx",children:[K&&(0,n.jsx)(r.A,{arrow:!0,title:U,children:(0,n.jsx)("span",{children:(0,n.jsx)(x.f,{action:et,anyAction:ea,courseId:en,children:(0,n.jsx)(d.A,{disabled:eI||H,loading:"cancel"===eA||X,variant:"tonal",onClick:eh("cancel",et,ea,en,K),startIcon:J,endIcon:ee,...ei,children:Z||eu("ACTION.cancel")})})})}),el&&(0,n.jsx)(r.A,{arrow:!0,title:eo,children:(0,n.jsx)("span",{children:(0,n.jsx)(x.f,{action:eg,anyAction:ep,courseId:ex,children:(0,n.jsx)(d.A,{variant:"outlined",disabled:eI||ec,loading:"apply"===eA||e_,onClick:eh("apply",eg,ep,ex,el),startIcon:es,endIcon:ed,children:er||eu("ACTION.apply")})})})}),R&&(0,n.jsx)(r.A,{arrow:!0,title:V,children:(0,n.jsx)("span",{children:(0,n.jsx)(x.f,{action:$,anyAction:W,courseId:z,children:(0,n.jsx)(d.A,{disabled:eI||Y,loading:"save"===eA||L,variant:M||"outlined",onClick:eh("save",$,W,z,R),startIcon:O,endIcon:Q,...q,children:F||eu("ACTION.save")})})})}),t&&(0,n.jsx)(r.A,{arrow:!0,title:a,children:(0,n.jsx)("span",{children:(0,n.jsx)(x.f,{action:T,anyAction:h,courseId:I,children:(0,n.jsx)(d.A,{variant:"contained",disabled:eI||m,loading:"saveAndClose"===eA||y,onClick:eh("saveAndClose",T,h,I,t),startIcon:f,endIcon:A,...k,children:l||eu("ACTION.save_n_close")})})})})]})]})})},57284:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>eo});var n=a(37876),i=a(66950),l=a(31941),o=a(74234),r=a(41093),s=a(69884),d=a(29305),_=a(31857
1),c=a(90584),g=a(64148),p=a(82867);let x=({isSubmitting:e,form:t,onSubmit:a})=>{let l=(0,o.A)(),{t:s}=(0,r.o)("translation",{keyPrefix:"PAGE.ANALYTICS_GDPR_SETTINGS.FORM"}),{t:d}=(0,r.o)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i.A,{display:"flex",flexDirection:"column",gap:l.spacing(6.5),paddingTop:l.spacing(8),"data-sentry-element":"Box","data-sentry-source-file":"AnalyticsView.tsx",children:[(0,n.jsx)(g.f,{action:p.Qi.EDIT_ANALYTICS_SETTINGS,"data-sentry-element":"TeamMemberGuard","data-sentry-source-file":"AnalyticsView.tsx",children:(0,n.jsx)(c.tK,{title:s("google_analytics.title"),description:s("google_analytics.description"),form:t,formItems:{checkboxName:"global_google_analytics_is_active",inputName:"global_google_analytics_id",inputLabel:s("google_analytics.label")},"data-sentry-element":"CheckboxWithTextField","data-sentry-source-file":"AnalyticsView.tsx"})}),(0,n.jsx)(g.f,{action:p.Qi.EDIT_ANALYTICS_SETTINGS,"data-sentry-element":"TeamMemberGuard","data-sentry-source-file":"AnalyticsView.tsx",children:(0,n.jsx)(c.tK,{title:s("facebook_pixel.title"),description:s("facebook_pixel.description"),form:t,formItems:{checkboxName:"global_facebook_pixel_is_active",inputName:"global_facebook_pixel",inputLabel:s("facebook_pixel.label")},"data-sentry-element":"CheckboxWithTextField","data-sentry-source-file":"AnalyticsView.tsx"})}),(0,n.jsx)(g.f,{action:p.Qi.EDIT_ANALYTICS_SETTINGS,"data-sentry-element":"TeamMemberGuard","data-sentry-source-file":"AnalyticsView.tsx",children:(0,n.jsx)(c.tK,{title:s("google_tag_manager.title"),description:s("google_tag_manager.description"),form:t,formItems:{checkboxName:"global_google_tag_manager_is_active",inputName:"global_google_tag_manager_id",inputLabel:s("google_tag_manager.label")},"data-sentry-element":"CheckboxWithTextField","data-sentry-source-file":"AnalyticsView.tsx"})}),(0,n.jsx)(g.f,{action:p.Qi.EDIT_ANALYTICS_SETTINGS,"data-sentry-element":"TeamMemberGuard","data-sentry-source-file":"AnalyticsView.tsx",children:(0,n.jsx)(c.tK,{title:s("pinterest_pixel.title"),description:s("pinterest_pixel.description"),form:t,formItems:{checkboxName:"global_pinterest_pixel_is_active",inputName:"global_pinterest_pixel_id",inputLabel:s("pinterest_pixel.label")},"data-sentry-element":"CheckboxWithTextField","data-sentry-source-file":"AnalyticsView.tsx"})}),(0,n.jsx)(g.f,{action:p.Qi.EDIT_ANALYTICS_SETTINGS,"data-sentry-element":"TeamMemberGuard","data-sentry-source-file":"AnalyticsView.tsx",children:(0,n.jsx)(c.tK,{title:s("tik_tok_pixel.title"),description:s("tik_tok_pixel.description"),form:t,formItems:{checkboxName:"global_tik_tok_pixel_is_active",inputName:"global_tik_tok_pixel_id",inputLabel:s("tik_tok_pixel.label")},"data-sentry-element":"CheckboxWithTextField","data-sentry-source-file":"AnalyticsView.tsx"})})]}),(0,n.jsx)(_.A,{saveButton:{onSubmit:a,text:d("ACTION.save_changes"),variant:"contained",isSubmitting:e,actionCode:p.Qi.EDIT_ANALYTICS_SETTINGS},"data-sentry-element":"FormFooter","data-sentry-source-file":"AnalyticsView.tsx"})]})};var b=a(14232),u=a(76587),y=a(47692),m=a(29608),f=a(62902),A=a(64713),T=a(88992),h=a(56809),I=a(36565);let k=(0,A.Ay)(i.A)(({theme:e})=>({display:"flex",flexDirection:"column",gap:e.spacing(6)})),C=(0,A.Ay)(i.A)(({theme:e})=>({display:"flex",flexDirection:"column",gap:e.spacing(6),maxWidth:774,width:"100%"})),v=(0,A.Ay)(i.A)(({theme:e})=>({display:"flex",flexDirection:"column",borderRadius:e.spacing(2),padding:e.spacing(6),gap:e.spacing(4),border:"1px solid",borderColor:e.palette.grey[200]})),S=(0,A.Ay)(m.A)(({theme:e})=>({gap:e.spacing(4)})),j=(0,A.Ay)(u.A)({paddingTop:0,paddingBottom:0}),N=(0,A.Ay)(y.A)({paddingTop:0,paddingBottom:0}),w=(0,A.Ay)(h.XY)({flex:1}),E=({isSubmitting:e,data:{dataLargeBannerType:t,dataTrackingCondition:a},form:{control:s},onSubmit:d})=>{let{t:c}=(0,r.o)("translation",{keyPrefix:"PAGE.ANALYTICS_GDPR_SETTINGS.FORM"}),{t:x}=(0,r.o)("translation"),u=(0,o.A)(),y=(0,b.useMemo)(()=>a?.map(({id:e,name:t})=>(0,n.jsx)(g.f,{action:p.Qi.EDIT_ANALYTICS_SETTINGS,children:(0,n.jsx)(j,{value:e,control:(0,n.jsx)(N,{disableRipple:!0}),label:c(`tracking_condition.${t}`)})},e)),[a,c]),m=(0,b.useMemo)(()=>t?.map(({id:e,name:t})=>(0,n.jsx)(g.f,{action:p.Qi.EDIT_ANALYTICS_SETTINGS,children:(0,n.jsx)(j,{value:e,control:(0,n.jsx)(N,{disableRipple:!0}),label:c(`large_banner_type.${t}`)})},e)),[t,c]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i.A,{display:"flex",flexDirection:"column",gap:u.spacing(6.5),paddingTop:u.spacing(8),"data-sentry-element":"Box","data-sentry-source-file":"CookieBannerView.tsx","data-sentry-element":"Box",children:[(0,n.jsxs)(k,{"data-sentry-element":"StyledBox","data-sentry-source-file":"CookieBannerView.tsx","data-sentry-element":"StyledBox",children:[(0,n.jsx)(l.A,{variant:"h6","data-sentry-element":"Typography","data-sentry-source-file":"CookieBannerView.tsx","data-sentry-element":"Typography",children:c("tracking_condition.title")}),(0,n.jsx)(i.A,{display:"flex",flexDirection:"column","data-sentry-element":"Box","data-sentry-source-file":"CookieBannerView.tsx","data-sentry-element":"Box",children:(0,n.jsx)(T.xI,{name:"tracking_condition_id",control:s,rules:{required:!0}
1,render:({field:{value:e,onChange:t}})=>(0,n.jsx)(S,{onChange:e=>t(Number(e.target.value)),value:e,children:y}),"data-sentry-element":"Controller","data-sentry-source-file":"CookieBannerView.tsx","data-sentry-element":"Controller"})})]}),(0,n.jsx)(C,{"data-sentry-element":"TypeBoxContainer","data-sentry-source-file":"CookieBannerView.tsx","data-sentry-element":"TypeBoxContainer",children:(0,n.jsxs)(v,{"data-sentry-element":"BannerBox","data-sentry-source-file":"CookieBannerView.tsx","data-sentry-element":"BannerBox",children:[(0,n.jsxs)(k,{"data-sentry-element":"StyledBox","data-sentry-source-file":"CookieBannerView.tsx","data-sentry-element":"StyledBox",children:[(0,n.jsx)(l.A,{variant:"h6","data-sentry-element":"Typography","data-sentry-source-file":"CookieBannerView.tsx","data-sentry-element":"Typography",children:c("large_banner_type.header")}),(0,n.jsx)(i.A,{display:"flex",flexDirection:"column","data-sentry-element":"Box","data-sentry-source-file":"CookieBannerView.tsx","data-sentry-element":"Box",children:(0,n.jsx)(T.xI,{name:"large_banner_type_id",control:s,rules:{required:!0},render:({field:{value:e,onChange:t}})=>(0,n.jsx)(S,{onChange:e=>t(Number(e.target.value)),value:e,children:m}),"data-sentry-element":"Controller","data-sentry-source-file":"CookieBannerView.tsx","data-sentry-element":"Controller"})})]}),(0,n.jsxs)(i.A,{display:"flex",flexDirection:"column",gap:u.spacing(1),maxWidth:669,width:"100%","data-sentry-element":"Box","data-sentry-source-file":"CookieBannerView.tsx","data-sentry-element":"Box",children:[(0,n.jsx)(l.A,{variant:"body2","data-sentry-element":"Typography","data-sentry-source-file":"CookieBannerView.tsx","data-sentry-element":"Typography",children:c("gdpr_banner_main_text")}),(0,n.jsx)(T.xI,{name:"gdpr_banner_main_text",control:s,render:({field:{value:e,onChange:t}})=>(0,n.jsx)(g.f,{action:p.Qi.EDIT_ANALYTICS_SETTINGS,children:(0,n.jsx)(I.A,{value:e,onChange:t})}),"data-sentry-element":"Controller","data-sentry-source-file":"CookieBannerView.tsx","data-sentry-element":"Controller"})]}),(0,n.jsxs)(i.A,{display:"flex",flexDirection:"column",gap:u.spacing(1),maxWidth:669,width:"100%","data-sentry-element":"Box","data-sentry-source-file":"CookieBannerView.tsx","data-sentry-element":"Box",children:[(0,n.jsx)(l.A,{variant:"body2","data-sentry-element":"Typography","data-sentry-source-file":"CookieBannerView.tsx","data-sentry-element":"Typography",children:c("gdpr_banner_detailed_text")}),(0,n.jsx)(T.xI,{name:"gdpr_banner_detail_text",control:s,render:({field:{value:e,onChange:t}})=>(0,n.jsx)(g.f,{action:p.Qi.EDIT_ANALYTICS_SETTINGS,children:(0,n.jsx)(I.A,{value:e,onChange:t})}),"data-sentry-element":"Controller","data-sentry-source-file":"CookieBannerView.tsx","data-sentry-element":"Controller"})]}),(0,n.jsxs)(i.A,{display:"flex",flexDirection:"column",gap:u.spacing(1),maxWidth:669,width:"100%","data-sentry-element":"Box","data-sentry-source-file":"CookieBannerView.tsx","data-sentry-element":"Box",children:[(0,n.jsx)(l.A,{variant:"body2","data-sentry-element":"Typography","data-sentry-source-file":"CookieBannerView.tsx","data-sentry-element":"Typography",children:c("gdpr_banner_about_cookies_text")}),(0,n.jsx)(T.xI,{name:"gdpr_banner_about_text",control:s,render:({field:{value:e,onChange:t}})=>(0,n.jsx)(g.f,{action:p.Qi.EDIT_ANALYTICS_SETTINGS,children:(0,n.jsx)(I.A,{value:e,onChange:t})}),"data-sentry-element":"Controller","data-sentry-source-file":"CookieBannerView.tsx","data-sentry-element":"Controller"})]}),(0,n.jsxs)(f.A,{direction:"row",spacing:u.spacing(8),maxWidth:669,width:"100%","data-sentry-element":"Stack","data-sentry-source-file":"CookieBannerView.tsx","data-sentry-element":"Stack",children:[(0,n.jsx)(T.xI,{name:"gdpr_banner_accept_label",control:s,rules:{required:!0},render:({field:{value:e,onChange:t},fieldState:{invalid:a,error:i}})=>(0,n.jsx)(g.f,{action:p.Qi.EDIT_ANALYTICS_SETTINGS,children:(0,n.jsx)(w,{label:c("gdpr_banner_accept.label"),fullWidth:!0,value:e,onChange:t,error:a,helperText:i&&c(`${i.message}`)})}),"data-sentry-element":"Controller","data-sentry-source-file":"CookieBannerView.tsx","data-sentry-element":"Controller"}),(0,n.jsx)(T.xI,{name:"gdpr_banner_reject_label",control:s,rules:{required:!0}
1,render:({field:{value:e,onChange:t},fieldState:{invalid:a,error:i}})=>(0,n.jsx)(g.f,{action:p.Qi.EDIT_ANALYTICS_SETTINGS,children:(0,n.jsx)(w,{label:c("gdpr_banner_reject.label"),fullWidth:!0,value:e,onChange:t,error:a,helperText:i&&c(`${i.message}`)})}),"data-sentry-element":"Controller","data-sentry-source-file":"CookieBannerView.tsx","data-sentry-element":"Controller"})]})]},"large-banner")})]}),(0,n.jsx)(_.A,{saveButton:{onSubmit:d,text:x("ACTION.save_changes"),variant:"contained",isSubmitting:e,actionCode:p.Qi.EDIT_ANALYTICS_SETTINGS},"data-sentry-element":"FormFooter","data-sentry-source-file":"CookieBannerView.tsx","data-sentry-element":"FormFooter"})]})};var B=a(22208),G=a(85811),D=a(39086),P=a(96902),R=a(22870);let V=()=>{let{t:e}=(0,r.o)("translation",{keyPrefix:"PAGE.ANALYTICS_GDPR_SETTINGS.FORM"}),{portalSettings:t}=(0,P.D)(),a=(0,o.A)(),s=(0,b.useMemo)(()=>{let e=Number(t?.general?.language_id),a={[D.j8.de]:"DE",[D.j8.en]:"EN",[D.j8.sk]:"SK",[D.j8.cz]:"SK"}[e]??"DE";return(0,R.ZM)(`/documents/GDPR_CONTRACT_MENTORTOOLS_${a}.pdf`)},[t?.general?.language_id]);return(0,n.jsxs)(i.A,{display:"flex",flexDirection:"column",gap:a.spacing(6),paddingTop:a.spacing(8),"data-sentry-element":"Box","data-sentry-component":"GDPRContractView","data-sentry-source-file":"GDPRContractView.tsx",children:[(0,n.jsx)(l.A,{variant:"h5","data-sentry-element":"Typography","data-sentry-source-file":"GDPRContractView.tsx",children:e("gdpr_contract.guide.header")}),(0,n.jsx)(i.A,{display:"flex",flexDirection:"column",gap:a.spacing(4),"data-sentry-element":"Box","data-sentry-source-file":"GDPRContractView.tsx",children:[{info:"gdpr_contract.guide.step_one",additionalInfo:(0,n.jsx)("a",{href:s,download:!0,style:{textDecoration:"none",color:"inherit"},children:(0,n.jsx)(B.A,{variant:"outlined",endIcon:(0,n.jsx)(G.In,{icon:"tabler:download"}),children:e("gdpr_contract.action.download_contract")})})},{info:"gdpr_contract.guide.step_two"},{info:"gdpr_contract.guide.step_three"},{info:"gdpr_contract.guide.step_four"},{info:"gdpr_contract.guide.step_five"}].map((t,a)=>(0,n.jsx)(c.YL,{stepNumber:a+1,info:e(t.info),additionalInfo:t.additionalInfo},a))})]})};var M=a(54227),F=a(40241),L=a(13810),Y=a(85189),O=a(67732),Q=a(51802);let $=Q.Ik({global_google_analytics_is_active:Q.zM(),global_google_analytics_id:Q.Yj().optional(),global_facebook_pixel_is_active:Q.zM(),global_facebook_pixel:Q.Yj().optional(),global_google_tag_manager_is_active:Q.zM(),global_google_tag_manager_id:Q.Yj().optional(),global_pinterest_pixel_is_active:Q.zM(),global_pinterest_pixel_id:Q.Yj().optional(),global_tik_tok_pixel_is_active:Q.zM(),global_tik_tok_pixel_id:Q.Yj().optional()}).superRefine((e,t)=>{e.global_google_analytics_is_active&&((!e.global_google_analytics_id||e.global_google_analytics_id.length<1)&&t.addIssue({code:"custom",path:["global_google_analytics_id"],message:"PAGE.ANALYTICS_GDPR_SETTINGS.FORM.google_analytics.error"}),e.global_google_analytics_id&&!/^(UA-\d{4,9}-\d+|G-[A-Z0-9]{8,12}|AW-\d{4,12}|GTM-[A-Z0-9]{4,12}|DC-\d{4,12}|OPT-[A-Z0-9]{4,12})$/i.test(e.global_google_analytics_id)&&t.addIssue({code:"custom",path:["global_google_analytics_id"],message:"PAGE.ANALYTICS_GDPR_SETTINGS.FORM.google_analytics.error_invalid"})),e.global_facebook_pixel_is_active&&((!e.global_facebook_pixel||e.global_facebook_pixel.length<1)&&t.addIssue({code:"custom",path:["global_facebook_pixel"],message:"PAGE.ANALYTICS_GDPR_SETTINGS.FORM.facebook_pixel.error"}),e.global_facebook_pixel&&!/^[a-zA-Z0-9]{1,20}$/.test(e.global_facebook_pixel)&&t.addIssue({code:"custom",path:["global_facebook_pixel"],message:"PAGE.ANALYTICS_GDPR_SETTINGS.FORM.facebook_pixel.error_invalid"})),e.global_google_tag_manager_is_active&&(!e.global_google_tag_manager_id||e.global_google_tag_manager_id.length<1)&&t.addIssue({code:"custom",path:["global_google_tag_manager_id"],message:"GTM ID must be at least 1 character long if GTM is enabled"}),e.global_pinterest_pixel_is_active&&(!e.global_pinterest_pixel_id||e.global_pinterest_pixel_id.length<1)&&t.addIssue({code:"custom",path:["global_pinterest_pixel_id"],message:"Pinterest Pixel ID must be at least 1 character long if Pinterest Pixel is enabled"}),e.global_tik_tok_pixel_is_active&&(!e.global_tik_tok_pixel_id||e.global_tik_tok_pixel_id.length<1)&&t.addIssue({code:"custom",path:["global_tik_tok_pixel_id"],message:"TikTok Pixel ID must be at least 1 character long if TikTok Pixel is enabled"})}),W=Q.Ik({tracking_condition_id:Q.ai().optional(),large_banner_type_id:
1Q.ai(),gdpr_banner_text:Q.Yj().optional(),gdpr_banner_accept_label:Q.Yj().optional(),gdpr_banner_reject_label:Q.Yj().optional(),gdpr_banner_main_text:Q.Yj().optional(),gdpr_banner_detail_text:Q.Yj().optional(),gdpr_banner_about_text:Q.Yj().optional()}),z={tracking_condition_id:1,large_banner_type_id:1,gdpr_banner_text:"",gdpr_banner_accept_label:"",gdpr_banner_reject_label:"",gdpr_banner_main_text:"",gdpr_banner_detail_text:"",gdpr_banner_about_text:""},q={global_google_analytics_is_active:!1,global_google_analytics_id:"",global_facebook_pixel_is_active:!1,global_facebook_pixel:"",global_google_tag_manager_is_active:!1,global_google_tag_manager_id:"",global_pinterest_pixel_is_active:!1,global_pinterest_pixel_id:"",global_tik_tok_pixel_is_active:!1,global_tik_tok_pixel_id:""};var K=a(67768),Z=a(74359),U=a(40097),X=a(25750),H=a(11313);let J={columns:["**"],filter_by:[],limit:1,offset:0,search_by:[]};var ee=a(99399),et=a(37161),ea=a(95106),en=a(54651);let ei=(0,A.Ay)(M.A)(({theme:e})=>({padding:e.spacing(8),backgroundColor:e.palette.background.paper,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:e.spacing(6.5),minHeight:e.spacing(125)})),el=()=>{let{hasAccess:e}=(0,ee.D)(),t=e(p.Qi.VIEW_ANALYTICS_SETTINGS),{t:a}=(0,r.o)("translation",{keyPrefix:"PAGE.ANALYTICS_GDPR_SETTINGS"}),{updateAnalyticsInfo:i,updateGdprInfo:l,isLoading:o,data:{dataAnalyticsInfo:s,dataGdprInfo:d,dataLargeBannerType:_,dataTrackingCondition:c},pending:{isSubmittingAnalytics:g,isSubmittingGdpr:u}}=((e=!0)=>{let{t}=(0,r.o)("translation",{keyPrefix:"PAGE.ANALYTICS_GDPR_SETTINGS.NOTIFICATION"}),{notify:a}=(0,O.A)(),n=(0,K.jE)(),{data:i,isLoading:l,isError:o}=(0,Z.I)({...H.Ay.settings.gdprInfo,queryFn:()=>X.A.getSettingsGDPRInfo(J),select:e=>e.data.result[0],enabled:e}),{data:s,isLoading:d,isError:_}=(0,Z.I)({...H.Ay.settings.analyticsInfo,queryFn:()=>X.A.getSettingsAnalyticsInfo(J),select:e=>e.data.result[0],enabled:e}),{data:c,isLoading:g,isError:p}=(0,Z.I)({...H.Ay.settings.largeBannerType,queryFn:()=>X.A.getSettingsLargeBannerType({columns:["*"]}),select:e=>e.data.result,enabled:e}),{data:x,isLoading:b,isError:u}=(0,Z.I)({...H.Ay.settings.trackingConditionType,queryFn:()=>X.A.getSettingsTrackingCondition({...J,limit:25}),select:e=>e.data.result,enabled:e}),{mutateAsync:y,isPending:m}=(0,U.n)({mutationFn:e=>X.A.updateSettingsAnalyticsInfo(e),onSuccess:()=>a(t("analytics.success"),{type:"success"}),onError:e=>a(e.message||t("analytics.error"),{type:"error"}),onSettled:()=>n.invalidateQueries(H.Ay.settings.analyticsInfo)}),{mutateAsync:f,isPending:A}=(0,U.n)({mutationFn:e=>X.A.updateSettingsGDPRInfo(e),onSuccess:()=>a(t("gdpr.success"),{type:"success"}),onError:e=>a(e.message||t("gdpr.error"),{type:"error"}),onSettled:()=>n.invalidateQueries(H.Ay.settings.gdprInfo)});return{pending:{isSubmittingGdpr:A,isSubmittingAnalytics:m},isLoading:l||_||g||b,isError:o||d||p||u,data:{dataGdprInfo:i,dataAnalyticsInfo:s,dataLargeBannerType:c,dataTrackingCondition:x},updateAnalyticsInfo:y,updateGdprInfo:f}})(t),{analyticsForm:y,cookieBannerForm:m,onCombinedSubmit:f}=(({dataGdprInfo:e,dataAnalyticsInfo:t,onSubmit:{updateAnalyticsInfo:a,updateGdprInfo:n}})=>{let{notify:i}=(0,O.A)(),{t:l}=(0,r.o)("translation",{keyPrefix:"PAGE.ANALYTICS_GDPR_SETTINGS"}),o=(0,Y.A)(),s=(0,T.mN)({defaultValues:q,resolver:(0,L.u)($)}),d=(0,T.mN)({defaultValues:z,resolver:(0,L.u)(W)});(0,b.useEffect)(()=>{t&&s.reset({global_google_analytics_is_active:t.global_google_analytics_is_active,global_google_analytics_id:t.global_google_analytics_id||"",global_facebook_pixel_is_active:t.global_facebook_pixel_is_active,global_facebook_pixel:t.global_facebook_pixel||"",global_google_tag_manager_is_active:t.global_google_tag_manager_is_active,global_google_tag_manager_id:t.global_google_tag_manager_id||"",global_pinterest_pixel_is_active:t.global_pinterest_pixel_is_active,global_pinterest_pixel_id:t.global_pinterest_pixel_id||"",global_tik_tok_pixel_is_active:t.global_tik_tok_pixel_is_active,global_tik_tok_pixel_id:t.global_tik_tok_pixel_id||""}),e&&d.reset({gdpr_banner_accept_label:e.gdpr_banner_accept_label||"",gdpr_banner_reject_label:e.gdpr_banner_reject_label||"",tracking_condition_id:e.tracking_condition_id,large_banner_type_id:e.large_banner_type_id,gdpr_banner_text:e.gdpr_banner_text||"",gdpr_banner_main_text:"<p>&nbsp;</p>"===e.gdpr_banner_main_text?l("FORM.gdpr_banner_main_text_default_content"):e.gdpr_banner_main_text||"",gdpr_banner_detail_text:"<p>&nbsp;</p>"===e.gdpr_banner_detail_text?l("FORM.gdpr_banner_detailed_text_default_content"):e.gdpr_banner_detail_text||"",gdpr_banner_about_text:"<p>&nbsp;</p>"===e.gdpr_banner_about_text?l("FORM.gdpr_banner_about_cookies_text_default_content"):e.gdpr_banner_about_text||""})},[e,t,d,s,d.reset]);let _=async e=>{await Promise.all([a({values:[{global_facebook_pixel_is_active:e.global_facebook_pixel_is_active,global_google_analytics_id:e.global_google_analytics_id,global_google_analytics_is_active:e.global_google_analytics_is_active,global_facebook_pixel:e.global_facebook_pixel,portal_id:o.user?.portal?.id,global_google_tag_manager_id:e.global_google_tag_manager_id,global_google_tag_manager_is_active:e.global_google_tag_manager_is_active,global_pinterest_pixel_id:e.global_pinterest_pixel_id,global_pinterest_pixel_is_active:e.global_pinterest_pixel_is_active,global_tik_tok_pixel_id:e.global_tik_tok_pixel_id,global_tik_tok_pixel_is_active:e.global_tik_tok_pixel_is_active}]}),n({values:[{gdpr_banner_about_text:e.gdpr_banner_about_text,gdpr_banner_accept_label:e.gdpr_banner_accept_label,gdpr_banner_detail_text:e.gdpr_banner_detail_text,gdpr_banner_main_text:e.gdpr_banner_main_text,gdpr_banner_reject_label:e.gdpr_banner_reject_label,gdpr_banner_text:e.gdpr_banner_text,large_banner_type_id:e.large_banner_type_id,tracking_condition_id:e.tracking_condition_id,portal_id:o.user?.portal?.id??0}]})])},c=async()=>
1{try{let e=await s.trigger(),t=await d.trigger();if(!e||!t){e||i(l("FORM.resolve_errors",{tab:l("analytics_tab_title")}),{type:"error"}),t||i(l("FORM.resolve_errors",{tab:l("cookie_banner_tab_title")}),{type:"error"});return}let a=s.getValues(),n=d.getValues();_({...a,...n})}catch(e){console.error("Error during combined form submission:",e)}};return{analyticsForm:s,cookieBannerForm:d,onSubmit:_,onCombinedSubmit:c}})({dataAnalyticsInfo:s,dataGdprInfo:d,onSubmit:{updateAnalyticsInfo:i,updateGdprInfo:l}});return t?o?(0,n.jsx)(ei,{"data-sentry-element":"Container","data-sentry-component":"Analytics","data-sentry-source-file":"Analytics.tsx",children:(0,n.jsx)(F.A,{"data-sentry-element":"Spinner","data-sentry-source-file":"Analytics.tsx"})}):(0,n.jsxs)(ea.A,{"data-sentry-element":"FormLayout","data-sentry-component":"Analytics","data-sentry-source-file":"Analytics.tsx",children:[(0,n.jsx)(et.A,{menuIcon:"tabler:chart-pie",menuTitle:a("analytics_tab_title"),menuSubTitle:a("analytics_tab_subtitle"),tabTitle:a("analytics_tab_title"),"data-sentry-element":"FormTab","data-sentry-source-file":"Analytics.tsx",children:(0,n.jsx)(x,{isSubmitting:g,form:y,onSubmit:f,"data-sentry-element":"AnalyticsView","data-sentry-source-file":"Analytics.tsx"})}),(0,n.jsx)(et.A,{menuIcon:"tabler:book-2",menuTitle:a("cookie_banner_tab_title"),menuSubTitle:a("cookie_banner_tab_subtitle"),tabTitle:a("cookie_banner_tab_title"),"data-sentry-element":"FormTab","data-sentry-source-file":"Analytics.tsx",children:(0,n.jsx)(E,{isSubmitting:u,data:{dataLargeBannerType:_,dataTrackingCondition:c},form:m,onSubmit:f,"data-sentry-element":"CookieBannerView","data-sentry-source-file":"Analytics.tsx"})}),(0,n.jsx)(et.A,{menuIcon:"tabler:book-2",menuTitle:a("gdpr_tab_title"),menuSubTitle:a("gdpr_tab_subtitle"),tabTitle:a("gdpr_tab_title"),"data-sentry-element":"FormTab","data-sentry-source-file":"Analytics.tsx",children:(0,n.jsx)(V,{"data-sentry-element":"GDPRContractView","data-sentry-source-file":"Analytics.tsx"})})]}):(0,n.jsx)(en.default,{isTeamMember:!0})},eo=()=>{let{t:e}=(0,r.o)("translation",{keyPrefix:"PAGE"}),t=(0,o.A)();return(0,n.jsxs)(i.A,{display:"flex",flexDirection:"column",gap:t.spacing(6.5),"data-sentry-element":"Box","data-sentry-component":"AnalyticsPage","data-sentry-source-file":"index.tsx",children:[(0,n.jsx)(d.A,{data:[{text:e("SETTINGS.title"),isActive:!1,href:s.C.settings},{text:e("ANALYTICS_GDPR_SETTINGS.breadcrumb_final"),isActive:!0}],"data-sentry-element":"BreadCrumbs","data-sentry-source-file":"index.tsx"}),(0,n.jsx)(l.A,{variant:"h2","data-sentry-element":"Typography","data-sentry-source-file":"index.tsx",children:e("SETTINGS.analytics")}),(0,n.jsx)(el,{"data-sentry-element":"Analytics","data-sentry-source-file":"index.tsx"})]})}},62727:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var n=a(44501),i=a(40670),l=a(14232),o=a(49995),r=a(64713),s=a(26200),d=a(4697),_=a(45879);function c(e){return(0,_.Ay)("MuiTabPanel",e)}(0,a(47951).A)("MuiTabPanel",["root"]);var g=a(79219),p=a(37876);let x=["children","className","value"],b=(0,r.Ay)("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(3)})),u=l.forwardRef(function(e,t){let a=(0,s.A)({props:e,name:"MuiTabPanel"}),{children:l,className:r,value:_}=a,u=(0,i.A)(a,x),y=(0,n.A)({},a),m=(e=>{let{classes:t}=e;return(0,d.A)({root:["root"]},c,t)})(y),f=(0,g.QM)();if(null===f)throw TypeError("No TabContext provided");let A=(0,g.eR)(f,_),T=(0,g.vU)(f,_);return(0,p.jsx)(b,(0,n.A)({"aria-labelledby":T,className:(0,o.A)(m.root,r),hidden:_!==f.value,id:A,ref:t,role:"tabpanel",ownerState:y},u,{children:_===f.value&&l}))})},62807:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/analytics",function(){return a(57284)}])},79219:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>o,QM:()=>r,eR:()=>s,vU:()=>d});var n=a(14232),i=a(37876);let l=n.createContext(null);function o(e){let{children:t,value:a}=e,o=function(){let[e,t]=n.useState(null);return n.useEffect(()=>{t(`mui-p-${Math.round(1e5*Math.random())}`)},[]),e}(),r=n.useMemo(()=>({idPrefix:o,value:a}),[o,a]);return(0,i.jsx)(l.Provider,{value:r,children:t})}function r(){return n.useContext(l)}function s(e,t){let{idPrefix:a}=e;return null===a?null:`${e.idPrefix}-P-${t}`}function d(e,t){let{idPrefix:a}=e;return null===a?null:`${e.idPrefix}-T-${t}`}}},e=>{e.O(0,[1002,636,6593,8792],()=>e(e.s=62807)),_N_E=e.O()}]);
2//# sourceMappingURL=analytics-fc71da64204dda94.js.map

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.