PageSourceSearch

https://www.msp.gov.ua/_next/static/chunks/pages/unsubscribe-dc2465e3d80b1b80.js

js msp.gov.ua collected 2026-10-02 02:47:28 UTC 6,716 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5785],{66266:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/unsubscribe",function(){return r(78058)}])},78058:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return f},default:function(){return h}});var n=r(85893),s=r(67294),a=r(87066),i=r(25675),l=r.n(i),o=r(16887),c=r(93306),u=r(95364),d=r(95773),f=!0;function h(e){let{t}=(0,o.$G)("common"),[r,i]=s.useState(!1),[f,h]=(0,s.useState)(!1),[x,m]=(0,s.useState)(!1);(0,s.useEffect)(()=>{!1===e.active&&h(!0)},[e.active]);let b=async()=>{i(!0);try{await a.Z.post("/api/unsubscribe",{data:{id:e.id,email:e.email}}).then(()=>{h(!0)})}catch(e){m(!0)}finally{i(!1)}};return(0,n.jsx)("div",{className:"flex items-center justify-center h-screen",children:(0,n.jsxs)("div",{className:"w-[540px] max-w-full p-4",children:[(0,n.jsx)(l(),{src:"/img/logo.png",alt:"Logo",width:276,height:72,className:"max-w-full"}),(0,n.jsx)("div",{className:"bg-block px-8 py-10 rounded-10 mt-8",children:f?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h3",{className:"h3 mb-8",children:t("subscription_cancelled")}),(0,n.jsx)("p",{className:"mb-4 text-secondary",children:t("you_have_successfully_unsubscribed")}),(0,n.jsx)("p",{className:"mb-10 text-secondary",children:t("if_you_unsubscribed_by_mistake")}),(0,n.jsx)(u.z,{type:"button",className:"relative mr-auto max-sm:w-full overflow-hidden",onClick:()=>{window.location.href="/press-center/news#subscribe"},children:t("subscribe")})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h3",{className:"h3 mb-8",children:t("cancel_subscription")}),(0,n.jsxs)("p",{className:"mb-4 text-secondary",children:[t("your_email_address")," ",(0,n.jsx)("strong",{children:e.email})]}),(0,n.jsx)("p",{className:"mb-10 text-secondary",children:t("you_will_no_longer_receive_emails")}),x&&(0,n.jsxs)("div",{className:"flex gap-4 rounded-20 p-4 md:p-6 bg-[#DBE9E9]",children:[(0,n.jsx)(d.Z,{size:32}),(0,n.jsxs)("div",{className:"flex-1 flex flex-col gap-2",children:[(0,n.jsxs)("p",{className:"text-lg md:text-xl",children:[t("error"),"!"]}),(0,n.jsx)("p",{className:"font-light max-md:text-sm",children:t("server_error_msg")})]})]}),(0,n.jsxs)(u.z,{type:"button",className:"relative mr-auto max-sm:w-full overflow-hidden",onClick:b,children:[r&&(0,n.jsx)("div",{className:"absolute inset-0 bg-black flex items-center justify-center [&>svg]:animate-spin",children:(0,n.jsx)(c.Z,{})}),t("unsubscribe")]})]})})]})})}},93306:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(85893);function s(e){let{className:t,size:r=24}=e;return(0,n.jsx)("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:"",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,n.jsx)("path",{className:"stroke-current",d:"M21 12a9 9 0 1 1-6.219-8.56"})})}r(67294)},95773:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(85893);function s(e){let{className:t,size:r=24}=e;return(0,n.jsx)("svg",{className:t,width:r,height:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{className:"fill-current",d:"M8.00065 11.333C8.18954 11.333 8.34787 11.2691 8.47565 11.1413C8.60343 11.
10136 8.66732 10.8552 8.66732 10.6663C8.66732 10.4775 8.60343 10.3191 8.47565 10.1913C8.34787 10.0636 8.18954 9.99967 8.00065 9.99967C7.81176 9.99967 7.65343 10.0636 7.52565 10.1913C7.39787 10.3191 7.33398 10.4775 7.33398 10.6663C7.33398 10.8552 7.39787 11.0136 7.52565 11.1413C7.65343 11.2691 7.81176 11.333 8.00065 11.333ZM7.33398 8.66634H8.66732V4.66634H7.33398V8.66634ZM8.00065 14.6663C7.07843 14.6663 6.21176 14.4913 5.40065 14.1413C4.58954 13.7913 3.88398 13.3163 3.28398 12.7163C2.68398 12.1163 2.20898 11.4108 1.85898 10.5997C1.50898 9.78856 1.33398 8.9219 1.33398 7.99967C1.33398 7.07745 1.50898 6.21079 1.85898 5.39967C2.20898 4.58856 2.68398 3.88301 3.28398 3.28301C3.88398 2.68301 4.58954 2.20801 5.40065 1.85801C6.21176 1.50801 7.07843 1.33301 8.00065 1.33301C8.92287 1.33301 9.78954 1.50801 10.6007 1.85801C11.4118 2.20801 12.1173 2.68301 12.7173 3.28301C13.3173 3.88301 13.7923 4.58856 14.1423 5.39967C14.4923 6.21079 14.6673 7.07745 14.6673 7.99967C14.6673 8.9219 14.4923 9.78856 14.1423 10.5997C13.7923 11.4108 13.3173 12.1163 12.7173 12.7163C12.1173 13.3163 11.4118 13.7913 10.6007 14.1413C9.78954 14.4913 8.92287 14.6663 8.00065 14.6663ZM8.00065 13.333C9.48954 13.333 10.7507 12.8163 11.784 11.783C12.8173 10.7497 13.334 9.48856 13.334 7.99967C13.334 6.51079 12.8173 5.24967 11.784 4.21634C10.7507 3.18301 9.48954 2.66634 8.00065 2.66634C6.51176 2.66634 5.25065 3.18301 4.21732 4.21634C3.18398 5.24967 2.66732 6.51079 2.66732 7.99967C2.66732 9.48856 3.18398 10.7497 4.21732 11.783C5.25065 12.8163 6.51176 13.333 8.00065 13.333Z",fill:""})})}r(67294)},95364:function(e,t,r){"use strict";r.d(t,{d:function(){return o},z:function(){return c}});var n=r(85893),s=r(67294),a=r(4222),i=r(45139),l=r(27742);let o=(0,i.j)("max-w-full inline-flex items-center gap-2.5 justify-center rounded-full transition-colors duration-300 focus-visible:outline-none focus-visible:ring-1 ring-offset-2 focus-visible:ring-indigo-600 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"relative bg-black text-white overflow-hidden z-10 hover:bg-white hover:after:opacity-100 hover:text-black after:absolute after:inset-0 after:bg-gradient after:pointer-events-none after:-z-10 after:duration-300 after:opacity-0",white:"bg-white text-black",ghost:"hover:bg-neutral-100 hover:text-neutral-900 dark:hover:bg-neutral-800 dark:hover:text-neutral-50",link:"text-neutral-900 underline-offset-4 hover:underline dark:text-neutral-50",outline:"relative border border-neutral-900 overflow-visible z-10 hover:border-transparent hover:after:opacity-100 hover:text-black after:absolute after:-inset-px after:bg-gradient after:pointer-events-none after:-z-10 after:rounded-full after:duration-300 after:opacity-0",gray:"bg-grey1 hover:bg-black hover:text-white"},size:{default:"px-10 py-4",sm:"gap-2 text-sm px-5 py-3",xs:"p-0",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=s.forwardRef((e,t)=>{let{className:r,variant:s,size:i,asChild:c=!1,...u}=e,d=c?a.g7:"button";return(0,n.jsx)(d,{className:(0,l.cn)(o({variant:s,size:i,className:r})),ref:t,...u})});c.displayName="Button"},27742:function(e,t,r){"use strict";r.d(t,{cn:function(){return a}});var n=r(90512),s=r(98388);function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.m6)((0,n.W)(t))}}},function(e){e.O(0,[3981,5675,2888,9774,179],function(){return e(e.s=66266)}),_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.