PageSourceSearch

https://www.viory.video/_next/static/chunks/312-85340d914318bd26.js

js viory.video collected 2026-10-02 07:02:47 UTC 50,719 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6f9dc407-1b31-4179-a00e-b6982539b603",e._sentryDebugIdIdentifier="sentry-dbid-6f9dc407-1b31-4179-a00e-b6982539b603")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[312],{97148:function(e,t,r){var n={"./ar/agreement.json":[4849,4849],"./ar/common.json":[55952,5952],"./ar/page.json":[60424,424],"./en/agreement.json":[4161,4161],"./en/common.json":[13772,3772],"./en/page.json":[76521,6521]};function a(e){if(!r.o(n,e))return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=n[e],a=t[0];return r.e(t[1]).then(function(){return r.t(a,19)})}a.keys=function(){return Object.keys(n)},a.id=97148,e.exports=a},47027:function(e,t,r){"use strict";r.d(t,{$:function(){return d}});var n=r(54728),a=r(7643),i=r(6674),s=r(7457),l=r(99728),o=r(44763);function d(e,t,r){let a=(0,l.$G)(t,r),{i18n:i}=a;{let[t,r]=(0,n.useState)(i.resolvedLanguage);(0,n.useEffect)(()=>{e&&i.resolvedLanguage!==e&&i.changeLanguage(e)},[e,i])}return a}a.ZP.use(l.Db).use(i.Z).use((0,s.Z)((e,t)=>r(97148)("./".concat(e,"/").concat(t,".json")))).init({...o.ZP,lng:void 0,detection:{order:["path","htmlTag","cookie","navigator"]},preload:[],ns:["common"]})},44763:function(e,t,r){"use strict";r.d(t,{Mj:function(){return a}});var n=r(87470);let a=["en","ar"],i=n.qx.NEXT_LOCALE;t.ZP={defaultLocale:"en",locales:a,supportedLngs:a,fallbackLng:"en",cookieName:i,defaultNS:"common",prefixDefault:!1}},42406:function(e,t,r){"use strict";r.d(t,{a:function(){return n}});class n{dispatch(e){this.senders.map(t=>{let r=e.find(e=>{let{senderType:r}=e;return t instanceof r});r&&t.send(r.trackData)})}constructor(e){this.senders=e}}},54691:function(e,t,r){"use strict";r.d(t,{t:function(){return n}});class n{send(e){return window.ym&&window.ym(99954645,e.eventName,e.params),!0}}},94668:function(e,t,r){"use strict";r.d(t,{E:function(){return f}});var n=r(94864),a=r(86645),i=r(47027);let s=e=>{let{agreement:t}=e,{lang:r}=(0,a.useParams)(),{t:s}=(0,i.$)(r,"page"),l=["enterprise","enterprise_branded"].includes(t.agreement_type),o="month"===t.duration_unit;return(0,n.jsxs)("div",{className:"text-viory-grey",children:[(0,n.jsxs)("p",{children:[o&&"".concat(t.duration," ").concat(s("video.slider.enterprise.additions.months")),l&&s("video.slider.enterprise.additions.all_content_access")]}),(0,n.jsxs)("p",{children:[s("video.slider.enterprise.additions.rights"),s("plan_details.rights_block.archiving_rights.".concat(t.archiving_rights))]})]})};var l=r(44588),o=r(37297);let d=e=>{let{agreement:t}=e,{lang:r}=(0,a.useParams)(),{t:s}=(0,i.$)(r,"page"),{balance:d,refill_in:c,user_balance:u}=t,{download_type:m}=t.can_download_content,f=d.top_up_quota,p=o.aE[u.limit_type]||4,h=s("video.slider.enterprise.video_type_".concat(p)),x=d.unlimited_access&&!u.customized_limit,v=t.user_balance.quota||t.balance.quota;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"",children:[(x||t.agreement_type===l.Sb.region)&&s("video.limit_left.unlimited"),t.agreement_type!==l.Sb.region&&"".concat(v," ").concat(h)]}),m===o.fj.TOP_UP&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"",children:s("video.limit_left.top_up_1")}),c&&(0,n.jsxs)("div",{className:"",children:[s("video.limit_left.top_up_2"),c,s("video.limit_left.top_up_3")]}),(0,n.jsx)("p",{}),(0,n.jsxs)("div",{className:"",children:[f,s("video.limit_left.top_up_4"),"number"==typeof f?"".concat(f," ").concat(h):"",s("video.limit_left.top_up_5"),d.top_up_item_price,s("video.limit_left.top_up_6")]})]}),m===o.fj.RESTRICTED&&(0,n.jsx)("div",{className:"",children:"number"==typeof v?"".concat(v," ").concat(h):""})]})};var c=r(34436);let u=()=>{let{lang:e}=(0,a.useParams)(),{t}=(0,i.$)(e,"page");return(0,n.jsxs)("div",{className:"flex flex-row items-start  bg-viory-lighter-orange p-4",children:[(0,n.jsx)(c.Z,{className:"size-[18px] shrink-0 text-viory-orange ltr:mr-2 rtl:ml-2"}),(0,n.jsxs)("p",{className:"mt-1 text-note",children:[t("video.slider.enterprise.additions.reached.no_has_refill_1")," ",t("video.slider.pass.reached.please"),(0,n.jsx)("a",{href:"mailto:[email protected]",className:"",children:t("video.slider.pass.reached.
1contact")}),t("video.slider.pass.reached.your_manager")]})]})},m=e=>{let{agreement:t}=e,{lang:r}=(0,a.useParams)(),{t:s}=(0,i.$)(r,"page"),{quota_period:l,refill_in:d}=t,{limit_type:c}=t.can_download_content,m=t.user_balance.limit_type===o.e4.POOL;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("ul",{className:"mb-3 ml-10 block list-disc space-y-1 text-small text-viory-grey",children:[(0,n.jsxs)("li",{children:[c===o.$i.USER_LIMIT&&s("video.slider.enterprise.reached_personal_limit"),l===o.ns.MONTH?(0,n.jsxs)(n.Fragment,{children:[s("video.slider.enterprise.additions.reached.has_refill_1"),m&&s("video.slider.enterprise.additions.reached.has_refill_2")]}):(0,n.jsxs)(n.Fragment,{children:[s("video.slider.enterprise.additions.reached.no_has_refill_1"),m&&s("video.slider.enterprise.additions.reached.no_has_refill_2"),s("video.slider.enterprise.additions.reached.no_has_refill_3")]})]}),d&&(0,n.jsxs)("li",{className:"",children:[s("video.slider.enterprise.additions.reached.has_refill_3"),d,s("video.slider.enterprise.additions.reached.has_refill_4")]})]}),(0,n.jsx)(u,{})]})},f=e=>{let{agreement:t}=e,{limit_type:r}=t.can_download_content||{};return"none"!==r?(0,n.jsx)(m,{agreement:t}):(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("ul",{className:"list-disc pl-[40px] text-small text-viory-grey",children:[(0,n.jsx)("li",{className:"",children:(0,n.jsx)(d,{agreement:t})}),(0,n.jsx)("li",{children:(0,n.jsx)(s,{agreement:t})})]})})}},82798:function(e,t,r){"use strict";r.d(t,{e:function(){return l}});var n=r(94864),a=r(86645),i=r(95427),s=r(47027);let l=e=>{let{agreement:t}=e,{lang:r}=(0,a.useParams)(),{t:l}=(0,s.$)(r,"page");return(0,n.jsxs)("div",{className:"",children:[(0,n.jsxs)("div",{className:"mb-[10px] inline-flex h-6 items-start justify-start gap-2.5 pl-[26px]",children:[(0,n.jsx)("div",{className:"flex items-center justify-start gap-2.5 pt-[3px]",children:(0,n.jsxs)("div",{className:"text-line leading-tight text-black",children:["$",null==t?void 0:t.pricePerItem," ",l("video.slider.one_off.per_item")]})}),(null==t?void 0:t.discountPercentage)&&(0,n.jsx)("div",{className:"flex items-center justify-center gap-2 bg-[#41beb1] px-2 py-1",children:(0,n.jsx)("div",{className:"flex items-center justify-center gap-2.5 pt-0.5",children:(0,n.jsx)("div",{className:"text-center text-small-bold uppercase leading-[14px] tracking-tight text-white",children:"-50%"})})})]}),(0,n.jsxs)("ul",{className:"block list-disc  pl-[32px]  text-small text-viory-grey",children:[(0,n.jsx)("li",{className:"mb-1",children:l("video.slider.one_off.rights")}),(0,n.jsxs)("li",{children:[l("video.slider.one_off.valid_till"),i.ou.local().plus({days:7}).toUTC().toFormat("dd.LL.yyyy")]})]})]})}},25974:function(e,t,r){"use strict";r.d(t,{w:function(){return c}});var n=r(94864),a=r(37297),i=r(86645),s=r(47027);let l=e=>{let{agreement:t}=e,{lang:r}=(0,i.useParams)(),{t:l}=(0,s.$)(r,"page"),{balance:o,refill_in:d,user_balance:c}=t,{download_type:u}=t.can_download_content,m=o.top_up_quota,f=a.aE[c.limit_type]||4,p=l("video.slider.enterprise.video_type_".concat(f)),h=o.unlimited_access&&!c.customized_limit,x=t.user_balance.quota||t.balance.quota;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"",children:[h&&l("video.limit_left.unlimited"),"".concat(x," ").concat(p)]}),u===a.fj.TOP_UP&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"",children:l("video.limit_left.top_up_1")}),d&&(0,n.jsxs)("div",{className:"",children:[l("video.limit_left.top_up_2"),d,l("video.limit_left.top_up_3")]}),(0,n.jsx)("p",{}),(0,n.jsxs)("div",{className:"",children:[m,l("video.limit_left.top_up_4"),"number"==typeof m?"".concat(m," ").concat(p):"",l("video.limit_left.top_up_5"),o.top_up_item_price,l("video.limit_left.top_up_6")]})]}),u===a.fj.RESTRICTED&&(0,n.jsx)("div",{className:"",children:"number"==typeof x?"".concat(x," ").concat(p):""})]})},o=()=>{let{lang:e}=(0,i.useParams)(),{t}=(0,s.$)(e,"page");return(0,n.jsxs)("div",{className:"",children:[(0,n.jsx)("div",{className:"",children:t("video.slider.enterprise.additions.reached.has_refill_5")}),(0,n.jsx)("div",{className:"",children:(0,n.jsx)("a",{className:"",href:"tel:".concat(t("video.slider.enterprise.additions.reached.phone"),"}"),children:t("video.slider.enterprise.additions.reached.phone")})}),(0,n.jsx)("div",{className:"",children:(0,n.jsx)("a",{className:"",href:"mailto:".concat(t("video.slider.enterprise.additions.reached.email")),target:"_top",children:t("video.slider.enterprise.additions.reached.email")})})]})},d=e=>{let{agreement:t}=e,{lang:r}=(0,i.useParams)(),{t:l}=(0,s.$)(r,"page"),{refill_in:d}=t,{limit_type:c}=t.can_download_content,{customized_limit:u}=t.user_balance;return c===a.$i.DAY_LIMIT?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"",children:l("video.slider.pass.day_limit_reached.text")}),(0,n.jsxs)("div",{className:"",children:[l("video.slider.pass.day_limit_reached.wait1"),24-new Date().getUTCHours(),l("video.slider.pass.day_limit_reached.wait2")]})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"",children:l(u?"video.slider.pass.reached_personal_limit":"video.slider.pass.pool.reached")}),d&&(0,n.jsxs)("div",{className:"",children:[l("video.slider.pass.pool.refill1"),d,l("video.slider.pass.pool.refill2")]}),(0,n.jsx)(o,{})]})},c=e=>{let{agreement:t}=e,{limit_type:r}=t.can_download_content||{},i=r===a.$i.NONE?l:d;return(0,n.jsx)(i,{agreement:t})}},37297:function(e,t,r){"use strict";r.d(t,{$i:function(){return s},aE:function(){return a},e4:function(){return n},fj:function(){return i},ns:function(){return l}});let n={POOL:"pool"},a={pool:1,regular_content:2,spherical:3},i={FREE:"free",NORMAL:"normal",ONE_OFF:"one_off",REPEATED:"repeated",TOP_UP:"top_up",RESTRICTED:"restricted"},s={COMPANY_LIMIT:"company_limit",DAY_LIMIT:"day_limit",NONE:"none",USER_LIMIT:"user_limit"},l={MONTH:"month"}},86716:function(e,t,r){"use strict";r.d(t,{q:function(){return _},b:function(){return b}});var n=r(94864),a=r(54728),i=r(86645),s=r(78466),l=r(63633),o=r(3606),d=r(6565
1),c=r(47027),u=r(25171),m=r(5715),f=r(37319),p=r(94668),h=r(82798),x=r(25974),v=r(20892);let g=/^\d+$/,y=v.z.object({selectedAgreementId:v.z.string().regex(g,"selectedAgreementId must be a string containing only numeric characters"),languageId:v.z.string().regex(g,"languageId must be a string containing only numeric characters"),language:v.z.string().regex(/^(en|ar)$/,'Language must be either "en" or "ar"'),liveEventSlug:v.z.string()}),_={ENTERPRISE:"enterprise",ONE_OFF:"one_off",PASS:"pass",REGION:"region"},b=e=>{var t;let{showAgreementSelector:r,setShowAgreementSelector:v,liveEvent:g,selectedLanguageId:b,createBookingAction:j,agreementsAvailable:N}=e,{lang:w}=(0,i.useParams)(),{t:E}=(0,c.$)(w,"page"),{t:C}=(0,c.$)(w,"agreement"),[k,L]=(0,o.useFormState)(j,{message:""});(0,a.useEffect)(()=>{(null==k?void 0:k.message)==="success"&&v(!1)},[null==k?void 0:k.message]);let{register:A,setValue:T,watch:S}=(0,d.cI)({defaultValues:{selectedAgreementId:null==N?void 0:null===(t=N[0])||void 0===t?void 0:t.id.toString()}}),I=S("selectedAgreementId"),R=(0,d.cI)({resolver:(0,l.F)(y),defaultValues:{liveEventSlug:"",language:"",languageId:"",selectedAgreementId:""}});return(0,a.useEffect)(()=>{N&&N.length>0&&T("selectedAgreementId",N[0].id.toString(),{shouldDirty:!0})},[N]),(0,n.jsx)(s.fC,{open:r,onOpenChange:v,modal:!0,children:(0,n.jsxs)(s.h_,{children:[(0,n.jsx)(s.aV,{className:"fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),(0,n.jsx)(s.VY,{className:"fixed inset-0 z-50 overflow-y-auto",children:(0,n.jsx)("div",{className:"flex min-h-full  items-center justify-center ",children:(0,n.jsxs)("div",{className:"relative w-full max-w-[646px] rounded-md bg-white p-10 shadow-lg  sm:w-[320px] sm:px-[24px]  sm:py-[32px] md:w-[646px] lg:w-[646px] xl:w-[646px]  ",children:[(0,n.jsxs)("div",{className:"mb-6 flex flex-row justify-between ",children:[(0,n.jsx)(s.Dx,{children:(0,n.jsx)("div",{className:"text-large-bold text-black sm:text-bold-header",children:E("video.slider.choose_plan")})}),(0,n.jsx)(s.x8,{asChild:!0,className:"focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none",children:(0,n.jsx)(u.default,{className:"type-icon min-w-px !p-0",icon:"close"})})]}),(0,n.jsx)(m.l0,{...R,children:(0,n.jsx)("form",{className:"h-full max-h-full overflow-hidden",action:L,children:(0,n.jsxs)("div",{className:"",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("input",{type:"hidden",name:"language",value:w}),(0,n.jsx)("input",{type:"hidden",name:"liveEventSlug",value:g.slug}),(0,n.jsx)("input",{type:"hidden",name:"languageId",value:null==b?void 0:b.toString()}),(0,n.jsx)("div",{className:"mb-[32px]",children:null==N?void 0:N.map(e=>(0,n.jsxs)("div",{className:(0,f.cn)("border-[1px]  mb-[8px] p-[20px] ",e.id===+I?"border-viory-blue":"border-viory-lighter-gray"),onClick:()=>T("selectedAgreementId",e.id.toString()),children:[(0,n.jsxs)("label",{className:"mb-[8px] flex h-[24px] items-center text-regular",children:[(0,n.jsx)("input",{type:"radio",value:e.id,className:" size-[18px] appearance-none rounded-full border  border-viory-lighter-grey checked:border-5  checked:border-viory-blue ltr:mr-[8px] rtl:ml-[8px]",disabled:!(null==e?void 0:e.can_download_content.can)||(null==e?void 0:e.can_download_content.why_not_reason)!=="none",...A("selectedAgreementId",{required:!0})}),C("agreement_type.".concat(e.agreement_type))]}),e.agreement_type===_.PASS?(0,n.jsx)(x.w,{agreement:e}):e.agreement_type===_.ONE_OFF?(0,n.jsx)(h.e,{agreement:e}):(0,n.jsx)(p.E,{agreement:e})]},e.id))})]}),(0,n.jsx)(u.default,{className:"type-primary !h-[44px] text-regular-line sm:!w-full md:!w-[135px] lg:!w-[135px]  xl:!w-[135px]  ",text:E("video.slider.choose_plan"),type:"submit",children:E("video.slider.choose_plan")})]})})})]})})})]})})}},53156:function(e,t,r){"use strict";r.d(t,{g3:function(){return g},oR:function(){return y}});var n=r(94864),a=r(54728),i=r(99471),s=r(72070),l=r(14849);let o=(e,t)=>({cookie:{isCookieModalOpen:!1,setIsCookieModalOpen:t=>e(e=>({cookie:{...e.cookie,isCookieModalOpen:t}})),isCookieAlertOpen:!1,setIsCookieAlertOpen:t=>e(e=>({cookie:{...e.cookie,isCookieAlertOpen:t}})),cookieSettings:l.x,setCookieSettings:t=>e(e=>({cookie:{...e.cookie,cookieSettings:t}}
1)),restrictedCookie:null,setRestrictedCookie:t=>e(e=>({cookie:{...e.cookie,restrictedCookie:t}}))}});var d=r(57758);let c=(e,t)=>({alerts:[],hasVisibleAlerts:!1,liveEvents:[],myEvents:{booked_events:[],followed_events:[]},setIsLoggedIn:t=>e({isLoggedIn:t}),setAlerts:t=>{let r=t.some(e=>e.visible);e({alerts:t,hasVisibleAlerts:r})},setLiveEvents:t=>e({liveEvents:t}),setMyEvents:t=>e({myEvents:t}),setCurrentLiveEvent:t=>e({currentLiveEvent:t}),handleLiveEventUpdate:r=>{var n;let a=t(),i=!r.visible||r.status===d.C.TERMINATED||r.status===d.C.CANCELED;(null===(n=a.currentLiveEvent)||void 0===n?void 0:n.id)===r.id&&(i?e({currentLiveEvent:void 0}):e({currentLiveEvent:{...a.currentLiveEvent,...r}}));let s=a.liveEvents;if(i)s=s.filter(e=>e.id!==r.id);else if(s.find(e=>e.id===r.id)?s=s.map(e=>e.id===r.id?{...e,...r}:e):r.visible&&"title"in r&&"start_at"in r&&(s=[...s,r]),r.status===d.C.LIVE){let e=s.find(e=>e.id===r.id);e&&(s=[e,...s.filter(e=>e.id!==r.id)])}e({liveEvents:s});let{booked_events:l,followed_events:o}=a.myEvents;e({myEvents:{booked_events:l.map(e=>e.id===r.id?{...e,...r}:e).filter(e=>!(i&&e.id===r.id)),followed_events:o.map(e=>e.id===r.id?{...e,...r}:e).filter(e=>!(i&&e.id===r.id))}})}}),u={isLoggedIn:!1,alerts:[],hasVisibleAlerts:!1},m=(e,t)=>({ui:{isSearchVisible:!0,setIsSearchVisible:t=>e(e=>({ui:{...e.ui,isSearchVisible:t}})),searchInputValue:"",setSearchInputValue:t=>e(e=>({ui:{...e.ui,searchInputValue:t}})),searchLandingValue:"",setSearchLandingValue:t=>e(e=>({ui:{...e.ui,searchLandingValue:t}})),isSearchBlockVisible:!1,setIsSearchBlockVisible:t=>e(e=>({ui:{...e.ui,isSearchBlockVisible:t}}))}}),f=e=>({user:void 0,setUser:t=>{t?localStorage.setItem("user_id",t.id.toString()):localStorage.removeItem("user_id"),e({user:t})}}),p=e=>({agreements:[],setUserAgreements:t=>e({agreements:t})}),h=(e,t)=>({userTimezone:void 0,setUserTimezone:t=>e({userTimezone:t})}),x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t={...u,...e};return(0,i.Ue)()((0,s.mW)((e,r,n)=>({...t,...m(e,r,n),...c(e,r,n),...f(e,r,n),...p(e,r,n),...o(e,r,n),...h(e,r,n)}),{name:"MainStore"}))},v=(0,a.createContext)(null),g=e=>{let{children:t,initStore:r}=e,i=(0,a.useRef)();return i.current||(i.current=x(r)),(0,n.jsx)(v.Provider,{value:i.current,children:t})},y=e=>{let t=(0,a.useContext)(v);if(!t)throw Error("Store is missing the provider");return(0,i.oR)(t,e)}},12221:function(e,t,r){"use strict";r.d(t,{Checkbox:function(){return o}});var n=r(94864),a=r(54728),i=r(19595),s=r(19713),l=r(27325);let o=a.forwardRef((e,t)=>{let{className:r,label:o,labelClassName:d,containerClassName:c,errorClassName:u,error:m,id:f,...p}=e,h=(0,a.useId)(),x=f||h,v=m?"border-input-error md:hover:border-input-error":"";return(0,n.jsxs)("div",{className:(0,l.cn)("gap-2.5 relative flex items-start",c),children:[(0,n.jsx)(i.fC,{ref:t,id:x,className:(0,l.cn)("flex-shrink-0 size-5 appearance-none border  border-viory-lighter-grey data-[state=checked]:border-none\n            focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed\n            hover:border-input-hover data-[state=checked]:hover:bg-input-hover\n            data-[state=checked]:bg-input-checked data-[state=checked]:disabled:bg-viory-lighter-grey  data-[state=checked]:text-viory-white\n            disabled:border-none disabled:bg-viory-lighter-grey ".concat(v),r),...p,children:(0,n.jsx)(i.z$,{className:(0,l.cn)("flex items-center justify-center text-current"),children:(0,n.jsx)(s.Z,{className:"size-4"})})}),o&&(0,n.jsx)("label",{htmlFor:x,className:(0,l.cn)("",d),children:o}),m&&(0,n.jsx)("span",{className:(0,l.cn)("absolute top-7 block text-xs text-input-error",u),children:m})]})});o.displayName=i.fC.displayName},3742:function(e,t,r){"use strict";var n=r(94864),a=r(54728),i=r(86645),s=r(47027),l=r(25171),o=r(19713),d=r(27325);t.Z=e=>{let{linkToCopy:t,className:r,buttonClassName:c,activeClassName:u}=e,[m,f]=(0,a.useState)(!1),[p,h]=(0,a.useState)(!1),[x,v]=(0,a.useState)(!0),{lang:g}=(0,i.useParams)(),{t:y}=(0,s.$)(g,"page"),_=(0,a.useCallback)(async e=>{e.preventDefault(),e.stopPropagation(),h(!0);try{await navigator.clipboard.writeText(t||window.location.href),f(!0)}catch(e){console.error("Failed to copy the link:",e)}},[t,y]);return(0,a.useEffect)(()=>{let e;return m&&(e=setTimeout(()=>{f(!1)},3e3)),()=>clearTimeout(e)},[m]),(0,a.useEffect)(()=>{m||v(!0)},[m]),(0,n.jsxs)("div",{className:(0,d.cn)("relative size-11",r),children:[(0,n.jsx)("div",{className:(0,d.cn)("absolute",m?"animate-fade-in":p?"animate-fade-out-fast":"opacity-0"),children:(0,n.jsx)(l.default,{className:(0,d.cn)("type-primary sub-type-folded",c,m&&u),icon:(0,n.jsx)(o.Z,{}),text:y("video.btn.link_copied"),onClick:e=>{e.preventDefault(),e.stopPropagation()}})}),x&&(0,n.jsx)("div",{className:(0,d.cn)("will-change-opacity",m?"animate-fade-out ease-in":p?"animate-fade-in-fast":""),onAnimationEnd:()=>{m&&v(!1)},children:(0,n.jsx)(l.default,{onClick:_,text:y("video.btn.copy_link"),className:(0,d.cn)("type-secondary sub-type-folded",c,m?"pointer-events-none !border-none md:hover:!border-none md:hover:!bg-button-touch":""),icon:"link"})})]})}},67650:function(e,t,r){"use strict";r.d(t,{k:function(){return w}});var n=r(94864),a=r(54728),i=r(86645),s=r(95427),l=r(47027),o=r(6565
1),d=r(66238),c=r(25171),u=r(23794),m=r(1784),f=r(91878),p=r(6010),h=r(65163);let x=e=>{let{children:t}=e;return(0,n.jsx)("form",{className:"flex flex-col gap-5",onSubmit:e=>e.preventDefault(),children:t})};var v=e=>{let{triggerContent:t}=e,[r,i]=a.useState(!1),{data:s}=(0,f.W)("/api/current_user"),l=(0,a.useMemo)(()=>(0,h.B2)(),[]),v=(0,a.useMemo)(()=>{var e;let t=null==s?void 0:null===(e=s.current_user)||void 0===e?void 0:e.time_zone,r=Intl.DateTimeFormat().resolvedOptions().timeZone,n=new Set(l.map(e=>e.code));return t&&n.has(t)?t:r&&n.has(r)?r:"Etc/UTC"},[s,l]),g=(0,o.cI)({defaultValues:{time_zone:v}});a.useEffect(()=>{var e;let t=null==s?void 0:null===(e=s.current_user)||void 0===e?void 0:e.time_zone;t&&l.some(e=>e.code===t)&&g.reset({time_zone:t})},[s,l,g]);let y=async()=>{let{time_zone:e}=g.getValues();try{(await p.a.patch("/api/current_user",{user:{time_zone:e}},{external:!0})).error||(i(!1),await (0,d.JG)("/api/current_user"))}catch(e){console.error("Error updating time zone:",e)}};return(0,n.jsx)(o.RV,{...g,children:(0,n.jsx)(u.default,{triggerContent:t,className:"md:max-w-[490px]",titleContent:"Time zone",mainContent:(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)("div",{className:"mb-5",children:"Show time as:"}),(0,n.jsx)("div",{className:"w-full",children:(0,n.jsx)(o.Qr,{name:"time_zone",control:g.control,render:e=>{let{field:{value:t,onChange:r}}=e;return(0,n.jsxs)(m.Ph,{value:t,onValueChange:r,children:[(0,n.jsx)(m.i4,{className:"w-full border-viory-lighter-grey",children:(0,n.jsx)(m.ki,{placeholder:"Select timezone"})}),(0,n.jsx)(m.Bw,{children:l.map(e=>(0,n.jsx)(m.Ql,{value:e.code,children:"(".concat(e.formatted,") ").concat(e.city)},e.code))})]})}})})]}),buttons:[{component:(0,n.jsx)(c.default,{className:"type-primary",text:"Save",onClick:y}),closeOnClick:!1},{component:(0,n.jsx)(c.default,{className:"type-link",text:"Cancel"}),closeOnClick:!0}],wrapper:x,open:r,onOpenChange:i})})},g=r(14631),y=r(53156),_=r(72738),b=r(37319),j=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",...e,children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 13C10.7614 13 13 10.7614 13 8C13 5.23858 10.7614 3 8 3C5.23858 3 3 5.23858 3 8C3 10.7614 5.23858 13 8 13ZM8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5 5C7.77614 5 8 5.22386 8 5.5V7.88197L8.94721 9.77639C9.07071 10.0234 8.9706 10.3237 8.72361 10.4472C8.47662 10.5707 8.17628 10.4706 8.05279 10.2236L7.05279 8.22361C7.01807 8.15418 7 8.07762 7 8V5.5C7 5.22386 7.22386 5 7.5 5Z",fill:"currentColor"})]}),N=r(40787);let w=e=>{let{date:t,format:r,displayType:o="dateTime",className:d,classNameDate:c,timezone:u,classNameIcon:m}=e,{lang:p}=(0,i.useParams)(),{t:x}=(0,l.$)(p,"page"),{timezone:w}=function(e){var t;let r=(0,y.oR)(e=>e.userTimezone),n=(0,_.l)(),{data:i}=(0,f.W)("/api/current_user");(0,a.useEffect)(()=>{var e;let t=null==i?void 0:null===(e=i.current_user)||void 0===e?void 0:e.time_zone;t&&t!==r&&n(t)},[null==i?void 0:null===(t=i.current_user)||void 0===t?void 0:t.time_zone,n,r]);let s=r||e||"local",l=(0,a.useCallback)(e=>{e!==s&&n(e)},[n,s]);return{timezone:s,updateTimezone:l}}(u);if(!t)return console.error("DateTimeLine: date is undefined or empty"),null;let E=s.ou.fromISO(t,{zone:"utc",locale:p}).setZone(w);if(!E.isValid)return console.error("Invalid dateTime:",E.invalidReason,"for date:",t),null;let C=s.ou.now().year,k=(r||x("video.date.format")||"").replace(/,?\s*yyyy/g,""),L="dateTime"===o?E.year===C?E.toFormat(k,{locale:p}):E.toFormat(r||x("video.date.format"),{locale:p}):(0,h.LS)(w),A=(0,h.LS)(w),T=a.forwardRef((e,t)=>(0,n.jsx)("span",{ref:t,...e,children:(0,n.jsx)(g.TooltipProvider,{children:(0,n.jsxs)(g.Tooltip,{children:[(0,n.jsx)(g.TooltipTrigger,{asChild:!0,children:(0,n.jsx)("div",{className:"group flex cursor-pointer flex-row items-center text-viory-grey",children:(0,n.jsxs)(N.Z,{variant:"secondaryInfo",className:(0,b.cn)(d,"group-hover:text-link-hover group-focus:text-link-touch xl:text-small flex flex-row items-center"),children:[(0,n.jsx)("div",{className:(0,b.cn)(c,"me-[4px]"),children:L}),(0,n.jsx)("div",{className:"self-center whitespace-nowrap",children:(0,n.jsx)(j,{className:(0,b.cn)("group-hover:text-link-hover group-focus:text-link-touch -translate-y-
1px inline-block",m)})})]})})}),(0,n.jsx)(g.TooltipContent,{side:"bottom",align:"end",children:A})]})})}));return T.displayName="DateTimeLineComponent",(0,n.jsx)("div",{className:"flex flex-row items-center",children:(0,n.jsx)(v,{triggerContent:(0,n.jsx)(T,{})})})}},96989:function(e,t,r){"use strict";r.d(t,{$N:function(){return v},GG:function(){return m},Vq:function(){return d},cN:function(){return x},cZ:function(){return p},fK:function(){return h},hg:function(){return c}});var n=r(94864),a=r(54728),i=r(78466),s=r(25171),l=r(27325);let o={fromTop:"fixed left-[50%] top-[50%] z-50 flex flex-col max-w-lg max-h-screen blur-none\n            translate-x-[-50%] translate-y-[-50%] gap-4 border bg-viory-white p-6 shadow-lg duration-200 focus:outline-none\n            overflow-y-auto data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0\n            data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95\n            data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]\n            data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]\n            scrollbar-none md:scrollbar scrollbar-thumb-viory-lighter-grey scrollbar-track-transparent scrollbar-thumb-rounded",fromBottom:"fixed left-[50%] bottom-0 z-50 flex flex-col max-w-lg max-h-screen blur-none\n            translate-x-[-50%] translate-y-[-50%] gap-4 border bg-viory-white p-6 shadow-lg duration-200 focus:outline-none\n            overflow-y-auto data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0\n            data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95\n            data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-bottom-[100%]\n            data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-bottom-[48%]\n            scrollbar-none md:scrollbar scrollbar-thumb-viory-lighter-grey scrollbar-track-transparent scrollbar-thumb-rounded"},d=i.fC,c=i.xz,u=i.h_,m=i.x8,f=a.forwardRef((e,t)=>{let{className:r,needBlur:a,...s}=e;return(0,n.jsx)(i.aV,{ref:t,className:(0,l.cn)("fixed inset-0 z-50 bg-black/70  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r,a?"backdrop-blur-sm":""),...s})});f.displayName=i.aV.displayName;let p=a.forwardRef((e,t)=>{let{className:r,children:a,classNameCloseIcon:d,toShowClose:c=!0,needBlur:m=!1,openMode:p="fromTop",...h}=e;return(0,n.jsx)(u,{children:(0,n.jsx)(f,{className:"overflow-y-auto",needBlur:m,children:(0,n.jsxs)(i.VY,{ref:t,className:(0,l.cn)(o[p],r),...h,children:[a,c&&(0,n.jsx)(i.x8,{asChild:!0,className:(0,l.cn)("ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"," absolute ltr:right-10 rtl:left-10 top-4 md:top-9 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none",d),children:(0,n.jsx)(s.default,{className:"type-icon !min-w-px !p-0",icon:"close",text:"Label"})})]})})})});p.displayName=i.VY.displayName;let h=e=>{let{className:t,...r}=e;return(0,n.jsx)("div",{className:(0,l.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...r})};h.displayName="DialogHeader";let x=e=>{let{className:t,...r}=e;return(0,n.jsx)("div",{className:(0,l.cn)("flex flex-col justify-stretch md:flex-row flex-wrap gap-5",t),...r})};x.displayName="DialogFooter";let v=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(i.Dx,{ref:t,className:(0,l.cn)("",r),...a})});v.displayName=i.Dx.displayName,a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(i.dk,{ref:t,className:(0,l.cn)("text-muted-foreground",r),...a})}).displayName=i.dk.displayName},5715:function(e,t,r){"use strict";r.d(t,{NI:function(){return x},Wi:function(){return u},l0:function(){return d},lX:function(){return h},xJ:function(){return p},zG:function(){return v}});var n=r(94864),a=r(54728),i=r(10556),s=r(6565),l=r(89175),o=r(37319);let d=s.RV,c=a.createContext({}),u=e=>{let{...t}=e;return(0,n.jsx)(c.Provider,{value:{name:t.name},children:(0,n.jsx)(s.Qr,{...t})})},m=()=>{let e=a.useContext(c),t=a.useContext(f),{getFieldState:r,formState:n}=(0,s.Gc)(),i=r(e.name,n);if(!e)throw Error("useFormField should be used within <FormField>");let{id:l}=t;return{id:l,name:e.name,formItemId:"".concat(l,"-form-item"),formDescriptionId:"".concat(l,"-form-item-description"),formMessageId:"".concat(l,"-form-item-message"),...i}},f=a.createContext({}),p=a.forwardRef((e,t)=>
1{let{className:r,...i}=e,s=a.useId();return(0,n.jsx)(f.Provider,{value:{id:s},children:(0,n.jsx)("div",{ref:t,className:(0,o.cn)("space-y-2",r),...i})})});p.displayName="FormItem";let h=a.forwardRef((e,t)=>{let{className:r,...a}=e,{error:i,formItemId:s}=m();return(0,n.jsx)(l._,{ref:t,className:(0,o.cn)(i&&"text-destructive",r),htmlFor:s,...a})});h.displayName="FormLabel";let x=a.forwardRef((e,t)=>{let{...r}=e,{error:a,formItemId:s,formDescriptionId:l,formMessageId:o}=m();return(0,n.jsx)(i.g7,{ref:t,id:s,"aria-describedby":a?"".concat(l," ").concat(o):"".concat(l),"aria-invalid":!!a,...r})});x.displayName="FormControl",a.forwardRef((e,t)=>{let{className:r,...a}=e,{formDescriptionId:i}=m();return(0,n.jsx)("p",{ref:t,id:i,className:(0,o.cn)("text-sm text-muted-foreground",r),...a})}).displayName="FormDescription";let v=a.forwardRef((e,t)=>{let{className:r,children:a,...i}=e,{error:s,formMessageId:l}=m(),d=s?String(null==s?void 0:s.message):a;return d?(0,n.jsx)("p",{ref:t,id:l,className:(0,o.cn)("text-sm font-medium text-destructive",r),...i,children:d}):null});v.displayName="FormMessage"},19713:function(e,t,r){"use strict";var n=r(94864);r(54728),t.Z=e=>(0,n.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.7072 5.29289C17.0977 5.68342 17.0977 6.31658 16.7072 6.70711L8.7182 14.6961L8.71604 14.6982L8.71507 14.6992L8.7126 14.7017L8.71158 14.7027L8.70995 14.7043L8.70912 14.7052L8.70834 14.7059L8.70757 14.7067C8.35568 15.0586 7.79818 15.0986 7.40006 14.8L7.39925 14.7994L7.39842 14.7988L7.39752 14.7981L7.39655 14.7974L7.39562 14.7967L7.39454 14.7959L7.39362 14.7952L7.39261 14.7944L7.39149 14.7936L7.39069 14.793L7.38984 14.7923L7.38698 14.7902L7.38592 14.7894L7.38363 14.7877L7.36146 14.7711L3.40006 11.8C2.95823 11.4686 2.86869 10.8418 3.20006 10.4C3.53143 9.95817 4.15823 9.86863 4.60006 10.2L7.90622 12.6796L15.293 5.29289C15.6835 4.90237 16.3166 4.90237 16.7072 5.29289Z",fill:"currentColor"})})},34436:function(e,t,r){"use strict";var n=r(94864);r(54728),t.Z=e=>(0,n.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 3C13.866 3 17 6.13401 17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3ZM10 1C14.9706 1 19 5.02944 19 10C19 14.9706 14.9706 19 10 19C5.02944 19 1 14.9706 1 10C1 5.02944 5.02944 1 10 1Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M9 14C9 14.5523 9.44772 15 10 15C10.5523 15 11 14.5523 11 14C11 13.4477 10.5523 13 10 13C9.44772 13 9 13.4477 9 14Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M9 11C9 11.5523 9.44772 12 10 12C10.5523 12 11 11.5523 11 11V6C11 5.44772 10.5523 5 10 5C9.44772 5 9 5.44772 9 6V11Z",fill:"currentColor"})]})},59963:function(e,t,r){"use strict";var n=r(94864),a=r(54728),i=r(93851),s=r(99728),l=r(27325),o=r(89678);let d=(0,i.j)("focus:not(:invalid):border-input-focus appearance-none truncate border border-viory-lighter-grey px-4 pb-2.5 pt-3\n    placeholder:text-viory-grey2\n    focus:outline-none enabled:valid:hover:border-input-hover\n    disabled:bg-viory-light-grey disabled:placeholder:text-viory-lighter-grey",{variants:{intent:{default:""},variant:{default:"",search:"relative flex h-full min-h-11 items-center rounded-full border-none bg-viory-light-grey px-5 pb-[9px] placeholder:text-sm placeholder:text-viory-dark-grey md:h-[52px] md:min-h-[52px] ltr:pr-10 rtl:pl-10",header:"relative flex h-full min-h-[44px] items-center rounded-full border-none bg-viory-light-grey px-5 pb-[9px] placeholder:text-sm disabled:placeholder:text-viory-dark-grey ltr:pr-10 rtl:pl-10"}},defaultVariants:{intent:"default",variant:"default"}}),c=(0,a.forwardRef)((e,t)=>{let{type:r="text",error:i,intent:c,variant:u,className:m,wrapperClassName:f,errorSpanClassName:p,postElement:h,onClear:x,value:v,onChange:g,afterIcon:y,..._}=e,[b,j]=(0,a.useState)(!1),[N,w]=(0,a.useState)(""),E="password"===r,{t:C}=(0,s.$G)("page");(0,a.useEffect)(()=>{v&&w(v)},[v]);let k=(0,a.useCallback)(e=>{e.preventDefault(),j(e=>!e)},[]),L=(0,a.useCallback)(()=>{w(""),null==x||x()},[x]);return(0,n.jsxs)("div",{className:(0,l.cn)("relative flex items-center",f,{"pb-4":i}),children:[(0,n.jsx)("input",{ref:t,type:E?b?"text":"password":r,className:(0,l.cn)(d({intent:c,variant:u}),m,{"border-input-error":!!i}),...t?null:{value:N},..._,onChange:e=>{w(e.target.value),null==g||g(e)}}),h&&!(x&&N)&&(0,n.jsx)("div",{className:"absolute size-5 ltr:right-5 rtl:left-5",children:h}),y&&(0,n.jsx)("div",{className:"absolute size-5 cursor-pointer ltr:right-5 rtl:left-5",children:y}),x&&N&&(0,n.jsx)("div",{className:"absolute size-5 cursor-pointer ltr:right-5 rtl:left-5",onClick:L,children:(0,n.jsx)(o.Z,{})}),E&&(0,n.jsx)("button",{type:"button",onClick:k,className:(0,l.cn)("absolute ltr:right-4 rtl:left-4 text-small bg-transparent translate-y-
1px md:hover:text-link-hover active:text-link-touch",p),children:C(b?"signin.hide":"signin.show")}),i&&(0,n.jsx)("span",{className:(0,l.cn)("absolute top-12 block text-xs text-input-error leading-normal",p),children:i})]})});c.displayName="Input",t.default=c},89175:function(e,t,r){"use strict";r.d(t,{_:function(){return d}});var n=r(94864),a=r(54728),i=r(57075),s=r(93851),l=r(27325);let o=(0,s.j)("font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(i.f,{ref:t,className:(0,l.cn)(o(),r),...a})});d.displayName=i.f.displayName},23794:function(e,t,r){"use strict";var n=r(94864),a=r(54728),i=r(25171),s=r(96989),l=r(40787),o=r(27325);t.default=a.memo(e=>{let{triggerContent:t,titleContent:r,mainContent:d,buttons:c,toShowClose:u,arbitraryContent:m,wrapper:f,className:p,onOpenChange:h,openMode:x,open:v,...g}=e,y=null!=m?m:(0,n.jsxs)(n.Fragment,{children:[r&&(0,n.jsx)(s.$N,{className:"mb-8",asChild:!0,children:"object"==typeof r?r:(0,n.jsx)(l.Z,{variant:"title",className:"mb-0",children:r})}),d,c&&(0,n.jsx)(s.cN,{children:c.map((e,t)=>e.closeOnClick?(0,n.jsx)(s.GG,{asChild:!0,children:e.component},t):a.cloneElement(e.component,{key:t}))})]}),_=f?(0,n.jsx)(f,{children:y}):y,b=1===a.Children.count(t)&&"string"==typeof t?(0,n.jsx)(i.default,{className:"type-link",asChild:"object"==typeof t,children:null!=t?t:"Open dialog"}):t;return(0,n.jsxs)(s.Vq,{onOpenChange:h,open:v,children:[(0,n.jsx)(s.hg,{asChild:!0,children:b}),(0,n.jsx)(s.cZ,{openMode:x,toShowClose:!!u,className:(0,o.cn)("max-h-full gap-5 md:p-10 w-full max-w-full overflow-auto md:max-w-[700px]",p),...g,children:_})]})})},704:function(e,t,r){"use strict";r.d(t,{RadioGroup:function(){return o},RadioGroupItem:function(){return d}});var n=r(94864),a=r(54728),i=r(90596),s=e=>(0,n.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,n.jsx)("rect",{x:"2.5",y:"2.5",width:"13",height:"13",rx:"6.5",fill:"white"}),(0,n.jsx)("rect",{x:"2.5",y:"2.5",width:"13",height:"13",rx:"6.5",stroke:"currentColor",strokeWidth:"5"})]}),l=r(27325);let o=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(i.fC,{className:(0,l.cn)("grid gap-2",r),...a,ref:t})});o.displayName=i.fC.displayName;let d=a.forwardRef((e,t)=>{let{className:r,id:a,label:o,children:d,fullWidth:c,...u}=e;return(0,n.jsxs)("div",{className:(0,l.cn)("flex items-center space-x-3",{"w-full":c}),children:[(0,n.jsx)(i.ck,{ref:t,className:(0,l.cn)("aspect-square size-4 flex justify-center items-center rounded-full border border-primary text-primary \n                focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:bg-viory-lighter-grey",r),id:a,...u,children:d||(0,n.jsx)(i.z$,{className:"",children:(0,n.jsx)(s,{className:"size-4 text-link-touch "})})}),o&&(0,n.jsx)("label",{htmlFor:a,className:"translate-y-0.5 ",children:o})]})});d.displayName=i.ck.displayName},1784:function(e,t,r){"use strict";r.d(t,{Bw:function(){return x},Ph:function(){return m},Ql:function(){return v},i4:function(){return f},ki:function(){return u}});var n=r(94864),a=r(54728),i=r(88555),s=r(11887),l=r(39731),o=r(12670),d=r(27325);let c=i.fC;i.ZA;let u=i.B4,m=e=>{let{...t}=e;return(0,n.jsxs)("div",{className:(0,d.cn)("relative group",{"pb-4":null==t?void 0:t.error}),"aria-invalid":(null==t?void 0:t.error)&&!0,children:[(0,n.jsx)(c,{...t,children:null==t?void 0:t.children}),(null==t?void 0:t.error)&&(0,n.jsx)("span",{className:(0,d.cn)("absolute top-12 block text-xs text-input-error leading-normal"),children:null==t?void 0:t.error})]})};m.displayName="Select";let f=a.forwardRef((e,t)=>{let{className:r,children:a,error:l,showReset:o,triggerConponent:c,...u}=e;return(0,n.jsx)(i.xz,{ref:t,className:(0,d.cn)(o?"flex h-11 w-full items-center justify-between border !border-viory-blue bg-viory-blue text-viory-white px-3 py-2 text-sm r
1ing-offset-background data-[state=open]:border-input-hover focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1":"flex h-11 w-full items-center justify-between border border-input bg-white px-3 py-2 text-sm ring-offset-background data-[state=open]:border-input-hover [&>svg]:data-[state=open]:rotate-180 placeholder:text-muted-foreground focus:outline-none hover:border-input-hover disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r,"group-aria-[invalid=true]:border-input-error",l?"border-input-error":"",o&&"!type-primary"),...u,children:c||(0,n.jsxs)(n.Fragment,{children:[a,(0,n.jsx)(i.JO,{className:"!text-viory-black",asChild:!0,children:(0,n.jsx)(s.Z,{className:"size-4 opacity-50 "})})]})})});f.displayName=i.xz.displayName;let p=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(i.u_,{ref:t,className:(0,d.cn)("flex cursor-default items-center justify-end py-1",r),...a,children:(0,n.jsx)(l.Z,{className:"size-4 opacity-50"})})});p.displayName=i.u_.displayName;let h=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(i.$G,{ref:t,className:(0,d.cn)("flex cursor-default items-center justify-end py-1",r),...a,children:(0,n.jsx)(s.Z,{className:"size-4 opacity-50"})})});h.displayName=i.$G.displayName;let x=a.forwardRef((e,t)=>{let{className:r,children:a,position:s="popper",...l}=e;return(0,n.jsx)(i.h_,{children:(0,n.jsxs)(i.VY,{ref:t,className:(0,d.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden bg-white text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),position:s,...l,children:[(0,n.jsx)(p,{}),(0,n.jsx)(i.l_,{className:(0,d.cn)("p-1","popper"===s&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),(0,n.jsx)(h,{})]})})});x.displayName=i.VY.displayName,a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(i.__,{ref:t,className:(0,d.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",r),...a})}).displayName=i.__.displayName;let v=a.forwardRef((e,t)=>{let{className:r,children:a,...s}=e;return(0,n.jsxs)(i.ck,{ref:t,className:(0,d.cn)("relative flex w-full cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...s,children:[(0,n.jsx)("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:(0,n.jsx)(i.wU,{children:(0,n.jsx)(o.Z,{className:"size-4"})})}),(0,n.jsx)(i.eT,{children:a})]})});v.displayName=i.ck.displayName,a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(i.Z0,{ref:t,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",r),...a})}).displayName=i.Z0.displayName},14631:function(e,t,r){"use strict";r.d(t,{Tooltip:function(){return o},TooltipContent:function(){return c},TooltipProvider:function(){return l},TooltipTrigger:function(){return d}});var n=r(94864),a=r(54728),i=r(81592),s=r(27325);let l=e=>{let{children:t,...r}=e;return(0,n.jsx)(i.zt,{...r,delayDuration:0,children:t})};l.displayName=i.zt.displayName;let o=i.fC,d=i.xz,c=a.forwardRef((e,t)=>{let{className:r,sideOffset:a=4,...l}=e;return(0,n.jsx)(i.VY,{ref:t,sideOffset:a,className:(0,s.cn)("rounded bg-viory-dark-grey z-50 p-3 font-normal text-xs leading-4 text-viory-white overflow-hidden animate-in fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...l})});c.displayName=i.VY.displayName},44588:function(e,t,r){"use strict";r.d(t,{Sb:function(){return s},_5:function(){return i},h5:function(){return l},wr:function(){return n},zt:function(){return a}});let n="remember_user_token",a="user_timezone",i={full_hd:"1080p",hd:"720p",md:"360p",sd:"240p"},s={trial:"trial",trial_branded:"trial_branded",enterprise:"enterprise",enterprise_branded:"enterprise_branded",subscription:"subscription",subscription_branded:"subscription_branded",region:"region",pass:"pass",bundle:"bundle",bundle_branded:"bundle_branded",circle_branded:"circle_branded",circle_onscreen_credits:"circle_onscreen_credits",circle_clean:"circle_clean"};s.enterprise,s.subscription,s.enterprise_branded,s.subscription_branded,s.circle_branded,s.circle_onscreen_credits,s.circle_clean;let l=["BE","BG","CZ","DK","DE","EE","IE","GR","ES","FR","HR","IT","CY","LV","LT","LU","HU","MT","NL","AT","PL","PT","RO","SI","SK","FI","SE","UK"]},11916:function(e,t,r){"use strict";r.d(t,{EL:function(){return a},H:function(){return n},XK:function(){return i}});let n="https://api3.viory.video",a=290,i=!1},94687:function(e,t,r){"use strict";r.d(t,{AN:function(){return o},LU:function(){return i},jF:function(){return s},p6:function(){return l}});var n=r(95427);let a={ar:{format:{this_year:"LLLL dd 'في' HH:mm",default:"LLLL dd, yyyy 'في' HH:mm"},today:"اليوم",yesterday:"بالأمس"},en:{format:{this_year:"LLLL dd 'at' HH:mm",default:"LLLL dd, yyyy 'at' HH:mm"},today:"Today at ",yesterday:"Yesterday at "}},i=e=>e?n.ou.fromMillis(e,{zone:"Etc/UTC"}).toFormat("H:mm:ss").replace(/^0:/,""):"0",s=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;if(!e)return"";let s=n.ou.fromISO(e,{zone:"utc"}).setZone(r||"local"),l=n.ou.now().setZone(r||"local");if(!t){if(s.hasSame(l,"day"))return"".concat(a["".concat(i||"en")].today," ").concat(s.toFormat("HH:mm"));
1if(s.hasSame(l.minus({days:1}),"day"))return"".concat(a["".concat(i||"en")].yesterday," ").concat(s.toFormat("HH:mm"));if(s.year===l.year)return s.toFormat("".concat(a["".concat(i||"en")].format.this_year),{locale:i||"en"})}return s.toFormat("".concat(a["".concat(i||"en")].format.default),{locale:i||"en"})},l=(e,t,r,a)=>{let i=n.ou.fromISO(e);return(null==a?void 0:a.days)&&(i=i.plus({days:a.days})),i.toFormat(t,{locale:r||"en"})},o=e=>{if(!e)return"";let t=Math.floor(Math.abs(e)/1e3),r=Math.floor(t/3600),n=Math.floor(t%3600/60),a=t%60;return r>0?"".concat(String(r).padStart(2,"0"),":").concat(String(n).padStart(2,"0"),":").concat(String(a).padStart(2,"0")):"".concat(n,":").concat(String(a).padStart(2,"0"))}},8131:function(e,t,r){"use strict";r.d(t,{AN:function(){return n.AN},LU:function(){return n.LU},jF:function(){return n.jF},p6:function(){return n.p6}});var n=r(94687);r(62351)},62351:function(e,t,r){"use strict";r.d(t,{k6:function(){return i}});var n=r(6073),a=r.n(n);let i=e=>e?(e=a()().transform(e.trim(),"-").replace(/[^a-zA-Z0-9\-\u0621-\u064A]+/g,"-").replace(/-+/g,"-").replace(/^-/,"").toLocaleLowerCase(),"".concat(e)):""},91878:function(e,t,r){"use strict";r.d(t,{W:function(){return s}});var n=r(66238),a=r(93891),i=r(98898);function s(e,t){return(0,n.ZP)(e,async e=>{try{return await (0,a.K)(e)}catch(e){if(e instanceof i.k)throw e;throw new i.k("An unknown error occurred",500,{originalError:e})}},t)}},72738:function(e,t,r){"use strict";r.d(t,{l:function(){return l}});var n=r(54728),a=r(92964),i=r(53156),s=r(87470);function l(){let e=(0,i.oR)(e=>e.setUserTimezone);return(0,n.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"local";a.Z.set(s.qx.USER_TIMEZONE,t,{path:"/",expires:365}),e(t)},[e])}},98898:function(e,t,r){"use strict";r.d(t,{k:function(){return n}});class n extends Error{constructor(e,t,r){super(e),this.name="FetchError",this.status=t,this.info=r}}},6010:function(e,t,r){"use strict";r.d(t,{a:function(){return s}});var n=r(92964),a=r(87470);async function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{method:r="GET",data:i,headers:s,external:l=!1,...o}=t,d=new Headers({"Content-Type":"application/json","X-Frontend-New-Design":"true",...s});n.Z.get(a.qx.REMEMBER_USER_TOKEN);let c=l?e:"".concat("https://api3.viory.video").concat(e),u={method:r,headers:d,credentials:"include",...o};i&&(u.body=JSON.stringify(i));try{let e=await fetch(c,u);if(!e.ok){let t=await e.json();throw{status:e.status,message:t}}try{return{payload:await e.json(),error:null,isLoading:!1}}catch(e){return{payload:{},error:null,isLoading:!1}}}catch(e){return console.error("API request failed:",e),{payload:{},error:e,isLoading:!1}}}let s={get:(e,t)=>i(e,{...t,method:"GET"}),post:(e,t,r)=>i(e,{...r,method:"POST",data:t}),patch:(e,t,r)=>i(e,{...r,method:"PATCH",data:t}),put:(e,t,r)=>i(e,{...r,method:"PUT",data:t}),delete:(e,t,r)=>i(e,{...r,method:"DELETE",data:t})}},93891:function(e,t,r){"use strict";r.d(t,{K:function(){return i}});var n=r(44588),a=r(98898);let i=async(e,t)=>{var r;let i=new Headers(null==t?void 0:t.headers);i.set("Content-Type","application/json"),i.set("X-Frontend-New-Design","true");let s=null===(r=document.cookie.split("; ").find(e=>e.startsWith("".concat(n.wr,"="))))||void 0===r?void 0:r.split("=")[1];s&&i.set("Authorization","Bearer ".concat(s));let l=await fetch(e,{...t,headers:i,credentials:"include"});if(!l.ok){let e="An error occurred while executing the request.",t={};try{let r=await l.text();try{e=(t=JSON.parse(r)).message||e}catch(t){e=r||e}}catch(e){console.warn("Failed to retrieve error information")}throw new a.k(e,l.status,t)}try{return await l.json()}catch(e){throw console.error("Error parsing JSON:",e),new a.k("Invalid response format from server.",l.status,null)}}},65163:function(e,t,r){"use strict";r.d(t,{B2:function(){return l},LS:function(){return o}});var n=r(95427);let a=["Etc/UTC","Europe/London","Europe/Paris","Europe/Moscow","Asia/Dubai","Asia/Singapore","Asia/Tokyo","Australia/Sydney","Pacific/Auckland","Pacific/Honolulu","America/Anchorage","America/Los_Angeles","America/Denver","America/Chicago","America/Ne
1w_York","America/Sao_Paulo"],i={"Asia/Dubai":"Abu Dhabi"},s=(()=>{try{var e,t;return((null===(e=(t=Intl).supportedValuesOf)||void 0===e?void 0:e.call(t,"timeZone"))||a).map(e=>{try{let t=n.ou.now().setZone(e);if(!t.isValid)return null;let r=i[e]||e.replace(/_/g," ").split("/").pop()||e;return{code:e,offset:t.offset,city:r,formatted:"GMT ".concat(t.toFormat("Z"))}}catch(e){return null}}).filter(e=>null!==e).sort((e,t)=>e.offset-t.offset)}catch(e){return[]}})(),l=()=>s,o=e=>{if(!e)return"GMT";try{let t=n.ou.now().setZone(e);return t.isValid?"GMT ".concat(t.toFormat("ZZ")):"GMT"}catch(e){return"GMT"}}},14849:function(e,t,r){"use strict";var n,a;r.d(t,{q:function(){return n},x:function(){return i}}),(a=n||(n={})).PROJECT_TV_APP_SESSION="project_tv_app_session",a.REMEMBER_USER_TOKEN="remember_user_token",a.LIVE_NOTIFY_FOLLOW="live_notify_follow",a.DEFAULT_VIDEO_FORMAT="default_video_format",a.UAE_REGULATED_CONTENT="uae_regulated_content",a.COOKIE_SETTINGS="cookie_settings",a.FAKE_SIGNED_IN="signed-in",a.USER_TIMEZONE="user_timezone",a.NEXT_LOCALE="NEXT_LOCALE";let i={strictlyNecessary:!0,performance:!0,functional:!0,marketing:!0}},87470:function(e,t,r){"use strict";r.d(t,{qx:function(){return f.q},_5:function(){return d},Ct:function(){return p.C},K_:function(){return u},jx:function(){return c},hB:function(){return m},eG:function(){return o}}),(s=o||(o={}))[s.download=0]="download",s[s.follow=1]="follow",s[s.unfollow=2]="unfollow",s[s.copyLink=3]="copyLink",s[s.add=4]="add",s[s.remove=5]="remove",(l=d||(d={})).FREE="free",l.NORMAL="normal",l.ONE_OFF="one_off",l.REPEATED="repeated",l.TOP_UP="top_up",l.RESTRICTED="restricted";var n,a,i,s,l,o,d,c,u,m,f=r(14849),p=r(57758);(n=c||(c={})).YOUTUBE="youtube",n.FACEBOOK="facebook",n.PERISCOPE="periscope",n.VKONTAKTE="vkontakte",n.CUSTOM_RTMP_HD="custom_rtmp.hd",n.CUSTOM_RTMP_FULL_HD="custom_rtmp.full_hd",n.SRT="srt",n.HLS_FULL_HD="hls_full_hd",n.HLS_DVR="hl
1s_dvr",n.TVU="tvu",(a=u||(u={})).FAILED="failed",a.ACTIVE="active",a.PENDING="pending",a.CREATED="created",a.STARTING="starting",(i=m||(m={})).Exclusive="exclusive",i.Pool="pool",i.NonExclusive="non-exclusive"},57758:function(e,t,r){"use strict";var n,a;r.d(t,{C:function(){return n}}),(a=n||(n={})).LIVE="live",a.NEW="new",a.NEXT="next",a.CONFIRMED="confirmed",a.DELAYED="delayed",a.FINISHED="finished",a.AHEAD="ahead",a.CANCELED="canceled",a.TERMINATED="terminated"},74518:function(e,t){"use strict";t.Z={src:"/_next/static/media/no-image.2df96ffb.png",height:236,width:417,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAMAAABPT11nAAAABlBMVEUCAwQQFx7Dx+/GAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGUlEQVR4nGNgYGBgYAQRYAaUxQhjwEXAagAA8QAKo3JCZgAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:5}}}]);

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.