1/*! 2 3========================================================= 4* Now UI Kit PRO React - v1.0.0 5========================================================= 6 7* Product Page: https://www.creative-tim.com/product/now-ui-kit-pro-react 8* Copyright 2020 Creative Tim (http://www.creative-tim.com) 9 10* Coded by Creative Tim 11 12========================================================= 13 14* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 15 16*/ 17"use strict";(globalThis.webpackChunknautilus_com_pl=globalThis.webpackChunknautilus_com_pl||[]).push([[6269],{25324(e,t,a){a.d(t,{A:()=>I});var s=a(28641),l=a(32767),n=a(60283),i=a(9346),c=a(69967),r=(a(55501),a(8707)),o=a(2041),d=s.forwardRef(function(e,t){var a=e.cellHeight,l=e.children,n=e.classes,o=e.className,d=e.cols,m=void 0===d?2:d,p=e.component,h=void 0===p?"ul":p,x=e.gap,g=void 0===x?4:x,u=e.rowHeight,v=void 0===u?180:u,f=e.spacing,A=e.style,j=(0,c.A)(e,["cellHeight","children","classes","className","cols","component","gap","rowHeight","spacing","style"]),y=f||g,w=a||v;return s.createElement(h,(0,i.A)({className:(0,r.A)(n.root,o),ref:t,style:(0,i.A)({margin:-y/2},A)},j),s.Children.map(l,function(e){if(!s.isValidElement(e))return null;var t=e.props.cols||1,a=e.props.rows||1;return s.cloneElement(e,{style:(0,i.A)({width:"".concat(100/m*t,"%"),height:"auto"===w?"auto":w*a+y,padding:y/2},e.props.style)})}))});const m=(0,o.A)({root:{display:"flex",flexWrap:"wrap",overflowY:"auto",listStyle:"none",padding:0,WebkitOverflowScrolling:"touch"}},{name:"MuiImageList"})(d);var p=a(46146),h=a(41859),x=a(33195),g=function(e,t){var a,s,l,n;e&&e.complete&&(e.width/e.height>e.parentElement.offsetWidth/e.parentElement.offsetHeight?((a=e.classList).remove.apply(a,(0,p.A)(t.imgFullWidth.split(" "))),(s=e.classList).add.apply(s,(0,p.A)(t.imgFullHeight.split(" ")))):((l=e.classList).remove.apply(l,(0,p.A)(t.imgFullHeight.split(" "))),(n=e.classList).add.apply(n,(0,p.A)(t.imgFullWidth.split(" ")))))};var u=s.forwardRef(function(e,t){var a=e.children,l=e.classes,n=e.className,o=(e.cols,e.component),d=void 0===o?"li":o,m=(e.rows,(0,c.A)(e,["children","classes","className","cols","component","rows"])),p=s.useRef(null);return s.useEffect(function(){!function(e,t){e&&(e.complete?g(e,t):e.addEventListener("load",function(){g(e,t)}))}(p.current,l)}),s.useEffect(function(){var e=(0,h.A)(function(){g(p.current,l)});return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}},[l]),s.createElement(d,(0,i.A)({className:(0,r.A)(l.root,n),ref:t},m),s.createElement("div",{className:l.item},s.Children.map(a,function(e){return s.isValidElement(e)?"img"===e.type||(0,x.A)(e,["Image"])?s.cloneElement(e,{ref:p}):e:null})))});const v=(0,o.A)({root:{boxSizing:"border-box",flexShrink:0},item:{position:"relative",display:"block",height:"100%",overflow:"hidden"},imgFullHeight:{height:"100%",transform:"translateX(-50%)",position:"relative",left:"50%"},imgFullWidth:{width:"100%",position:"relative",transform:"translateY(-50%)",to
17p:"50%"}},{name:"MuiImageListItem"})(u);var f=a(37200),A=a(79643),j=a(26176);const y=a(86817),w=(e,t,a)=>{const s=y.cloneDeep(e),l=y.cloneDeep(s[t]);return s[t]=y.cloneDeep(s[a]),s[a]=l,s};var k=a(91793),b=a(56545),z=a(37266),N=a(75322),C=a(85908),E=a(42981);const I=e=>{let{path:t,imageList:a}=e;const i=(0,k.A)(),c=(0,N.ok)(),r=(0,l.A)(),o=(0,n.A)(r.breakpoints.down("sm")),[d,p]=(0,s.useState)([]),[h,x]=(0,s.useState)(0),[g,u]=(0,s.useState)(!1),[y,I]=(0,s.useState)(0),[L,H]=(0,s.useState)(0),{getImageUrl:T}=(0,C.f)(),_=o?3:6;if(L&&y===L){const e=((e,t)=>{let a=0;for(let s=0;s<e.length;s++){const l=e[s].cols;if(a+l>t){let l=t-a;for(let t=s+1;t<e.length;t++){const n=e[t].cols;if(n<=l){if(e=w(e,s,t),a+=n,l-=n,l<=0)break;t--}}l>0&&(e[s].cols=e[s].cols+l),a=0}else a+=l,a===t&&(a=0)}return e})(d,_);p(e),I(0)}(0,s.useEffect)(()=>{i&&(t?(()=>{const e=(0,A.c7)(),a=(0,A.KR)(e,t);(0,A._w)(a).then(t=>{H(t.items.length),t.items.forEach(t=>{(0,A.qk)((0,A.KR)(e,t.fullPath)).then(e=>{d.find(t=>t.src===e)||p(t=>(t.push({src:e,hasLoaded:!1,cols:null,rows:null}),[...t]))}).catch(e=>console.error(e))})}).catch(e=>{console.log(e)})})():a&&async function(e){return(await Promise.all(e.map(e=>T(e)))).map(e=>({src:e,hasLoaded:!1,cols:null,rows:null}))}(a).then(e=>{p(e)}))},[i]);const S=(0,E.jsx)("center",{style:{position:"relative",left:"10%",top:"10px",width:"80%",zIndex:"10000"},children:(0,E.jsx)(b.A,{message:(0,E.jsx)("span",{children:c.gallery.offline}),color:"warning",icon:z.A,close:!0})});return(0,E.jsxs)(E.Fragment,{children:[i?(0,E.jsx)(m,{variant:"quilted",cols:_,gap:15,style:{marginTop:20},children:d.map((e,t)=>(0,E.jsxs)(v,{cols:e.cols||1,rows:e.rows||1,onClick:()=>(e=>{x(e),u(!0)})(t),children:[(0,E.jsx)("img",{className:"gallery-image",src:e.src,alt:e.src,onLoad:t=>((e,t)=>{const a=d.findIndex(t=>t.src===e);d[a]={src:e,hasLoaded:!0,cols:Math.round(t.target.offsetWidth/t.target.offsetHeight),rows:1},I(e=>e+1),p([...d])})(e.src,t)}),(0,E.jsx)("center",{children:(0,E.jsx)("div",{style:{opacity:.7,left:"40%"},children:(0,E.jsx)(j.BM,{height:80,width:80,color:"#00aac1",visible:!e.hasLoaded,secondaryColor:"lightgrey",strokeWidth:4,strokeWidthSecondary:4})})})]},t))}):S,(0,E.jsx)(f.K6,{children:g?(0,E.jsx)(f.aF,{onClose:()=>{x(0),u(!1)},children:(0,E.jsx)(f.Ay,{currentIndex:h,views:d.map(e=>({...e,srcset:e.src,caption:e.title}))})}):null})]})}},49201(e,t,a){a.d(t,{A:()=>g});a(28641);var s=a(70938),l=a(87463),n=a(17513),i=a(16115),c=a(38949),r=a(80471),o=a(66627),d=a(5426),m=a(6396),p=a(42981);const h={...n.A,card:{borderRadius:"5px",position:"relative",minWidth:200,minHeight:200,marginBottom:25,boxShadow:"0 5px 15px -8px rgba(0, 0, 0, 0.24), 0 8px 10px -5px rgba(0, 0, 0, 0.2)","&:after":{content:'""',display:"block",position:"absolute",width:"100%",height:"64%",bottom:0,zIndex:1,background:"linear-gradient(to top, #000, rgba(0,0,0,0))"}},content:{position:"absolute",zIndex:2,bottom:0,width:"100%"}},x=(0,l.A)(h),g=e=>{const t=(0,m.dq)({bgPosition:"top"}),a=x(),l=(0,d.N1)();return(0,p.jsxs)(c.A,{className:(0,s.A)(a.card,l.root),children:[(0,p.jsx)(r.A,{classes:t,image:e.image}),(0,p.jsxs)(i.A,{py:3,px:2,className:a.content,children:[(0,p.jsx)(o.A,{size:"small",variant:"circular",style:{color:"white",backgroundColor:"#00acc1",marginTop:"10px",opacity:"0.7"},children:e.icon}),(0,p.jsx)("br",{}),(0,p.jsx)(o.A,{size:"small",variant:"extended",style:{color:"white",backgroundColor:"#00acc1",marginTop:"10px",opacity:"0.7"},children:e.title})]})]})}},50520(e,t,a){a.r(t),a.d(t,{default:()=>Z});var s=a(28641),l=a(60168),n=a(58448),i=a(89920);var c=a(21707),r=a(30150),o=a(56061),d=a(85908),m=a(87463),p=a(1187),h=a(78499),x=a(64227),g=a(68734),u=a(56774),v=a(56545),f=a(2219),A=a(79643),j=a(75346),y=a(49201);const w=a.p+"static/media/kalendarz.9f9e51c2012aa3cdf594.jpg",k=a.p+"static/media/check.292ef5c155634fb0813e.jpg",b=a.p+"static/media/pdf.cb3c28b8980c212d4de6.jpg",z=a.p+"static/media/map.4a1a66d39c4d36e0de02.jpg",N=a.p+"static/media/photo.24602c1254de61ee3510.jpg";var C=a(2393),E=a(71928),I=a(37143),L=a(97053),H=a(72336),T=a(5599),_=a(52483),S=a(52379);var M=a(42981);const P=(0,M.jsx)(C.A,{}),F=(0,M.jsx)(E.A,{}),W=(0,M.jsx)(I.A,{}),D=(0,M.jsx)(L.A,{}),U=(0,M.jsx)(H.A,{}),$=(0,M.jsx)(T.A,{}),R=e=>{const{language:t}=(0,l.g)(),a=`/${t}/event/${e.eventId}`.replaceAll(" ","_"),{getImageUrl:i}=(0,d.f)(),c=(0,n.d4)(t=>t.eventImages.eventImages[e.eventId]),r=(0,n.d4)(t=>t.downloadDetailsUrls.downloadDetailsUrls[e.eventId]),o=(0,l.Zp)();(0,s.useEffect)(()=>(0,_.$)()),(0,s.useEffect)(()=>
17{if(!r&&e.pdf&&e.eventId&&(i(e.pdf).then(t=>{!function(e,t){S.A.dispatch({type:"downloadDetailsUrls/add",eventId:e,payload:t})}(e.eventId,t)}),!c&&e.photo)){const t=(0,A.c7)();(0,A.qk)((0,A.KR)(t,"kalendarium_photos/"+e.photo)).then(t=>{(0,f.A)(e.eventId,t)}).catch(e=>console.log(e))}},[r,e.pdf,e.eventId,e.photo,c]);let m=null;e.program&&(m=(0,M.jsx)(u.A,{xs:12,sm:12,md:3,onClick:()=>o(a+"/program"),className:"hidden",children:(0,M.jsx)(y.A,{image:w,title:"Program nurkowy",icon:W})},1));let p=null,h=a+"/locations";"chorwacja"!==e.eventClass&&"Chorwacja"!==e.eventClass&&"Croatia"!==e.eventClass&&"croatia"!==e.eventClass||(h=`/${t}/croatia/dive_sites`),(e.locations||h===`/${t}/croatia/dive_sites`)&&(p=(0,M.jsx)(u.A,{xs:12,sm:12,md:3,onClick:()=>o(h),className:"hidden",children:(0,M.jsx)(y.A,{image:z,title:"Miejsca nurkowe",icon:U})},2));let x=null;e.demands&&(x=(0,M.jsx)(u.A,{xs:12,sm:12,md:3,onClick:()=>o(a+"/demands"),className:"hidden",children:(0,M.jsx)(y.A,{image:k,title:"Wymagania",icon:D})},3));let v=null;return r&&(v=(0,M.jsx)(u.A,{xs:12,sm:12,md:3,onClick:()=>window.open(r),className:"hidden",children:(0,M.jsx)(y.A,{image:b,title:"Szczeg\xf3\u0142owy opis",icon:P})},4)),(0,M.jsxs)("div",{style:{marginTop:"20px"},children:[(0,M.jsx)(j.N_,{to:"event details",spy:!0,smooth:!0,offset:-100,duration:500,children:(0,M.jsxs)(g.A,{justifyContent:"flex-start",className:"delayed",children:[m,p,x,v,(0,M.jsx)(u.A,{className:"hidden",xs:12,sm:12,md:3,onClick:()=>{o(e.galleryUrl)},children:(0,M.jsx)(y.A,{image:N,title:"Galeria",icon:$,onClick:()=>{o(e.galleryUrl)}})},5),(0,M.jsx)(u.A,{xs:12,sm:12,md:3,onClick:()=>o(a+"/book"),className:"hidden",children:c?(0,M.jsx)(y.A,{image:c,title:"Zarezerwuj",icon:F}):null},6)]})}),(0,M.jsx)(j.Hg,{name:"event details",children:(0,M.jsx)(l.sv,{})})]})};var V=a(25324),q=a(36910),B=a(51043),K=a(16115),O=a(11513),G=a(66853);const Y=(0,m.A)(B.A),Z=e=>{const{language:t}=(0,l.g)(),[a,m]=(0,s.useState)(null),[f,A]=(0,s.useState)(null),j=(0,n.d4)(t=>t.events.events.find(t=>e.eventId===t.eventId)),{getImageUrl:y}=(0,d.f)();(0,s.useEffect)(()=>(0,_.$)(),[]),(0,s.useEffect)(()=>{if(!j)return null;!f&&j&&A(j.demands),y(j.header_image).then(e=>(0,c.A)(e));const a=`/${t}/gallery/`;switch((0,o.A)(e.eventId),(0,r.A)(!1),j.category){case"kamczatka":m(a+"kamczatka");break;case"bajkal":m(a+"bajkal");break;case"barents":m(a+"barents");break;case"egipt":m(a+"egipt");break;case"meksyk":m(a+"meksyk");break;case"chorwacja":case"kurs":case"malediwy":case"filipiny":default:m(a+"croatia");break;case"orda":m(a+"orda");break;case"kuba":m(a+"kuba")}},[f,j,e.eventId]);const w=Y();let k=(0,M.jsx)(v.A,{message:(0,M.jsxs)("span",{children:[(0,M.jsx)("b",{children:"B\u0141\u0104D:"})," Najpierw wybierz wydarzenie na stronie g\u0142\xf3wnej."]}),close:!0,color:"danger",icon:q.A});if(j){let s=null;j.price_line1&&(s=(0,M.jsx)(u.A,{xs:12,md:10,style:{marginTop:"20px",textAlign:"left"},className:"hidden",children:(0,M.jsxs)(p.A,{variant:"h6",className:w.description,itemProp:"offers",itemScope:!0,itemType:"https://schema.org/Offer",children:[(0,M.jsx)("b",{children:"cena:"})," ",(0,M.jsx)("span",{itemProp:"price",children:j.price_line1})]})}));let l=null;j.price_line2&&(l=(0,M.jsx)(u.A,{xs:12,md:10,style:{marginTop:"20px",textAlign:"left"},className:"hidden",children:(0,M.jsxs)(p.A,{variant:"caption",className:w.description,children:[(0,M.jsx)("b",{children:"op\u0142aty dodatkowe:"})," ",j.price_line2]})}));let n=null;j.available_places&&(n=(0,M.jsx)(u.A,{xs:12,md:10,style:{marginTop:"20px",textAlign:"left"},className:"hidden",children:(0,M.jsxs)(p.A,{variant:"caption",className:w.description,itemProp:"maximumAttendeeCapacity",content:j.available_places,children:[(0,M.jsx)("b",{children:"Ilo\u015b\u0107 miejsc:"})," ",j.available_places," os\xf3b"]})}));let c=null;j.localization&&(c=(0,M.jsx)(u.A,{xs:12,md:10,style:{marginTop:"20px",textAlign:"left"},className:"hidden",children:j.localization.map(e=>(0,M.jsx)(h.Ay,{title:"zobacz lokalizacj\u0119 na mapie",children:(0,M.jsxs)(p.A,{variant:"caption",className:w.description,content:j.miejsca,onClick:()=>window.open("https://www.google.com/maps/place/"+e),children:[(0,M.jsx)("b",{children:(0,M.jsx)(H.A,{})})," ",(0,M.jsx)("span",{itemProp:"location",children:e})]})},e))}));let r=null;j.title&&(r=(0,M.jsx)(u.A,{xs:12,md:10,style:{marginTop:"20px",textAlign:"left"},className:"hidden",children:(0,M.jsx)("h1",{className:w.header1,itemProp:"name",children:j.title})}));let o=null;j.subtitle&&(o=(0,M.jsx)(u.A,{xs:12,md:10,style:{marginTop:"20px",textAlign:"left"},className:"hidden",children:(0,M.jsx)(p.A,{variant:"h5",className:w.description,children:j.subtitle})}));let d=null;j.dateFrom&&(d=(0,M.jsx)("span",{itemProp:"startDate",content:j.dateFrom,children:j.dateFrom}));let m=null;j.dateTo&&(m=(0,M.jsx)("span",{itemProp:"endDate",content:j.dateTo,children:j.dateTo}));const v=(0,M.jsx)(u.A,{xs:12,md:10,style:{marginTop:"20px",textAlign:"left"},className:"hidden",children:(0,M.jsxs)(p.A,{variant:"h5",className:w.description,children:[d," - ",m]})});let f=null;j.content&&(f=j.content.map(e=>"text"===e.type?(0,M.jsx)(G.E,{markdown:e.value,className:w.description}
17,e.value):"images"===e.type?(0,M.jsx)(K.A,{sx:{marginBottom:"2rem"},children:(0,M.jsx)(V.A,{imageList:e.value})},e.value[0]):"video"===e.type?(0,M.jsx)(K.A,{sx:{width:"100%",display:"flex",alignContent:"flex-start"},children:e.value.map(e=>(0,M.jsx)(O.C,{src:e},e))},e.value):void 0));const A="Wyprawa nurkowa z nautilus.com.pl "+j.category,y=`https://nautilus.com.pl/${t}/event/${e.eventId}`.replaceAll(" ","_"),b="nautilus.com.pl - "+e.eventId;k=(0,M.jsxs)("div",{children:[(0,M.jsxs)(i.A,{children:[(0,M.jsx)("title",{children:b}),(0,M.jsx)("meta",{name:"description",content:A}),(0,M.jsx)("meta",{name:"robots",content:""}),(0,M.jsx)("link",{rel:"canonical",href:y})]}),(0,M.jsx)(x.A,{in:!0,children:(0,M.jsxs)("div",{children:[(0,M.jsxs)(g.A,{children:[r,o,v]}),(0,M.jsxs)(g.A,{justifyContent:"flex-start",children:[(0,M.jsx)(u.A,{xs:12,md:10,style:{marginTop:"20px",textAlign:"left"},className:"hidden",children:f}),s,l,c,n,(0,M.jsx)(u.A,{xs:12,md:10,style:{marginTop:"20px"},className:"hidden",children:(0,M.jsx)(R,{eventId:e.eventId,program:j.program,demands:j.category,locations:j.divingPlaces,galleryUrl:a,eventClass:j.category,photo:j.header_photo,pdf:j.pdf})})]})]})})]})}return(0,M.jsx)("div",{className:w.section,itemScope:!0,itemType:"https://schema.org/Event",children:k})}},36910(e,t,a){var s=a(28632),l=a(11435);t.A=void 0;var n=l(a(28641)),i=(0,s(a(1245)).default)(n.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}),"Error");t.A=i},2393(e,t,a){var s=a(28632),l=a(11435);t.A=void 0;var n=l(a(28641)),i=(0,s(a(1245)).default)(n.createElement("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}),"GetApp");t.A=i},72336(e,t,a){var s=a(28632),l=a(11435);t.A=void 0;var n=l(a(28641)),i=(0,s(a(1245)).default)(n.createElement("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"}),"LocationOn");t.A=i},5599(e,t,a){var s=a(28632),l=a(11435);t.A=void 0;var n=l(a(28641)),i=(0,s(a(1245)).default)(n.createElement(n.Fragment,null,n.createElement("circle",{cx:"12",cy:"12",r:"3.2"}),n.createElement("path",{d:"M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"})),"PhotoCamera");t.A=i},97053(e,t,a){var s=a(28632),l=a(11435);t.A=void 0;var n=l(a(28641)),i=(0,s(a(1245)).default)(n.createElement("path",{d:"M14 10H2v2h12v-2zm0-4H2v2h12V6zM2 16h8v-2H2v2zm19.5-4.5L23 13l-6.99 7-4.51-4.5L13 14l3.01 3 5.49-5.5z"}),"PlaylistAddCheck");t.A=i},37143(e,t,a){var s=a(28632),l=a(11435);t.A=void 0;var n=l(a(28641)),i=(0,s(a(1245)).default)(n.createElement(n.Fragment,null,n.createElement("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),n.createElement("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})),"Schedule");t.A=i}}]); 18//# sourceMappingURL=6269.e311d3ab.chunk.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.