1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[844],{844:(e,t,n)=>{n.r(t),n.d(t,{default:()=>u});var s=n(37876),i=n(14232),r=n(8488),l=n(15804),o=n(24954),a=n(70508),c=n(53807);function u(e){let{schedule:t,startDate:n,duration:u,button:f,mode:m}=e,d=(0,i.useRef)(null),x=(0,a.W)(d,{once:!0}),[p,h]=(0,i.useState)(!1),[b,v]=(0,i.useState)(!0);return(0,i.useEffect)(()=>{v(!!document.getElementById("notification-bar"))},[]),(0,i.useEffect)(()=>{let e=d.current,t=new IntersectionObserver(e=>{let[t]=e;h(!t.isIntersecting)},{threshold:0});return e&&t.observe(e),()=>{e&&t.unobserve(e)}},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{ref:d}),(0,s.jsx)("div",{className:(0,r.cn)("h-[89px] flex items-center bg-white -mb-[89px] py-3 border-b-1 sticky z-50 transition-opacity duration-300",p?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none duration-0",b?"top-7":"top-0"),children:(0,s.jsxs)("div",{className:"overflow-hidden container flex justify-between items-center gap-4",children:[(0,s.jsx)("div",{className:(0,r.cn)("max-sm:pl-[100%]",x?"max-sm:animate-scroll ":""),children:(0,s.jsxs)("div",{className:"flex items-center gap-3 sm:gap-8 sm:overflow-x-auto no-scrollbar",children:[u?(0,s.jsxs)("div",{className:"shrink-0 text-sm font-medium text-font-subDescription",children:["Duration-"," ",(0,s.jsx)(l.A,{text:u,className:"inline-block font-semibold text-font-title"})]}):null,n?(0,s.jsxs)("p",{className:"shrink-0 text-sm font-medium text-font-subDescription",children:["Start Date-"," ",(0,s.jsx)("span",{className:"font-semibold text-font-title",children:(0,o.Yq)(n)})]}):null,t?(0,s.jsxs)("div",{className:"shrink-0 text-sm font-medium text-font-subDescription",children:["Timings (IST)-"," ",(0,s.jsx)(l.A,{text:t,className:"inline-block font-semibold text-font-title"})]}):null,m?(0,s.jsxs)("p",{className:"shrink-0 text-sm font-medium text-font-subDescription",children:["Mode-"," ",(0,s.jsx)("span",{className:"font-semibold text-font-title",children:m})]}):null]})}),f?(0,s.jsx)(c.A,{button:f,isWhite:null==f?void 0:f.whiteButton,className:"hidden sm:flex px-16 lg:px-24 py-7 w-full md:w-fit"}):null]})})]})}},70508:(e,t,n)=>{n.d(t,{W:()=>l});var s=n(14232),i=n(93563);let r={some:0,all:1};function l(e,{root:t,margin:n,amount:o,once:a=!1}={}){let[c,u]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{if(!e.current||a&&c)return;let s={root:t&&t.current||void 0,margin:n,amount:o};return function(e,t,{root:n,margin:s,amount:l="some"}={}){let o=(0,i.KJ)(e),a=new WeakMap,c=new IntersectionObserver(e=>{e.forEach(e=>{let n=a.get(e.target);if(!!n!==e.isIntersecting)if(e.isIntersecting){let n=t(e);"function"==typeof n?a.set(e.target,n):c.unobserve(e.target)}else"function"==typeof n&&(n(e),a.delete(e.target))})},{root:n,rootMargin:s,threshold:"number"==typeof l?l:r[l]});return o.forEach(e=>c.observe(e)),()=>c.disconnect()}(e.current,()=>(u(!0),a?void 0:()=>u(!1)),s)},[t,e,n,a,o]),c}}}]);
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.