PageSourceSearch

https://uklawreference.com/_next/static/chunks/5953.6ef250956ecf57a0.js

js uklawreference.com collected 2026-10-08 09:11:36 UTC 7,384 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5dc51aba-009a-4e11-bc74-05ae36340c6c",e._sentryDebugIdIdentifier="sentry-dbid-5dc51aba-009a-4e11-bc74-05ae36340c6c")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5953],{22938:(e,t,a)=>{a.d(t,{rj:()=>k});var r=a(95155),n=a(12115),s=a(32078),i=a(64480),d=a(41962),o=a(38925),l=a(9941),c=a(19056),u=a(83549),h=a(48109),g=a(69383),f=a(82302),x=a(83209),m=a(33789),y=a(90235),b=a(97003),p=a(67812),v=a(32559),j=a(26983),w=a(52056);function k(e){let{title:t,triggerLabel:a,triggerHelp:k,rule:N,legalBasis:D,maxDate:R,notes:_}=e,[A,T]=(0,n.useState)(""),[I,E]=(0,n.useState)(null),[F,C]=(0,n.useState)("");return(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsxs)(x.Zp,{children:[(0,r.jsx)(x.aR,{children:(0,r.jsxs)(x.ZB,{className:"flex items-center gap-2 text-lg",children:[(0,r.jsx)(j.A,{className:"h-5 w-5 text-primary"})," ",t]})}),(0,r.jsxs)(x.Wu,{className:"space-y-5",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(y.J,{htmlFor:"trigger-date",children:a}),(0,r.jsx)(m.p,{id:"trigger-date",type:"date",value:A,onChange:e=>T(e.target.value),max:null!=R?R:"workingDays"===N.unit?[new Date().toISOString().split("T")[0],(0,f.m_)().to].sort()[0]:new Date().toISOString().split("T")[0]}),k&&(0,r.jsx)("p",{className:"text-xs text-muted-foreground",children:k})]}),F&&(0,r.jsxs)(v.Fc,{variant:"destructive",children:[(0,r.jsx)(w.A,{className:"h-4 w-4"}),(0,r.jsx)(v.TN,{children:F})]}),(0,r.jsx)(b.$,{onClick:function(){let e;if(C(""),E(null),!A)return void C("Please enter the trigger date.");let t=(0,c.H)(A);if(!(0,u.f)(t))return void C("That date is not valid.");try{e=function(e,t){let a;switch(t.unit){case"days":a=(0,s.f)(e,t.add);break;case"workingDays":a=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"england-and-wales",r=e,n=0;for(;n<t;)r=(0,s.f)(r,1),(0,f.jc)(r,a)&&n++;return r}(e,t.add);break;case"weeks":a=(0,i.J)(e,t.add);break;case"months":a=(0,d.P)(e,t.add);break;case"years":a=(0,o.e)(e,t.add)}return t.lessOneDay&&(a=(0,l.e)(a,1)),a}(t,N)}catch(e){if(e instanceof RangeError){let e=(0,f.m_)();C("We can't calculate a working-days deadline that far ahead — our bank-holiday data only covers ".concat(e.from," to ").concat(e.to,". Please check the deadline manually against the gov.uk bank holidays list."));return}throw e}let a=new Date;a.setHours(0,0,0,0);let r=(0,h.c)(e,a);E({deadline:e,daysRemaining:r,expired:r<0})},className:"w-full",children:"Calculate deadline"})]})]}),I&&(0,r.jsxs)(x.Zp,{className:I.expired||I.daysRemaining<14?"border-destructive":I.daysRemaining<60?"border-yellow-500":"border-green-500",children:[(0,r.jsx)(x.aR,{children:(0,r.jsx)(x.ZB,{className:"text-base",children:"Result"})}),(0,r.jsxs)(x.Wu,{className:"space-y-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:"Deadline"}),(0,r.jsx)("p",{className:"text-2xl font-bold text-foreground",children:(0,g.GP)(I.deadline,"d MMMM yyyy")})]}),(0,r.jsx)(p.E,{variant:I.expired||I.daysRemaining<14?"destructive":"secondary",className:"text-sm py-1 px-3",children:I.expired?"Expired ".concat(Math.abs(I.daysRemaining)," days ago"):0===I.daysRemaining?"Expires today":"".concat(I.daysRemaining," days remaining")}),I.expired?(0,r.jsxs)(v.Fc,{variant:"destructive",children:[(0,r.jsx)(w.A,{className:"h-4 w-4"}),(0,r.jsx)(v.TN,{children:"The deadline has passed. Late applications are rarely accepted — seek immediate advice."})]}):I.daysRemaining<14?(0,r.jsxs)(v.Fc,{variant:"destructive",children:[(0,r.jsx)(w.A,{className:"h-4 w-4"}),(0,r.jsx)(v.TN,{children:"Fewer than 14 days remain. Act today."})]}):null,(0,r.jsxs)("div",{className:"bg-muted/50 rounded-lg p-4 text-sm text-muted-foreground leading-relaxed",children:[(0,r.jsx)("strong",{className:"text-foreground",children:"How this is calculated: "}),D]}),_&&_.length>0&&(0,r.jsx)("ul",{className:"text-xs text-muted-foreground space-y-1",children:_.map((e,t)=>(0,r.jsxs)("li",{children:["• ",e]},t))})]})]})]})}},55953:(e,t,a)=>{a.r(t),a.d(t,{DataBreach72HourChecker:()=>s});var r=a(95155),n=a(22938);function s(){return(0,r.jsx)(n.rj,{title:"Data breach 72-hour notification deadline",triggerLabel:"Date and time the controller became aware of the breach",triggerHelp:"The 72-hour clock starts when the controller becomes aware — not when the breach happened.",rule:{add:3,unit:"days"},legalBasis:"Article 33 UK GDPR — a controller must notify the ICO of a personal data breach within 72 hours of becoming aware, unless the breach is unlikely to result in a risk to the rights and freedoms of natural persons. Where the risk is high (Article 34), individuals must also be informed without undue delay. Late notification must include reasons for the delay.",notes:["72 hours, not 72 working hours — weekends and bank holidays count","'Awareness' means reasonable certainty that a breach has occurred; cursory suspicions don't start the clock","Failure to notify can attract fines up to \xa38.7m or 2% global turnover (Article 83(4))","Indiv
1iduals must be notified separately if high risk — under Article 34"]})}},67812:(e,t,a)=>{a.d(t,{E:()=>d});var r=a(95155);a(12115);var n=a(83101),s=a(25016);let i=(0,n.F)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function d(e){let{className:t,variant:a,...n}=e;return(0,r.jsx)("div",{className:(0,s.cn)(i({variant:a}),t),...n})}},97003:(e,t,a)=>{a.d(t,{$:()=>l});var r=a(95155),n=a(12115),s=a(32467),i=a(83101),d=a(25016);let o=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),l=n.forwardRef((e,t)=>{let{className:a,variant:n,size:i,asChild:l=!1,...c}=e,u=l?s.DX:"button";return(0,r.jsx)(u,{className:(0,d.cn)(o({variant:n,size:i,className:a})),ref:t,...c})});l.displayName="Button"}}]);

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.