"use strict";(self.webpackChunkbongacams=self.webpackChunkbongacams||[]).push([[104],{85435:function(t,e,n){n.d(e,{Mu:function(){return u},N8:function(){return r},Ut:function(){return i},vE:function(){return o}});var i=".bc_scroll_compensation",o="scrollCompensation",r="--bc-scroll-width",u="--bc-scroll-height"},67329:function(t,e,n){n.d(e,{e:function(){return r}});var i=n(31179),o=n(85435),r=function(t){!function(t,e){if(!document.getElementById(o.vE)){var n=document.createElement("style");n.id=o.vE,n.innerHTML="".concat(o.Ut," {margin-right: ").concat(t,"px; margin-bottom: ").concat(e,"px; ").concat(o.N8,": ").concat(t,"px; ").concat(o.Mu,": ").concat(e,"px}"),document.head.appendChild(n)}}(window.innerWidth-document.body.clientWidth,window.innerHeight-document.body.clientHeight),(0,i.mh)(document.body,t);var e=document.querySelector("html");e&&!e.dataset.overflowY&&(e.dataset.overflowY=e.style.overflowY,e.style.overflowY="")}},99948:function(t,e,n){n.d(e,{a:function(){return r}});var i=n(52276),o=n(23385),r=function(){o.X.instance.open(i.L.JOIN_POPUP_MANUAL,{force:!0})}},94778:function(t,e,n){n.d(e,{Ap:function(){return v},HX:function(){return s},M4:function(){return m},Od:function(){return f},U0:function(){return c},Vr:function(){return h},d1:function(){return a},gV:function(){return b},i:function(){return r},iO:function(){return p},mA:function(){return u},tH:function(){return l}});var i=n(15215),o=n(19223);function r(t){var e=t.photos.photos;return e?e.map((function(n,i){return{id:n.id,album:{id:t.header.albumId||0,length:e.length||0,photoIndex:i,title:t.header.albumTitle||""},comments:{count:null==n?void 0:n.commentsCount},loadPhotoCommentListUrl:n.photoPopupDataApiUrl,photo:n.bigImage,photoPreviewThumb:n.thumb,reportButton:n.reportPhotoButton}})):[]}function u(t){var e,n,i,o,r,u,l,a;return{nextGalleryItemFetchData:{id:(null===(i=null===(n=null===(e=t.actions)||void 0===e?void 0:e.nextAlbumApiUrl)||void 0===n?void 0:n.query)||void 0===i?void 0:i.albumId)?t.actions.nextAlbumApiUrl.query.albumId:null,apiUrl:null===(o=t.actions)||void 0===o?void 0:o.nextAlbumApiUrl},prevGalleryItemFetchData:{id:(null===(l=null===(u=null===(r=t.actions)||void 0===r?void 0:r.prevAlbumApiUrl)||void 0===u?void 0:u.query)||void 0===l?void 0:l.albumId)?t.actions.prevAlbumApiUrl.query.albumId:null,apiUrl:null===(a=t.actions)||void 0===a?void 0:a.prevAlbumApiUrl}}}function l(t){return{id:t.commentId,comment:t.comment,commentAvatar:t.profilePhoto,commentUser:t.profileLink,commentUserMembership:t.membershipType,createdAt:t.createdAt,deleteButton:t.deleteButton}}function a(t,e){var n=null==t?void 0:t.findIndex((function(t){return t.album.id===e}));return void 0===n||-1===n?null:n}function c(t,e){var n=null==t?void 0:t.findIndex((function(t){return t.id===e}));return void 0===n||-1===n?null:n}function d(t,e){var n=[];if(null===e)return{modifiedPhotoList:t,sequentialPhotoList:n};for(var i=null,o=null,r=0;r":"","":''},phrase:null==r?void 0:r.message,isLastVersion:!0})}),description:n,fetchApi:null,hint:u.content,previewThumb:{alt:n,src:d.posterUrl},price:l,priceValue:a}}function v(t){return{id:t.id,availableVideo:{duration:t.durationValue,fetchApi:{method:"get",url:t.playVideoPopupDataApiUrl},previewThumb:t.thumb,title:t.caption,videoSourceList:t.videoUrls.map((function(t){return{type:"",url:t}}))},thumbImage:t.thumb}}function f(t){var e=t.video,n=e.duration,i=e.posterUrl,o=e.sources,r=e.title;return{duration:n,fetchApi:null,previewThumb:{alt:r,src:i},title:r,videoSourceList:o}}function h(t){var e=!1;return t?(Object.keys(t).some((function(n){var i=t[n];return!(!(null==i?void 0:i.isPhotoOpen)&&!(null==i?void 0:i.isVideoOpen))&&(e=!0,!0)})),e):e}function b(t){var e=[];return t.forEach((function(t){var n=t.albumId,o=t.albumPhotosPopupDataApiUrl,r=t.photosCount,u=t.protectedAlbumAccessInfo,l=t.thumbImage,a=t.title,c=t.viewsCount,d=t.isAccessGranted;if(t.isProtected&&!d)e.push({id:"".concat(n,"_0"),album:{id:n,length:1,photoIndex:0,protectedAlbumAccessInfo:(0,i.Cl)((0,i.Cl)({},u),{getProtectedAlbumPopupApi:o}),thumbImage:l,title:a,viewsCount:c},comments:null,photo:l,photoPreviewThumb:null,reportButton:null});else for(var s=0;s=0?r:null),[2]}}))}))},updateAlbumToPurchased:function(t){return(0,i.sH)(void 0,[t],void 0,(function(t){var n,o,r=t.albumId,u=t.thumbImageSrc;return(0,i.YH)(this,(function(t){switch(t.label){case 0:return n={albumId:r,thumbImageSrc:u},e(l.actionProfileUpdateMainProtectedAlbumToPurchased)(n),e(l.actionProfileUpdatePhotosProtectedAlbumToPurchased)(n),o={albumId:r,newParams:{thumbImage:{src:u||""},isAccessGranted:!0}},e(d)(o),[4,L(r)];case 1:return t.sent(),[2]}}))}))}}}}},82860:function(t,e,n){n.d(e,{_:function(){return l}});var i=n(19826),o=n(13907),r=n(10733),u=n(85340),l=function(){var t=i.A.dispatch,e=(0,u.h)().sendApiRequest;return{actions:{fetchAlbumViewRequest:function(n,i){e((0,o.ip)("@api_profile_album_view"),{body:JSON.stringify({albumId:n})}).then((function(e){if("success"===(null==e?void 0:e.status)&&i){var o={albumId:n,galleryKey:i};t(r.zO)(o)}}))}}}}}}]);