PageSourceSearch

https://poloniacamp.eu/assets/Agenda-DqAE3wsd.js

js poloniacamp.eu collected 2026-10-04 13:18:59 UTC 8,005 bytes, 2 lines download raw bytes

1import{b as U,d as O,u as x,r as w,j as o,w as W,W as Q,U as Y,n as T,t as R,o as v,aA as z,s as F,v as $,an as q,aB as D}from"./index-Tiw4izbZ.js";import{m as J}from"./react-error-boundary-D1H7mSgt.js";import{a as K,b as X}from"./NoData-CetRRo1l.js";import{j as b,u as Z,L as ee,k as se}from"./Styles-Cyuoy5pv.js";import{u as te}from"./TopbarActions-D9nkWFQM.js";import{A as y,D as ae,E as ie,F as ne,M as oe,O as re,u as le,Q as pe,T as ue}from"./StatusWrapper-hulzzCnv.js";import{I as de}from"./Info-Drvl-8ry.js";import{F as ge,u as me}from"./useWidgetFilterSlot-VRh9a_Q1.js";import{u as ce}from"./useNavItemTitle-DNyW5UfR.js";import{m as H}from"./index-QXwqn1TZ.js";import{E as he}from"./404-C0x7CMot.js";import"./Styles-Bgq9EN57.js";import"./Text-CBH2Yt1s.js";import"./Styles-CUydCnbV.js";import"./Avatar-wWBIScaD.js";import"./Card-D55mFWOx.js";import"./navigation-Bf3XyAFS.js";import"./Icon-49-T9Xkf.js";import"./Checkbox-CRJw8e3S.js";import"./onClickOutside-Clhhb2G4.js";import"./index-CjN5q58W.js";import"./Form-Cc4Gd6V3.js";import"./Flex-CF2x7fBn.js";import"./PrograssBar2-CkE48itS.js";import"./FileType-DQYfODyh.js";import"./Live-3Rju4GNS.js";import"./PrograssBar-845fnGgm.js";import"./Badge-DSx3_LL1.js";import"./SocialMedia-CeJCeYV8.js";import"./ResourcesSimplified-BOeVDSX2.js";import"./index-DHzECjCT.js";import"./usePopperHook-Cr2DXBkC.js";import"./useAgendaRating-6BFu6Z1C.js";import"./Products-CAr8xldu.js";import"./guards-cfvny4Ov.js";import"./ProductModal-D5WFWM_N.js";import"./Styles-ecfwAo56.js";import"./LocalAlert-nnwdOYxk.js";import"./useTranslatedLang-C5oVIWOn.js";import"./BottomTabs-ClNR8ocv.js";import"./Offcanvas-C6QmfkLk.js";import"./hls-Gu6JkD8V.js";import"./useElementDimensions-Dag5Mfyh.js";import"./index-Cb0-5Q0S.js";import"./getStatusWrapper-l6zjzh7k.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"58bf95d86c745a632813342779c71c00d275fc26"};var i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="4db3dde4-f010-4e4b-970f-19ba67009b62",e._sentryDebugIdIdentifier="sentry-dbid-4db3dde4-f010-4e4b-970f-19ba67009b62")}catch{}})();const N=(e,i)=>e.map(s=>{var r;return((r=i.find(u=>u.id===s))==null?void 0:r.label)??s}),fe=(e,i,s)=>{var u;const r=[];if(i&&r.push({key:"search",label:s.labels.search,displayValue:i,onClear:()=>s.setSearchValue("")}),e.speakers.length>0){const p=e.speakers.map(t=>{var c;return((c=s.options.speakers.find(d=>d.id===t))==null?void 0:c.name)??t});r.push({key:"speakers",label:s.labels.speakers,displayValue:b(p),onClear:()=>s.setSelectedFilters("speakers",[])})}if(e.sessions.length>0&&r.push({key:"sessions",label:s.labels.sessions,displayValue:b(N(e.sessions,s.options.sessions)),onClear:()=>s.setSelectedFilters("sessions",[])}),e.venues.length>0&&r.push({key:"venues",label:s.labels.venues,displayValue:b(N(e.venues,s.options.venues)),onClear:()=>s.setSelectedFilters("venues",[])}),e.tags.length>0&&r.push({key:"tags",label:s.labels.tags,displayValue:b(N(e.tags,s.options.tags)),onClear:()=>s.setSelectedFilters("tags",[])}),e.prelectionLanguages.length>0){const p=e.prelectionLanguages.map(t=>s.options.prelectionLanguages[t]??t);r.push({key:"prelectionLanguages",label:s.labels.prelectionLanguages,displayValue:b(p),onClear:()=>s.setSelectedFilters("prelectionLanguages",[])})}if(e.variant){const p=((u=s.options.variants.find(t=>t.id===e.variant))==null?void 0:u.label)??e.variant;r.push({key:"variant",label:s.labels.variant,displayValue:p,onClear:()=>s.setSelectedFilters("variant",null)})}return e.types.length>0&&r.push({key:"types",label:s.labels.types,displayValue:b(N(e.types,s.options.types)),onClear:()=>s.setSelectedFilters("types",[])}),r},ve=(e,i)=>{let s=0;return i&&(s+=1),s+=e.speakers.length,s+=e.sessions.length,s+=e.venues.length,s+=e.tags.length,e.variant!==null&&(s+=1),s+=e.types.length,s+=e.prelectionLanguages.length,s},P="agendaFilters",be=({showFilters:e=!1})=>{var k,S;const{t:i,i18n:s}=U(),{id:r}=O(),u=ce("agenda","schedule.title",r),p=r??"main",t=x(({agenda:n})=>{var j;return(j=n==null?void 0:n.data)==null?void 0:j[p]}),c=y(n=>n.selectedTimezone),d=y(n=>n.selectedFilters),h=y(n=>n.searchValue),g=y(n=>n.setSelectedFilters),L=y(n=>n.setSearchValue),A=w.useMemo(()=>t?H(t,{t:i,language:s.language}):H({speakers:[],sessions:[],venues:[],tags:[],types:[],variants:[],prelectionLanguages:[]},{t:i,language:s.language}),[t,i,s.language]),C=w.useMemo(()=>
1ve(d,h),[d,h]),E=w.useMemo(()=>{var n;return fe(d,h,{labels:{search:i("general.search"),speakers:((n=t==null?void 0:t.customNames)==null?void 0:n.speakers)??i("general.speakers"),sessions:i("general.sessions",{defaultValue:"Sessions"}),venues:i("general.venues"),tags:i("general.tags"),types:i("general.types"),variant:i("general.variant",{defaultValue:"Variant"}),prelectionLanguages:i("general.languages")},options:A,setSelectedFilters:g,setSearchValue:L})},[d,h,(k=t==null?void 0:t.customNames)==null?void 0:k.speakers,A,g,L,i]),f=(((S=t==null?void 0:t.data)==null?void 0:S.length)??0)>0,I=o.jsx(ge,{title:u,widgetId:P,activeFiltersCount:C,showFilterButton:e,chips:E,actions:f?o.jsx(re,{}):void 0,meta:f?o.jsxs("div",{className:"flex flex-col gap-3",children:[o.jsx(ne,{}),o.jsx(oe,{})]}):void 0,footer:f?o.jsx(ie,{}):void 0});return f?o.jsx(ae,{customTimezone:c,children:I}):I},ye=()=>{var M,_;const e=W(),i=Q(),{id:s}=O(),r=x(({attendee:a})=>a.schedules),{ratingsMaxValue:u,ratingsStyle:p}=x(({event:a})=>a==null?void 0:a.settings)??{},{agendaData:t,crudHandler:c,getAgenda:d}=te({activeNavItemId:s??"main"}),{isLoading:h,isError:g}=c("getAgenda"),{state:L,addScheduleItem:A,removeScheduleItem:C}=K(),{setRating:E,isLoading:f}=X(),{setNote:I,editNote:k,isLoadingAdd:S,isLoadingDelete:n,isLoadingEdit:j}=Z();if(me({id:P,scope:"agenda",enabled:(M=t==null?void 0:t.settings)==null?void 0:M.showFilters}),w.useEffect(()=>{d()},[s]),g)return o.jsx(de,{size:"1rem",iconSize:"1rem",title:g==null?void 0:g.message,variant:"error"});if(h||!t||Object.keys(t??{}).length<=1)return o.jsx(Y,{size:"3",container:!0});const B=(_=t==null?void 0:t.settings)==null?void 0:_.showFilters;return o.jsx(ee,{variant:"inset",children:o.jsx(le,{withAddToCalendar:!0,withRatingModal:!0,ratingsMaxValue:u,ratingsStyle:p,isLoadingRating:f,savedAgendaItemsIds:r,isLoadingAddToCalendar:L.status==="PENDING",onAddToCalendarClick:(a,l)=>l?A(a):C(a),withNotes:!0,notesLoading:{isLoadingAdd:S,isLoadingEdit:j,isLoadingDelete:n},onRatingSave:(a,l,m)=>E({id:a,rating:l,comment:m,onFinish:()=>{e(v({id:a,ratingModel:{rating:l,comment:m}})),e(v({id:a,ratingModel:{rating:l,comment:m},activeNavItemId:"main"}))}}),onNoteAdd:({notableId:a,content:l,title:m})=>{a&&I({content:l,title:m,notableId:a,notableType:"schedule",onFinish:V=>{e(v({id:a,notes:[V]})),e(T({type:"success",title:R("general.message.successEdit")}))}})},onNoteEdit:({id:a,notableId:l,title:m,content:V})=>{a&&k({id:a,title:m,content:V,onFinish:G=>{e(v({id:l,notes:[G]})),e(T({type:"success",title:R("general.message.successEdit")}))}})},onAgendaItemClick:a=>i(F(D.item.full,{id:a})),onPersonClick:(a,l)=>i(F(q.profile.full,{profileId:l})),onExhibitorClick:a=>i(F($.item.full,{exhibitorId:a})),withRegister:!0,onRegister:(a,l)=>{e(v({id:a,registration:l})),e(v({id:a,registration:l,activeNavItemId:"main"})),e(z({registrationLimits:l.registrationLimits})),e(z({registrationLimits:l.registrationLimits,activeNavItemId:"main"}))},onError:a=>e(T({type:"danger",title:R("error"),value:a==null?void 0:a.message})),stickyHeaderTopOffset:"-1rem",children:o.jsxs(pe,{agendaData:t,variant:t.settings.template,withFilters:!0,withFiltersControls:!1,withListHeader:!1,withActiveFiltersChips:!1,children:[o.jsx(be,{showFilters:B}),o.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden rounded-lg",children:o.jsx(se,{children:o.jsx(ue,{})})})]})})})},ds=()=>o.jsx(J,{FallbackComponent:he,children:o.jsx(ye,{})});export{ds as default};
2//# sourceMappingURL=Agenda-DqAE3wsd.js.map

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.