(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2462],{83409:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/applications/notification-and-authorisation-following-the-prostituted-protection-act",function(){return e(31204)}])},71932:function(n,t,e){"use strict";e.d(t,{T:function(){return r}});var i=e(50319),o=e(25420),a=e(78553);let r=(n,t)=>{let e=(0,a.in)(),{adminAuthentication:r}=(0,o.h)(),[c]=(0,i.D)(n,{client:e}),d=(null==r?void 0:r.isLoggedIn)||!1,l=async(n,e)=>{await c({variables:{data:{[n]:e},locale:t}})};return{updatePage:l,isAdmin:d}}},31204:function(n,t,e){"use strict";e.r(t),e.d(t,{NOTIFICATIONS_AND_PERMIT_QUERY:function(){return N},__N_SSP:function(){return P},default:function(){return v}});var i=e(85893),o=e(37887),a=e(67294),r=e(28714),c=e(12913),d=e(89885),l=e(37837),s=e(47388),u=e(25223),f=e(71932),m=e(25420);let _=(0,r.Ps)("\n  mutation updateNotificationsAndPermit(\n    $data: NotificationsAndPermitInput!\n    $locale: I18NLocaleCode\n  ) {\n    updateNotificationsAndPermit(locale: $locale, data: $data) {\n      data {\n        id\n        attributes {\n          ...NotificationsAndPermitView\n        }\n      }\n    }\n  }\n"),p=n=>{let{notificationsAndPermit:t,locale:e}=n,{setBreadcrumb:o,setStrapi:r}=(0,m.h)(),{updatePage:p,isAdmin:P}=(0,f.T)(_,e);return(0,a.useEffect)(()=>{var n;r({entity:t.__typename}),o({isActivated:!0,title:null===(n=t.hero)||void 0===n?void 0:n.title,links:t.Breadcrumb})},[o,t]),(0,i.jsx)(c.VWp,{children:(0,i.jsxs)(u.Uq,{children:[(0,i.jsx)(s.p,{seo:t.seo,editable:P,onEdit:p}),(0,i.jsx)(c.VWp,{marginBottom:"-80px",children:(0,i.jsx)(d.z,{componentContentHero:t.hero,locale:e,editable:P,onEdit:p})}),(0,i.jsx)(l.N,{componentContentSections:t.sections,showStickySideNav:!1,locale:e,editable:P,onEdit:p})]})})};p.fragments={notificationsAndPermit:(0,r.Ps)("\n    fragment NotificationsAndPermitView on NotificationsAndPermit {\n      __typename\n      hero {\n        ...PageContentHero_componentContentHero\n      }\n      sections {\n        ...PageContentSections_componentContentSection\n      }\n      seo {\n        ...SeoFields\n      }\n      Breadcrumb {\n        ...Breadcrumb_componentContentBreadcrumb\n      }\n    }\n  ")};var P=!0;let N=(0,r.Ps)("\n  query NotificationsAndPermit($locale: I18NLocaleCode!) {\n    notificationsAndPermit(locale: $locale) {\n      data {\n        id\n        attributes {\n          ...NotificationsAndPermitView\n        }\n      }\n    }\n    ...Header_query\n    ...Footer_query\n  }\n");var v=n=>{var t,e;let{locale:a}=n,{data:r}=(0,o.a)(N,{variables:{locale:a},fetchPolicy:"cache-and-network"}),c=null==r?void 0:null===(e=r.notificationsAndPermit)||void 0===e?void 0:null===(t=e.data)||void 0===t?void 0:t.attributes;return c?(0,i.jsx)(p,{notificationsAndPermit:c,locale:a}):null}}},function(n){n.O(0,[9041,2503,7314,7388,3630,5977,7837,9774,2888,179],function(){return n(n.s=83409)}),_N_E=n.O()}]);