my code stock.com

Snippet options

Download: Download snippet as jas.js.
Copy snippet: For this you need a free my code stock.com account.
Embed code : You will find the embed code for this snippet at the end of the page, if you want to embed it into a website or a blog!

webpackJsonp([87],[,,function(e,t,n){var i=n(0),o={PageId:{INDEX_INDEX:"index.index",AUTH_LOGIN:"auth.loginmember",AUTH_SIGNUP:"signup.signupmember",AUTH_SIGNUP_SUCCESS:"signupsuccess.signupsuccess",AUTH_FORGOT_PASSWORD:"auth.forgotpassword",AUTH_CHECK_NEW_PASSWORD:"auth.checknewpassword",CHAT_PERFORMER:"chat.performer",AWARDS_INDEX:"awards.index",FAVORITE_INDEX:"favorite2.index",HISTORY_LISTPAGE_INDEX:"historylistpage.index",SNAPSHOT_LISTPAGE_INDEX:"snapshotlistpage.index",MESSAGESCENTER_INDEX:"messagescenter.index",MESSAGESCENTER_DIRECT_MESSAGE:"messagescenter.directmessage",SETTING_INDEX:"setting.index",MEDIASTATICPAGE_INDEX:"mediastaticpage.show",STATICPAGE_CONTACT_US:"staticpage.contactus",STATICPAGE_FAQ:"staticpage.faq",STATICPAGE_DMCA:"staticpage.dmca",STATICPAGE_TERMS_AND_CONDITIONS:"termsandconditionsstaticpage.show",STATICPAGE_POLICY:"staticpage.policy",STATICPAGE_JOB_OFFER:"staticpage.joboffer",STATICPAGE_FLASH_HELP:"staticpage.flashhelp",JASMIN_LIVECAMS_LISTPAGE_LIVECAMS:"jasminlivecamslistpage.livecams",JASMIN_LANDING:"jasmin.landing",CHANNEL_LISTPAGE_INDEX:"channellistpage.index",MY_CHANNELS_LISTPAGE_INDEX:"mychannelslistpage.index",ERROR_PAGE_404:"error.error404",ERROR_PAGE_500:"error.error500",FIRSTBILL_STANDALONE_INDEX:"firstbillstandalone.index",SETTING_VALIDATE_PASSWORD:"setting.validatepassword",SETTING_VALIDATE_EMAIL:"setting.validateemail",HTML5_CHAT_PERFORMER:"chathtml5.performer",SCHEDULED_SHOWS:"scheduledshowcalendarpage.getcalendarpage"},UrlHelper:{HASH_PREFIX:"!"},Util:{GLOBALEVENT_SET_SCROLL:"set-scroll",LEFT_MOUSE_BUTTON:1,MIDDLE_MOUSE_BUTTON:2,RIGHT_MOUSE_BUTTON:3},User:{GUEST:"guest",FREE_MEMBER:"free",PAYING_MEMBER:"member"},StatusUpdaterComponent:{PERFORMER_STATUS_CHANGES_EVENT:"onPerformersStatusChanges",PERFORMER_STATUS_CHANGES_EVENT_JAWS:"legacy.performer.status.change"},JawsClientComponent:{NAME:"JawsClientComponent"},Ajax:{GLOBALEVENT_BEFORE_REQUEST:"before-request",GLOBALEVENT_REQUEST_COMPLETE:"request-complete",GLOBALEVENT_XDOMAIN_RESPONSE:"xdomain-response",GLOBALEVENT_REMOTE_RESPONSE:"remote-response",GLOBALEVENT_XDOMAIN_REQUEST_COMPLETE:"xdomain-request-complete",GLOBALEVENT_XDOMAIN_REQUEST_ERROR:"xdomain-request-error"},LayoutManager:{LAYOUT_SIZE_SMALL:"layout-small",LAYOUT_SIZE_MIDDLE:"layout-middle",LAYOUT_SIZE_BIG:"layout-big"},LazyLoad:{EVENT_IMAGE_LOADED:"LazyLoad-image-loaded"},TooltipView:{EVENT_SHOW_TOOLTIP:"show-tooltip",EVENT_HIDE_TOOLTIP:"hide-tooltip",EVENT_HIDE_ALL_TOOLTIP:"hide-all-tooltip"},Header:{EVENT_HEADER_DROPDOWN_REFRESH:"header-dropdown-refresh",OPEN_FAVORITES:"open-favorites",GLOBALEVENT_HEADER_REFRESH:"header-refresh",GLOBALEVENT_HEADER_CLICK:"header-click",GLOBALEVENT_HEADER_LOGO_CLICK:"header-logo-click",GLOBALEVENT_LIVE_CAMS_LINK_CLICK:"live-cams-link-click",WINMGR_GROUP_ID:"header",CONFIG_IS_FLASH_DISABLED:"is-flash-disabled",CONFIG_IS_COOKIE_DISABLED:"is-cookie-disabled",CONFIG_IS_BROWSER_OUTDATED:"is-browser-outdated",GLOBALEVENT_SEND_VALIDATION_MAIL:"send-validation-mail",GLOBALEVENT_SEND_VALIDATION_MAIL_DONE:"send-validation-mail-done",GLOBALEVENT_SEND_VALIDATION_MAIL_FAIL:"send-validation-mail-fail"},BasicLayout:{GLOBALEVENT_OPEN_SELECT_LIST:"open-select-list",GLOBALEVENT_OPEN_TOGGLE_BOX:"open-toggle-box",GLOBALEVENT_OPEN_ACCORDION:"open-accordion",GLOBALEVENT_OPEN_FAVORITES:"open-favorites",GLOBALEVENT_OPEN_OVERLAY_CHAT:"open-overlay-chat",GLOBALEVENT_OPEN_AUTOSUGGEST_CHAT:"open-autosuggest-chat",GLOBALEVENT_OPEN_OVERLAY_LOGIN:"open-overlay-login",GLOBALEVENT_OPEN_OVERLAY_FORGOT_PASSWORD:"open-overlay-forgot-password",GLOBALEVENT_OPEN_OVERLAY_SIGNUP:"open-overlay-signup",GLOBALEVENT_METRO_VIEW:"metro-view",GLOBALEVENT_SET_SCROLL:"set-scroll",GLOBALEVENT_ALL_STATIC_LOADED:"all-static-loaded",ACTION_NAME:"payment_router"},BasicController:{GLOBALEVENT_LOGGED_IN:"logged-in",GLOBALEVENT_AFTER_SIGNUP_SUCCESS:"after-signup-success",GLOBALEVENT_APPLICATION_ERROR:"app-error",GLOBALEVENT_OPEN_FAVORITES:"open-favorites",GLOBALEVENT_OPEN_OVERLAY_CHAT:"open-overlay-chat",GLOBALEVENT_CLICK_ON_MODEL_TOOLTIP:"click-on-model-tooltip",GLOBALEVENT_CLICK_ON_FAVORITE_TOOLTIP:"click-on-favorite-tooltip",GLOBALEVENT_THUMBNAIL_CLICK:"thumbnail-click",GLOBALEVENT_GLOBAL_STATUS_CHANGE:"global-status-change",GLOBALEVENT_REFRESH_APPLET_SESSION:"BasicController:refresh-applet-session"},ImageHelper:{SMALL_PROFILE_PICTURE:"120x90",MESSAGES_INBOX_THREAD_PROFILE_PICTURE:"56x42"},IndexIndex:{OPEN_FAVORITES:"open-favorites",OPEN_OVERLAY_CHAT:"open-overlay-chat",EVENT_MEMBERAPPLET_EMBED:"memberapplet-embed",EVENT_SHOW_ONLINE_FAVORITES_COUNT:"show-online-favorites-count",GLOBALEVENT_DO_INIT_LISTPAGE:"do-init-listpage",GLOBALEVENT_HEADER_LOGO_CLICK:"header-logo-click",GLOBALEVENT_THUMBNAIL_SIZE_BUTTON_CLICK:"thumbnail-size-button-click",GLOBALEVENT_TOGGLE_SIDEBAR_BUTTON_CLICK:"toggle-sidebar-button-click"},LoginComponent:{GLOBALEVENT_LOG_IN:"log-in"},FlashExternal:{GLOBALEVENT_APPLET_READY:"flash-external-applet-ready",GLOBALEVENT_APPLET_LOGIN:"flash-external-applet-login",GLOBALEVENT_PRIVATE_START:"flash-external-private-start",GLOBALEVENT_PRIVATE_END:"flash-external-private-end",GLOBALEVENT_PEEK_END:"flash-external-peek-end",GLOBALEVENT_CLOSE_POPUP:"flash-external-close-popup",GLOBALEVENT_CLICK_FAVORITE_BUTTON_IN_APPLET:"flash-external-click-favorite-button-in-applet",GLOBALEVENT_APPLET_STREAM_READY:"flash-external-applet-stream-ready",GLOBALEVENT_PRIVATE_TEASER_LEFT:"flash-external-private-teaser-left",GLOBALEVENT_APPLET_GET_CREDITS_CLICK:"flash-external-applet-get-credits-click",GLOBALEVENT_UPDATE_SCROLL_POSITION:"flash-external-update-scroll-position",GLOBALEVENT_APPLET_CHANNEL_SUBSCRIPTION_CHANGE:"flash-external-applet-channel-subscription",GLOBALEVENT_GET_NEXT_MODEL:"flash-external-get-next-model",GLOBALEVENT_LPP_APPLET_CLICK:"flash-external-lpp-applet-click",GLOBALEVENT_DUMMYAPPLET_ONLOAD:"flash-external-dummyapplet-on-load",GLOBALEVENT_ON_CHECK_MY_WALL_CLICKED:"scroll-to-channel-content",GLOBALEVENT_LAYOUT_MODE_CHANGE:"flash-external-layout-mode-change",GLOBALEVENT_EXIT_FULLSCREEN:"flash-external-exit-fullscreen",GLOBALEVENT_TRACK_BUYING_ROUTE:"flash-external-track-buying-route",GLOBALEVENT_GET_PERFORMER_DETAILS:"flash-external-get-performer-details",GLOBALEVENT_OPEN_MESSAGES:"flash-external-open-messages",GLOBALEVENT_APPLET_SUBSCRIBE:"flash-external-applet-subscribe",GLOBALEVENT_OPEN_LOGIN:"flash-external-open-login",GLOBALEVENT_OPEN_SIGNUP:"flash-external-open-signup",GLOBALEVENT_USE_FLASH:"flash-external-use-flash",GLOBALEVENT_VIP_SHOW_STARTED:"flash-external-vip-show-started",GLOBALEVENT_OUT_OF_CONTENT:"flash-external-out-of-content"},RouteManager:{GLOBALEVENT_DEFAULT_ROUTE_CALLED:"default-route-called",GLOBALEVENT_SUCCESS_NAVIGATE_BACK:"success-navigate-back",GLOBALEVENT_PAGE_LOAD:"RouteManagerPageIsLoad",PROMO_TYPE_SIGNUP:"signup",PROMO_TYPE_LOGIN:"login"},Optimize:{SHOW_OVERLAY:"optimize-event-show-overlay"},AppletResize:{NAME:"AppletResize-plugin",GLOBALEVENT_APPLET_SHOW:"applet-show",GLOBALEVENT_APPLET_HIDE:"applet-hide"},ChannelContentManagerComponent:{NAME:"ChannelContentManagerComponent",GLOBALEVENT_CONTENT_REPLACED:"content-replaced",GLOBALEVENT_GET_CONTENT_SUCCESS:"get-content-success",GLOBALEVENT_GET_CONTENT_ERROR:"ChannelContentManagerComponent:get-content-error",GLOBALEVENT_DISPLAY_CHANNEL_BUTTON_CLICKED:"display-channel-button-clicked",GLOBALEVENT_DISPLAY_CHANNEL_ANIMATION_FINISHED:"display-channel-animation-finished",GLOBALEVENT_REMOVE_CONTENT:"remove-content"},ContentManagerController:{EVENT_CONTENT_REPLACED:"content-replaced",GLOBALEVENT_COMMENTS_LINK_CLICK:"wall-content-click",EVENT_GET_CONTENT_SUCCESS:"get-content-success",EVENT_GET_CONTENT_ERROR:"get-content-error"},ContentManagerView:{GLOBALEVENT_SUBSCRIBE_BUTTON_CLICK:"ContentManagerView:subscribe-button-click",GLOBALEVENT_RENEW_SUBSCRIBE_BUTTON_CLICK:"ContentManagerView:renew-subscribe-button-click",EVENT_CONTENT_REPLACED:"content-replaced",EVENT_CONTENT_FILTER_CLICKED:"content-filter-clicked",ANIMATION_TYPE_HIDE:"hide",ANIMATION_TYPE_SHOW:"show"},HTML5ChatPageController:{NAME:"HTML5ChatPageController"},FlashChatPageComponent:{NAME:"FlashChatPageComponent"},FlashChatPageController:{NAME:"FlashChatPageController"},FlashChatPageControllerAbstract:{NAME:"FlashChatPageControllerAbstract",EVENT_APPLET_RESIZE:"controller-applet-resize",EVENT_WINDOW_RESIZE:"window-resize",GLOBALEVENT_APPLET_TYPE_WILL_CHANGE:"applet-type-will-change",LAYOUT_MODE_NORMAL:"normal",LAYOUT_MODE_FULL:"full",LAYOUT_MODE_FULLSCREEN:"fullScreen"},FlashChatPageModalController:{NAME:"FlashChatPageModalController"},HTML5ChatPageModalController:{NAME:"HTML5ChatPageModalController"},ChatPageControllerAbstract:{NAME:"ChatPageControllerAbstract",EVENT_MODEL_CHANGE:"controller-model-change"},ChatPageModalControllerAbstract:{NAME:"ChatPageModalControllerAbstract"},ChatPageController:{HISTORY_CHANGE:"history-change"},FlashChatPageViewAbstract:{EVENT_WINDOW_RESIZE:"event-window-resize",EVENT_APPLET_MINIMIZE:"event-applet-minimize"},ChatPageModel:{NAME:"ChatPageModel",MEMBERAPPLET_READY_STATE:"memberapplet-ready-state",EVENT_PERFORMER_DETAILS_READY:"performer-details-ready",EVENT_MAX_APPLET_SIZE_CHANGE:"event-max-applet-size-change",EVENT_APPLET_SIZE_CHANGE:"event-applet-size-change",EVENT_LAYOUT_MODE_CHANGE:"event-layout-mode-change"},ChatPageComponentAbstract:{NAME:"ChatPageComponentAbstract",GLOBALEVENT_PRIVATE_START:"private-start",GLOBALEVENT_PRIVATE_END:"private-end",GLOBALEVENT_PRIVATE_TEASER_LEFT:"private-teaser-left",GLOBALEVENT_APPLET_GET_CREDITS_CLICK:"applet-get-credits-click",GLOBALEVENT_APPLET_RESIZE:"applet-resize",GLOBALEVENT_MODEL_CHANGE:"history-state-change",GLOBALEVENT_APPLET_LOAD_READY:"applet-load-ready",GLOBALEVENT_APPLET_RECOMMENDER_CLICK:"applet-recommender-click",GLOBALEVENT_SET_MODEL_FROM_HISTORY:"set-model-from-history",GLOBALEVENT_OPEN_CHAT:"open-chat",GLOBALEVENT_ESC_KEYPRESS:"freechat-esc-press",GLOBALEVENT_CLOSE_CHAT:"close-chat-multi-window",GLOBALEVENT_WINDOW_RESIZE:"ChatPageComponent:window-resize",GLOBALEVENT_HISTORY_CHANGE:"ChatPageComponent:history-change"},ModalComponent:{GLOBALEVENT_MODAL_OPENED:"ModalComponent:modal-opened",GLOBALEVENT_MODAL_CLOSED:"ModalComponent:modal-close",GLOBALEVENT_MODAL_SHOW_LOADER:"ModalComponent:modal-show-loader",GLOBALEVENT_MODAL_BEFORE_OPEN:"ModalComponent:modal-before-open"},ModalController:{MODAL_BACKGROUND_CLICK:"event-modal-background-click",MODAL_ESC_KEY_PRESSED:"event-modal-esc-key-pressed",MODAL_BEFORE_DISPLAYED:"event-modal-before-displayed",MODAL_DISPLAYED:"event-modal-displayed",MODAL_CLOSE_BTN_CLICK:"event-modal-close-btn-click",MODAL_SHOW_LOADER:"event-modal-show-loader"},ModalView:{MODAL_BACKGROUND_CLICK:"event-modal-background-click",MODAL_ESC_KEY_PRESSED:"event-modal-esc-key-pressed",MODAL_BEFORE_DISPLAYED:"event-modal-before-displayed",MODAL_DISPLAYED:"event-modal-displayed",MODAL_CLOSE_BTN_CLICK:"event-modal-close-btn-click",MODAL_SHOW_LOADER:"event-modal-show-loader",ESC_KEY_CODE:27},AutoShowMore:{NAME:"AutoShowMore-plugin",EVENT_SHOW_MORE:"show-more",EVENT_NO_MORE_AUTO_SHOW_MORE:"no-more-auto-show-more",META_IS_SINGLE_PAGE:"isSinglePage",CLASS_SHOW_MORE_BUTTON_VISIBLE:"show_more_visible",DIRECTION_UP:"up",DIRECTION_DOWN:"down"},History:{GLOBALEVENT_HASH_CHANGED:"history-hash-change",GLOBALEVENT_HASH_UPDATE:"history-hash-update"},PerformerView:{EVENT_PERFORMER_ELEMENT_CLICK:"event-performer-element-click",EVENT_VIEW_MOUSEOVER:"event-view-mouseover",EVENT_VIEW_MOUSEOUT:"event-view-mouseout",BLOCK_TYPE_PERFORMER:"performer",BLOCK_TYPE_FAVORITES:"favorites",BLOCK_TYPE_HISTORY:"history",BLOCK_TYPE_SNAPSHOT:"snapshot",BLOCK_TYPE_MYCHANNELS:"my_channels",BLOCK_TYPE_NEW_CATEGORIES:"newCategories",BLOCK_TYPE_AWARDS_PERFORMER:"awardsPerformer",BLOCK_TYPE_AWARDS_PERFORMER_BANNED:"bannedAwardsPerformer",BLOCK_TYPE_JASMIN_CHANNEL:"jasminChannelListPage",BLOCK_TYPE_FEATURED_CHANNEL:"featured",BLOCK_TYPE_RECOMMENDED_CHANNEL:"recommended",BLOCK_TYPE_NEW_CHANNEL:"new_channel",BLOCK_TYPE_RANDOM_CHANNEL:"random",GLOBALEVENT_GETS_FULLY_IN_VIEWPORT:"PerformerView:gets-fully-in-viewport",VIDEO_PREVIEW_SIZE_WIDTH_THRESHOLD:500},PerformerSwapComponent:{GLOBALEVENT_MODEL_SWAP:"model-swap",EVENT_GET_VISIBLE_PERFORMERS:"get-visible-performers",EVENT_SWAP_PERFORMERS:"event-swap-performers"},PerformerSwapController:{EVENT_SWAP_PERFORMERS:"event-swap-performers",STATUS_OFFLINE:0,STATUS_FREE:1},PerformerSwapModel:{EVENT_REQUEST_SUCCESS:"request-success",EVENT_REQUEST_ERROR:"request-error"},StreamPlayerModel:{EVENT_PERFORMER_DETAILS_SUCCESS:"performer-details-success",EVENT_PERFORMER_DETAILS_ERROR:"performer-details-error"},ListPageAbstract:{OPEN_FAVORITES:"open-favorites",OPEN_OVERLAY_CHAT:"open-overlay-chat",EVENT_MEMBERAPPLET_EMBED:"memberapplet-embed",EVENT_SUCCESS_REFRESH_LISTPAGE:"success-refresh-listpage",EVENT_SHOW_ONLINE_FAVORITES_COUNT:"show-online-favorites-count",GLOBALEVENT_DO_INIT_LISTPAGE:"do-init-listpage",GLOBALEVENT_REFRESH_LISTPAGE:"refresh-listpage",GLOBALEVENT_HEADER_LOGO_CLICK:"header-logo-click"},ListPagePlayerController:{EVENT_GET_VISIBLE_FREE_MODELS:"get-visible-free-models",EVENT_GET_FIRST_BIG_THUMBNAIL:"get-first-big-thumbnail",EVENT_MOUSE_OUT:"listpageplayer-stopped",GLOBALEVENT_HTML5_PLAYER_STOPPED:"html5-listpageplayer-stopped"},ListPageControllerAbstract:{EVENT_VISIBLE_FREE_MODELS_READY:"event-visible-free-models-ready",EVENT_VISIBLE_MODELS_READY:"event-visible-models-ready",EVENT_PERFORMER_SWAP:"event-performer-swap",EVENT_FIST_BIG_THUMB_READY:"event-first-big-thumb-ready",EVENT_VIEW_MOUSEOVER:"event-view-mouseover",EVENT_VIEW_MOUSEOUT:"event-view-mouseout",EVENT_PERFORMER_ELEMENT_CLICK:"event-performer-element-click"},ListPageComponentAbstract:{GLOBALEVENT_SEARCH_RESULTS:"globalevent-search-results",GLOBALEVENT_OPEN_OVERLAY_CHAT:"open-overlay-chat",GLOBALEVENT_HEADER_LOGO_CLICK:"header-logo-click"},ListPageModelAbstract:{EVENT_PERFORMER_INIT:"performer-init",EVENT_GET_NEXT_PAGE:"get-next-page",EVENT_DESTROY_ALL:"destroy-all",EVENT_VISIBLE_FREE_MODELS_READY:"event-visible-free-models-ready",EVENT_FIST_BIG_THUMB_READY:"event-first-big-thumb-ready",EVENT_START_LOADING:"start-loading",EVENT_FINISHED_LOADING:"finished-loading",EVENT_VISIBLE_MODELS_READY:"event-visible-models-ready",EVENT_LOGGED_IN:"event-logged-in",EVENT_SWAPPED_COMMERCIAL:"event-swapped-commercial",EVENT_SHOW_MORE_ERROR:"event-show-more-error",GLOBALEVENT_CHANGE_LIST_PAGE_ID:"global-change-list-page-id",PERFORMER_STATUS_ONLINE:1,PERFORMER_STATUS_PRIVATE:2,PERFORMER_STATUS_OFFLINE:0,PERFORMER_SIZE_BIG:"big",PERFORMER_SIZE_SMALL:"small",BLOCK_TYPE_COMMERCIAL:["commercial","awardsModels","payingMemberFreeBonus","freeMemberAsGuestFreeCredits","payingMemberAsGuestFreeBonus","validatedMemberAsGuestFreeCredits","freePeeks","validatedMemberFreeCredits","freeMemberFreeCredits","vibratoyForGuests","vibratoyForMembers","jasminArtForGuests","jasminArtForMembers","sonicboxForGuests","sonicboxForMembers","bestModelsForGuests","bestModelsForMembers","favoritesBanner"]},ListPageViewAbstract:{EVENT_VIEW_MOUSEOVER:"event-view-mouseover",EVENT_SHOW_MORE_BUTTON_CLICK:"show-more-button-click",EVENT_PERFORMER_ELEMENT_CLICK:"event-performer-element-click",EVENT_VIEW_MOUSEOUT:"event-view-mouseout",CLASS_LOADING:"loading",CLASS_SHOW_MORE_BUTTON_VISIBLE:"show_more_visible"},ListPageItemViewAbstract:{EVENT_VIEW_REPLACED:"event-view-replaced"},ThumbnailSlideShowView:{EVENT_SLIDESHOW_CONTAINER_DISPLAYED:"slideshow-container-displayed"},ThumbnailSlideShowModel:{EVENT_SLIDESHOW_IMAGE_CHANGED:"slideshow-image-changed",EVENT_SLIDESHOW_IMAGES_INIT:"slideshow-image-init",EVENT_SLIDESHOW_INSTALLED:"slideshow-installed",EVENT_SLIDESHOW_ADD_NEXT_ELEMENT:"slideshow-add-next-element"},ContentSlider:{EVENT_SHOW:"contentslider-show",EVENT_REFRESH:"contentslider-refresh",EVENT_PREV_BTN_CLICK:"prev-button-click",EVENT_NEXT_BTN_CLICK:"next-button-click"},PerformerModel:{EVENT_STATUS_CHANGE:"status-change",EVENT_LPP_STATUS_CHANGE:"event-lpp-status-change",EVENT_GETS_IN_VIEWPORT:"event-gets-in-viewport",EVENT_GETS_FULLY_IN_VIEWPORT:"event-gets-fully-in-viewport"},MyChannelsPerformerModel:{EVENT_SET_SUBSCRIBED:"set-subscribed",EVENT_SET_UNSUBSCRIBED:"set-unsubscribed"},MyChannelsPerformerView:{EVENT_UNSUBSCRIBE_BUTTON_CLICK:"unsubscribe-button-click",EVENT_RENEW_BUTTON_CLICK:"renew-button-click"},SubscriptionComponent:{SUBSCRIPTION_STATUS_CANCELED:"canceled",SUBSCRIPTION_STATUS_NON_SUBSCRIBED:"non_subscribed",SUBSCRIPTION_STATUS_PENDING:"pending",SUBSCRIPTION_STATUS_SUBSCRIBED:"subscribed",GLOBALEVENT_SUBSCRIPTION_CHANGE:"SubscriptionComponent:subscription-change"},CommercialItemView:{OVERLAY_LOGIN:"login",OVERLAY_SIGNUP:"signup",OVERLAY_QUICKBUY:"quickbuy",OVERLAY_BLOCK_TYPES:["login","signup","quickbuy"],BLOCK_TYPE:{FAVORITES_BANNER:"favoritesBanner"}},PaymentModalComponent:{NAME:"PaymentModalComponent",PAYMENT_ACTION_FIRSTBILL:"firstBill",PAYMENT_ACTION_QUICKBUY:"quickBuy",PAYMENT_ACTION_REDIRECT:"redirect",GLOBALEVENT_PAYMENT_MODAL_CLOSED:"PaymentModalComponent:payment-modal-closed"},SmartBuyActivationComponent:{GLOBALEVENT_ACTIVATE_SMART_BUY_SUCCESS:"globalevent-activate-smart-buy-success",GLOBALEVENT_ACTIVATE_SMART_BUY_FAILURE:"globalevent-activate-smart-buy-failure",GLOBALEVENT_ACTIVATE_SMART_BUY_ERROR:"globalevent-activate-smart-buy-error"},SmartBuyActivationController:{NAME:"SmartBuyActivationController",EVENT_ACTIVATE_SMART_BUY_SUCCESS:"activate-smart-buy-success",EVENT_ACTIVATE_SMART_BUY_FAILURE:"activate-smart-buy-failure",EVENT_ACTIVATE_SMART_BUY_ERROR:"activate-smart-buy-error",EVENT_DEACTIVATE_SMART_BUY_SUCCESS:"deactivate-smart-buy-success"},SmartBuyActivationModel:{NAME:"SmartBuyActivationModel",EVENT_ACTIVATE_SMART_BUY_SUCCESS:"activate-smart-buy-success",EVENT_ACTIVATE_SMART_BUY_FAILURE:"activate-smart-buy-failure",EVENT_ACTIVATE_SMART_BUY_ERROR:"activate-smart-buy-error"},SmartBuyActivationView:{NAME:"SmartBuyActivationView",EVENT_ACTIVATE_SMART_BUY_BUTTON_CLICK:"activate-smart-buy-button-click"},HeaderUpdaterComponent:{GLOBALEVENT_POLL_DONE:"HeaderUpdaterComponent:poll-done"},HeaderUpdaterModel:{EVENT_UNREAD_MESSAGES_COUNT_UPDATE:"header-update-unread-messages"},UpdaterModelAbstract:{EVENT_GET_NEW_CONTENT_SUCCESS:"get-new-content-success"},HeaderModel:{EVENT_HEADER_CONTENT_REQUEST_SUCCESS:"header-content-request-success",EVENT_HEADER_CONTENT_REQUEST_ERROR:"header-content-request-error",EVENT_HEADER_CONTENT_REQUEST_FAILURE:"header-content-request-failure"},UpdaterControllerAbstract:{EVENT_GET_NEW_CONTENT_SUCCESS:"get-new-content-success"},SearchFieldComponent:{CONST_LOADER_STATE_SHOW:"show",CONST_LOADER_STATE_RESET:"reset",CONST_LOADER_STATE_HIDE:"hide",GLOBALEVENT_SEARCHFIELD_SUBMIT:"globalevent-searchfield-submit",GLOBALEVENT_SEARCHFIELD_RESET:"globalevent-searchfield-reset"},CharacterCounter:{EVENT_WARNING_LIMIT_REACHED:"warning-limit-reached",EVENT_MAX_CHAR_LIMIT_REACHED:"max-char-limit-reached",EVENT_WARNING_LIMIT_FALLING:"warning-limit-falling",EVENT_MAX_CHAR_LIMIT_FALLING:"max-char-limit-falling"},SearchFieldController:{EVENT_SEARCHFIELD_RESET:"searchfield-reset",EVENT_SEARCHFIELD_SUBMIT:"searchfield-submit"},SearchFieldModel:{EVENT_PRE_SEARCH_SUCCESS:"pre-search-success",EVENT_PRE_SEARCH_ERROR:"pre-search-error",EVENT_PRE_SEARCH_FAILURE:"pre-search-failure"},SearchFieldView:{EVENT_SEARCHFIELD_SUBMIT:"searchfield-submit",EVENT_SEARCHFIELD_RESET_BTN_CLICK:"searchfield-reset-btn-click"},SearchFilterComponent:{GLOBALEVENT_AJAX_IN_PROGRESS:"ajax-in-progress",GLOBALEVENT_AJAX_FINISHED:"ajax-finished",GLOBALEVENT_SEARCH_SUCCESS:"search-success",GLOBALEVENT_SEARCH_PAGE_ON:"ajax-searchpage-on",GLOBALEVENT_SEARCH_PAGE_OFF:"ajax-searchpage-off",GLOBALEVENT_REFRESH_LISTPAGE:"refresh-listpage",GLOBALEVENT_SEARCH_RESULTS:"globalevent-search-results",GLOBALEVENT_FILTER_BTN_CLICK:"globalevent-filter-btn-click",GLOBALEVENT_FILTER_LOADING_STATE_CHANGE:"globalevent-filter-loading-state-change",GLOBALEVENT_FILTER_WINDOW_STATE_CHANGE:"globalevent-filter-window-state-change",GLOBALEVENT_FILTER_DROPDOWN_DROPDOWN_OPEN:"globalevent-filter-dropdown-open",GLOBALEVENT_FILTER_DROPDOWN_DROPDOWN_CLOSE:"globalevent-filter-dropdown-close",CONST_FILTER_BTN_STATE_OPENED:"opened",CONST_FILTER_BTN_STATE_CLOSED:"closed",CONST_FILTER_WINDOW_STATE_SHOW:"show",CONST_FILTER_WINDOW_STATE_HIDE:"hide"},SearchFilterController:{EVENT_AJAX_IN_PROGRESS:"ajax-in-progress",EVENT_AJAX_FINISHED:"ajax-finished",EVENT_SEARCH_SUCCESS:"search-success",EVENT_SEARCH_RESULTS:"search-results",EVENT_SEARCH_PAGE_ON:"ajax-searchpage-on",EVENT_SEARCH_PAGE_OFF:"ajax-searchpage-off",EVENT_REFRESH_LISTPAGE:"refresh-listpage",EVENT_FILTER_BTN_CLICK:"filter-btn-click",EVENT_LOADING_CHANGE:"filter-loading-change"},SearchFilterModel:{EVENT_SEARCH_SUCCESS:"search-success",EVENT_SEARCH_ERROR:"search-error",EVENT_SEARCH_FAILURE:"search-failure"},SearchFilterView:{EVENT_FILTER_ITEMCLICK:"filterItemClick",EVENT_RESET_FILTERSCLICK:"resetFiltersClick",EVENT_CLOSE_FILTERCLICK:"closeFiltersClick",EVENT_FILTER_ROW_ITEM_CLICK:"filter-row-item-click"},DropDownControllerAbstract:{EVENT_DROPDOWN_MENU_ITEM_CLICK:"dropdown-menu-item-click",EVENT_DROPDOWN_MENU_VISIBILITY_CHANGE:"dropdown-menu-visibility-change",GLOBALEVENT_DROPDOWN_OPEN:"globalevent-dropdown-open",GLOBALEVENT_DROPDOWN_CLOSE:"globalevent-dropdown-close",GLOBALEVENT_DROPDOWN_MENU_BACKGROUND_SHOW:"globalevent-dropdown-menu-background-show",GLOBALEVENT_DROPDOWN_MENU_BACKGROUND_HIDE:"globalevent-dropdown-menu-background-hide"},DropdownViewAbstract:{EVENT_DROPDOWN_MENU_ITEM_CLICK:"dropdown-menu-item-click",EVENT_DROPDOWN_MENU_VISIBILITY_CHANGE:"dropdown-menu-visibility-change",EVENT_DROPDOWN_MENU_BACKGROUND_SHOW:"dropdown-menu-background-show",EVENT_DROPDOWN_MENU_BACKGROUND_HIDE:"dropdown-menu-background-hide"},Confirmation:{EVENT_CONFIRM:"confirmation-confirm",EVENT_CANCEL:"confirmation-cancel"},AutoSuggestViewAbstract:{EVENT_INPUTFIELD_FOCUS:"inputfield-focus",EVENT_INPUTFIELD_KEYUP:"inputfield-keyup",CONST_CHAR_CODE_ENTER:13,CONST_CHAR_CODE_ARROW_UP:38,CONST_CHAR_CODE_ARROW_DOWN:40,EVENT_AUTOSUGGEST_SHOW:"autosuggest-show",EVENT_AUTOSUGGEST_HIDE:"autosuggest-hide"},AutoSuggestModelAbstract:{EVENT_SUGGEST_LIST_REQ_ABORTED:"suggest-list-req-aborted",EVENT_SUGGEST_LIST_REQUESTED:"suggest-list-requested",EVENT_SUGGEST_LIST_SUCCESS:"suggest-list-success",EVENT_SUGGEST_LIST_ERROR:"suggest-list-error",EVENT_SUGGEST_LIST_FAILURE:"suggest-list-failure"},AutoSuggestControllerAbstract:{EVENT_AUTOSUGGEST_SHOW:"autosuggest-show",EVENT_AUTOSUGGEST_HIDE:"autosuggest-hide"},HeaderAutoSuggestController:{EVENT_AUTOSUGGEST_OPEN_CHAT:"open-chat"},HeaderAutoSuggestView:{EVENT_SEARCH_ITEM_CLICK:"search-item-click",EVENT_SUGGEST_ITEM_CLICK:"suggest-item-click"},UserMenuComponent:{GLOBALEVENT_USER_MENU_DROPDOWN_OPEN:"globalevent-user-menu-dropdown-open",GLOBALEVENT_USER_MENU_DROPDOWN_CLOSE:"globalevent-user-menu-dropdown-close",GLOBALEVENT_USER_MENU_LOGOUT_SELECTED:"globalevent-user-menu-logout-selected"},UserMenuController:{EVENT_DROPDOWN_MENU_ITEM_CLICK:"dropdown-menu-item-click",EVENT_MESSAGES_ITEM_SELECTED:"messages-item-selected",EVENT_PROFILE_ITEM_SELECTED:"profile-item-selected",EVENT_ACCOUNT_ITEM_SELECTED:"account-item-selected",EVENT_CREDITS_ITEM_SELECTED:"credits-item-selected",EVENT_LOGOUT_ITEM_SELECTED:"logout-item-selected",EVENT_FREE_TEASER_LOGOUT_SELECTED:"free-teaser-logout-selected"},UserMenuModel:{EVENT_USERMENU_REFRESH_DATA_SUCCESS:"usermenu-refresh-data-success"},UserMenuView:{EVENT_USERMENU_FREE_TEASER_LOGOUT_SELECTED:"usermenu-free-teaser-logout-selected"},EmailValidationComponent:{GLOBALEVENT_SEND_VALIDATION_MAIL_DONE:"send-validation-mail-done",GLOBALEVENT_SEND_VALIDATION_MAIL_FAIL:"send-validation-mail-fail"},EmailValidationController:{EVENT_SEND_VALIDATION_MAIL_DONE:"send-validation-mail-done",EVENT_SEND_VALIDATION_MAIL_FAIL:"send-validation-mail-fail"},EmailValidationView:{EVENT_SEND_VALIDATION_MAIL_DONE:"send-validation-mail-done",EVENT_SEND_VALIDATION_MAIL_FAIL:"send-validation-mail-fail",STATE_DONE:"done",STATE_FAILED:"failed"},ScrollPane:{EVENT_MOUSEWHEEL:"scrollpane-mousewheel",EVENT_SCROLLEND:"scrollpane-scrollend"},FirstBillController:{CALLBACK_METHOD_REDIRECT:"redirectTo",CALLBACK_METHOD_DECLINE:"decline",CALLBACK_METHOD_PROCESSING:"processing",STORAGE_ACTION_NAME:"payment_router",GLOBALEVENT_APPROVED_WINDOW_CLOSE:"firstbill-approved-window-close",GLOBALEVENT_FIRSTBILL_WINDOW_CLOSE:"firstbill-window-close",GLOBALEVENT_FIRSTBILL_PAYMENT_APPROVED:"firstbill-payment-approved",GLOBALEVENT_FIRSTBILL_PAYMENT_DECLINED:"firstbill-payment-declined",GLOBALEVENT_FIRSTBILL_COMPLETE:"firstbill-complete"},FirstBill:{EVENT_GET_SECURE_FRAME_SRC_SUCCESS:"get-secure-frame-src-success",EVENT_IFRAME_READY:"iframe-ready",EVENT_PAYMENT_PENDING:"payment-pending",EVENT_PAYMENT_APPROVED:"payment-approved",EVENT_PAYMENT_DECLINE:"payment-decline",EVENT_PAYMENT_STATUS_UNKNOWN:"payment-unknown",EVENT_GET_DECLINE_BLOCK:"get-decline-block",EVENT_GET_DECLINE_BLOCK_SUCCESS:"get-decline-block-success",EVENT_GET_DECLINE_BLOCK_ERROR:"get-decline-block-error",FIRST_BILL_COMPLETED_ROUTE_PARAM:"firstBillCompleted",FIRST_BILL_RETRY_ROUTE_PARAM:"retry",PAYMENT_STATUS_PENDING:"pending",PAYMENT_STATUS_DECLINED:"declined",PAYMENT_STATUS_APPROVED:"approved",PAYMENT_STATUS_UNKNOWN:"unknown",PAYMENT_STATUS_IDLE:"idle",GLOBALEVENT_FIRSTBILL_DECLINED:"firstbill-declined"},FirstBillComponent:{EVENT_SELECTLIST_ITEM_CLICK:"selectlist-item-click",EVENT_IFRAME_REMOVE_FROM_DOM:"iframe-remove-from-dom",EVENT_IFRAME_EMBED:"iframe-embed",EVENT_CHANGE_PAGE:"change-page",EVENT_WINDOW_CLOSE:"window-close",GLOBALEVENT_CHANGE_CONTENT:"change-content",STATIC_LINK_LIVE_SUPPORT:"https://www.dditservices.com/en/?livesupport=1"},RefreshByOrderComponent:{GLOBALEVENT_REFRESH_LISTPAGE_BYORDER:"refresh-listpage-by-order",EVENT_SUCCESS_REFRESH_LISTPAGE:"success-refresh-listpage"},QuickBuyComponent:{GLOBALEVENT_QUICKBUY_CREDIT_PACKAGE_CLICKED:"globalevent-quickbuy-credit-package-clicked",STATUS_PENDING:"statusPending",SET_QUICKBUY_PURCHASE_STATUS_CHECKER_COMPONENT:"QuickBuyComponent:set-quickbuy-purchase-status-checker-component",ACTION_NAME:"payment_router"},MinimizedQuickBuyPurchaseStatusCheckerView:{EVENT_CLOSE_ACTIVE_MODAL:"close-active-modal",EVENT_CLOSE_MINIMIZED_WINDOW:"close-minimized-window"},QuickBuyPurchaseStatusCheckerModel:{EVENT_PURCHASE_SUCCESS:"purchase-success",EVENT_PURCHASE_FAILED:"purchase-failed",STATUS_APPROVED:"statusApproved",STATUS_PENDING:"statusPending",STATUS_DENIED:"statusDenied",STATUS_ERROR:"statusError",PROLONGED_LIMIT:30,MAX_ALLOWED_LOCAL_ATTEMPT:1},QuickBuyPurchaseStatusCheckerComponent:{GLOBALEVENT_PURCHASE_SUCCESS:"purchase-success",GLOBALEVENT_PURCHASE_FAILED:"purchase-failed",GLOBALEVENT_CLOSE_MINIMIZED_WINDOW:"QuickBuyPurchaseStatusCheckerComponent:close-minimized-window"},QuickBuyPurchaseStatusCheckerController:{EVENT_PURCHASE_SUCCESS:"purchase-success",EVENT_PURCHASE_FAILED:"purchase-failed",EVENT_CLOSE_MINIMIZED_WINDOW:"close-minimized-window"},TimerView:{TIMER_ENDED:"timer-ended"},PhotoViewerComponent:{NAME:"PhotoViewerComponent",GLOBALEVENT_BECOME_PREMIUM_MEMBER_CLICK:"become-channel-premium-member-click",GLOBALEVENT_LIKE_SUCCESS:"like-success",GLOBALEVENT_VIDEO_PLAY_STARTED:"video-play-started",GLOBALEVENT_VIDEO_PLAY_STOPPED:"video-play-stopped"},Form:{GLOBALEVENT_BACKCONN_REQUEST:"backconn-request",GLOBALEVENT_BACKCONN_REQUEST_COMPLETE:"backconn-request-complete",GLOBALEVENT_BACKCONN_REQUEST_ERROR:"backconn-request-error"},ForgotPasswordView:{EVENT_CANCEL_BUTTON_CLICK:"cancel-button-click"},SignUpComponent:{EVENT_SIGNUP_SUCCESS:"signup-success"},SignUpController:{EVENT_SIGNUP_SHOW_SUGGESTED_NAME:"show-suggested-name",EVENT_SIGNUP_HIDE_SUGGESTED_NAME:"hide-suggested-name"},SignUpView:{EVENT_SIGNUP_SHOW_SUGGESTED_NAME:"signup-show-suggested-name",EVENT_SIGNUP_HIDE_SUGGESTED_NAME:"signup-hide-suggested-name",EVENT_LOGIN_LINK_CLICK:"login-link-click"},SignUpModel:{EVENT_CHECKNICK_SUCCESS:"get-check-nick-success",EVENT_CHECKNICK_ERROR:"get-check-nick-error",EVENT_GETNEWUSERNAME_SUCCESS:"get-new-username-success"},SettingsModel:{EVENT_SAVE_SETTINGS_SUCCESS:"save-settings-success",EVENT_SAVE_SETTINGS_ERROR:"save-settings-error"},SettingsView:{EVENT_RENDER_DONE:"render-done"},OverEightTeenView:{EVENT_ACCEPT_OVER_EIGHT_TEEN_BUTTON_CLICK:"accept-over-eight-teen-button-click",EVENT_LEAVE_SITE_BUTTON_CLICK:"leave-site-button-click"},FanClubUnsubscriptionFeedbackComponent:{GLOBALEVENT_FANCLUB_UNSUBSCRIPTION_FEEDBACK_SUBMIT_SUCCESS:"FanClubUnsubscriptionFeedbackComponent:fanclub-unsubscription-feedback-submit-success"},FanClubUnsubscriptionFeedbackController:{FANCLUB_UNSUBSCRIPTION_FEEDBACK_SUBMIT_SUCCESS:"fanclub-unsubscription-feedback-submit-success"},FanClubUnsubscriptionFeedbackModel:{EVENT_SUBMIT_SUCCESS:"submit-success",EVENT_SUBMIT_ERROR:"submit-error",EVENT_SUBMIT_FAILURE:"submit-failure"},FanClubUnsubscriptionFeedbackView:{FANCLUB_UNSUBSCRIPTION_FEEDBACK_SUBMIT_SUCCESS:"fanclub-unsubscription-feedback-submit-success"},MessagesContainer:{MODEL_MESSAGES_TAB_INDEX:1,SUPPORT_MESSAGES_TAB_INDEX:2,NOTIFICATIONS_TAB_INDEX:3},MessagesUpdaterComponent:{GLOBALEVENT_POLL_DONE:"MessagesUpdaterComponent:poll-done",GLOBALEVENT_UPDATE_MODEL_UNREAD_COUNT:"MessagesUpdaterComponent:unread-count"},MessagesCounterStore:{CALLBACK_CHANGE_EVENT:"change"},ModelMessagesConversationComponent:{GLOBALEVENT_OPEN_OVERLAY_CHAT:"ModelMessagesConversationComponent:open-overlay-chat",GLOBALEVENT_INPUT_CHANGE:"ModelMessagesConversationComponent:input-change",GLOBALEVENT_DRAFT_REMOVE:"ModelMessagesConversationComponent:draft-remove",GLOBALEVENT_LAST_MESSAGE_DELETED:"ModelMessagesConversationComponent:last-message-deleted"},MessagesConversationComponentAbstract:{GLOBALEVENT_FIRST_MESSAGE_POST_READY:"MessagesConversationComponentAbstract:first-message-post-ready",GLOBALEVENT_MESSAGE_POST_READY:"MessagesConversationComponentAbstract:message-post-ready"},MessagesListModel:{EVENT_DESTROY_ALL:"destroy-all",EVENT_START_LOADING:"start-loading",EVENT_FINISHED_LOADING:"finished-loading",EVENT_LOAD_PAGE_SUCCESS:"on-load-page-success",EVENT_LOAD_PAGE_ERROR:"on-load-page-error",EVENT_DELETE_MESSAGE_SUCCESS:"delete-message-success",EVENT_DELETE_MESSAGE_ERROR:"delete-message-error"},MessagesListView:{EVENT_SHOW_MORE_BUTTON_CLICK:"show-more-button-click",EVENT_ACTION_BUTTON_CLICK:"on-action-button-click",EVENT_PREPEND_CONTENT_DONE:"prepend-content-done",EVENT_APPEND_CONTENT_DONE:"append-content-done",EVENT_LAST_MESSAGE_DELETED:"last-message-deleted"},MessagesFormModel:{EVENT_COMMENT_POST_READY:"comment-post-ready",EVENT_FIRST_MESSAGE_POST_READY:"first-message-post-ready",EVENT_COMMENT_POST_FAILED:"comment-post-failed"},MessagesFormView:{EVENT_COMMENT_POST_READY:"comment-post-ready",EVENT_FIRST_MESSAGE_POST_READY:"first-message-post-ready",EVENT_INPUT_CHANGE:"input-change",EVENT_INPUT_PLACEHOLDER_CLICK:"input-placeholder-click",ENTER_KEY:13,EVENT_COMMENT_SUBMIT:"comment-submit",EVENT_INPUT_BLUR:"input-blur",EVENT_INPUT_FOCUS:"input-focus",EVENT_INPUT_HEIGHT_CHANGE:"input-height-change",EVENT_ON_BUY_CREDITS_CLICK:"on-buy-credits-click",DRAFT_REMOVED:"draft-removed"},MessagesHeaderView:{EVENT_ACTION_BUTTON_CLICK:"on-action-button-click"},MessagesInboxComponent:{GLOBALEVENT_OPEN_THREAD_START:"open-thread-start",GLOBALEVENT_OPEN_THREAD_SUCCESS:"open-thread-success",GLOBALEVENT_OPEN_NEW_THREAD_START:"open-new-thread-start",GLOBALEVENT_OPEN_NEW_THREAD_SUCCESS:"open-new-thread-success",GLOBALEVENT_OPEN_THREAD_FAILED:"open-new-thread-failed",GLOBALEVENT_AUTOSUGGEST_CLICK:"autosuggest-click-happened",GLOBALEVENT_FIRST_MESSAGE_SEND:"first-message-send",GLOBALEVENT_LAST_INBOX_ITEM_DELETE_SUCCESS:"MessagesInboxComponent:last-inbox-item-delete-success",GLOBALEVENT_SAVE_DRAFT_MESSAGE:"MessagesInboxComponent:save-draft-message",GLOBALEVENT_ACTIVATE_NEW_THREAD_SUCCESS:"MessagesInboxComponent:activate-new-thread-success"},ProfileComponent:{EVENT_SAVE_SUCCESS:"save-success",EVENT_SAVE_ERROR:"save-error",EVENT_SAVE_FAILURE:"save-failure",EVENT_INNER_POPUP_OPEN:"inner-popup-open",EVENT_INNER_POPUP_CLOSE:"inner-popup-close",EVENT_TEXTAREA_EDIT_START:"textarea-edit-start",EVENT_TEXTAREA_EDIT_END:"textarea-edit-end",CONST_CHAR_CODE_ENTER:13,CONST_CHAR_CODE_ESC:27},SelectList:{EVENT_SHOW:"selectlist-show",EVENT_HIDE:"selectlist-hide",EVENT_ITEM_SELECT:"selectlist-item-select"},MemberProfileController:{WINDOW_THUMBNAIL:"thumbnailWindow",WINDOW_MAIN:"imageSliderWindow",WINDOW_UPLOAD:"uploadWindow"},FreeBonusModalComponent:{NAME:"FreeBonusModalComponent",BLOCK_TYPE_FREE_CREDIT:"freeCredits",BLOCK_TYPE_FREE_PEEKS_LEFT:"freePeeksLeft",BLOCK_TYPE_FREE_PEEKS_OUT_OF:"outOfFreePeeks"},FreeBonusView:{EVENT_FIRSTBILL_BUTTON_CLICK:"firstbill-button-click"},ImageGallery:{EVENT_GALLERY_IMAGES_INIT:"gallery-images-init",EVENT_GALLERY_IMAGE_CHANGED:"gallery-image-changed",EVENT_GALLERY_CURRENT_COUNT_CHANGED:"gallery-current-count-changed",EVENT_GALLERY_MAX_COUNT_CHANGED:"gallery-max-count-changed",EVENT_GALLERY_HIDE:"gallery-hide",EVENT_GALLERY_SHOW:"gallery-show",EVENT_GALLERY_IMAGE_LIST_ERROR:"gallery-image-list-error",EVENT_GALLERY_ADD_NEXT_ELEMENT:"gallery-add-next-element",EVENT_GALLERY_ADD_PREV_ELEMENT:"gallery-add-prev-element"},SubscriptionPaymentComponent:{NAME:"SubscriptionPaymentComponent",PAYMENT_ACTION_FIRSTBILL:"firstBill",PAYMENT_ACTION_QUICKBUY:"quickBuy",PAYMENT_ACTION_REDIRECT:"redirect",GLOBALEVENT_SUBSCRIPTION_SUCCESS:"SubscriptionPaymentComponent:subscription-success"},SubscriptionPaymentController:{EVENT_PAYMENT_APPROVED:"payment-approved"},SubscriptionFirstBill:{EVENT_PAYMENT_APPROVED:"payment-approved"},SubscribeComponent:{GLOBALEVENT_SEND_CONFIRMATION_SUCCESS:"SubscribeComponent:send-confirmation-success",GLOBALEVENT_SUBSCRIBE_START:"SubscribeComponent:subscribe-start",GLOBALEVENT_JOIN_ATTEMPT_INSUFFICIENT_CREDIT:"SubscribeComponent:join-attempt-insufficient-credit",GLOBALEVENT_ALREADY_SUBSCRIBED:"SubscribeComponent:already-subscribed"},TabMenuComponent:{GLOBALEVENT_TAB_SWITCH:"tab-switch",GLOBALEVENT_TAB_CONTENT_INSERTED:"tab-content-inserted"},TabMenuController:{EVENT_TAB_SWITCH:"tab-switch",EVENT_TAB_CONTENT_INSERTED:"tab-content-inserted"},TabMenuView:{EVENT_TAB_SWITCH:"tab-switch",EVENT_TAB_CONTENT_INSERTED:"tab-content-inserted"},TabMenuModel:{EVENT_GETCONTENT_SUCCESS:"get-content-success",EVENT_GETCONTENT_ERROR:"get-content-error",EVENT_GETCONTENT_FAILURE:"get-content-failure"},MessagesTabMenuModel:{EVENT_SET_MESSAGES_TAB_UNREAD_COUNT:"set-messages-tab-unread-count"},LikeController:{EVENT_LIKE_SUCCESS:"like-success",EVENT_OPEN_OVERLAY_LOGIN:"open-overlay-login",EVENT_OPEN_OVERLAY_SIGNUP:"open-overlay-signup"},LikeView:{EVENT_LIKE_SUCCESS:"like-success",EVENT_OPEN_OVERLAY_LOGIN:"open-overlay-login",EVENT_OPEN_OVERLAY_SIGNUP:"open-overlay-signup",SUBSCRIBE_NEEDED:"subscribe",LOGIN_NEEDED:"login",DO_LIKE:"like",UNSUCCESSFUL_LIKE:"unsuccessful_like",ANALYTICS_UNSUCCESSFUL_LIKE_NO_REASON:"unsuccessful_like_no_reason",ANALYTICS_UNSUCCESSFUL_LIKE_WITH_REASON:"unsuccessful_like",ANALYTICS_LOGIN_SIGNUP:"login-signup",ANALYTICS_LOGIN:"login",ANALYTICS_SIGNUP:"signup",ANALYTICS_LIKE_SUCCESS:"like-success",ANALYTICS_UNLIKE_SUCCESS:"unlike-success"},LikeModel:{EVENT_LIKE_SUCCESS:"like-success",EVENT_LIKE_ERROR:"like-error",MONGO_ID_LENGTH:24},PhotoViewerController:{EVENT_PHOTO_BLOCK_REPLACED:"photo-block-replaced",EVENT_GET_PHOTO_BLOCK:"get-photo-block",EVENT_JOIN_CHANNEL_BUTTON_CLICK:"join-channel-button-click",EVENT_IS_EXCLUSIVE_CONTENT:"is-exclusive-content",EVENT_COMMENT_BOX_RESIZE:"comment-box-resize",EVENT_PHOTO_CONTENT_CHANGE:"on-photo-content-change"},VideoPlayer:{ICON_PLAY_CLASS:"play",ICON_PAUSE_CLASS:"pause",HIDE_CONTROLS_CLASS:"hide-controls",ICON_MUTED_CLASS:"muted",ICON_FILL_ON_CLASS:"on",SHOW_FILL_BUTTON_CLASS:"show-fill-button",SHOW_FULLSCREEN_BUTTON_CLASS:"show-fullscreen-button",SHOW_VOLUME_CONTROL_CLASS:"show-volume-controls",VIDEO_CONTAINER_CLASS:"video_player_container",MOUSE_MOVE_CONTROLS_HIDE_TIMEOUT:3e3,FULLSCREEN_ENABLED:document.fullscreenEnabled||document.mozFullScreenEnabled||document.webkitFullscreenEnabled||document.msFullscreenEnabled},PhotoViewerView:{EVENT_GOT_NEW_PHOTO_ID:"got-new-photo-id"},PhotoViewerModel:{EVENT_NEW_CONTENT_DETAILS_READY:"new-content-details-ready",VIDEO_DATA_TYPE:"video"},CommentManagerController:{EVENT_OVERLAY_CONTENT_READY:"on-overlay-content-ready",EVENT_INPUT_FOCUS:"input-focus",EVENT_INPUT_BLUR:"input-blur",EVENT_ON_COMMENT_REFRESH:"on-comment-refresh",EVENT_OPEN_OVERLAY_LOGIN:"open-overlay-login",EVENT_OPEN_OVERLAY_SIGNUP:"open-overlay-signup",EVENT_REMOVE_COMMENT:"on-remove-comment",EVENT_COMMENT_FAILED:"on-comment-failed",EVENT_BECOME_PREMIUM_MEMBER_CLICK:"become-premium-member-click"},CommentManagerView:{EVENT_APPEND_CONTENT_DONE:"on-append-content-done",EVENT_REPLACE_CONTENT_DONE:"on-replace-content-done",EVENT_REMOVE_CONTENT_DONE:"on-remove-content-done",EVENT_SCROLL_CONTENT_AFTER_REMOVE:"on-scroll-content-after-remove",EVENT_COMMENT_REFRESH_DONE:"on-comment-refresh-done",EVENT_GET_COMMENT_LIST:"get-comment-list",EVENT_ACTIVATE_COMMENT_BLOCK:"activate-comment-block",EVENT_ON_COMMENT_SUBMIT:"on-comment-submit",EVENT_ON_COMMENT_REMOVE:"on-comment-remove",EVENT_OPEN_OVERLAY_LOGIN:"open-overlay-login",EVENT_OPEN_OVERLAY_SIGNUP:"open-overlay-signup",EVENT_BECOME_PREMIUM_MEMBER_CLICK:"become-premium-member-click",EVENT_ON_INPUT_BLUR:"on-input-blur",EVENT_ON_INPUT_FOCUS:"on-input-focus",EVENT_COMMENT_ANIMATION_DONE:"on-comment-animation-done"},CommentManagerModel:{EVENT_COMMENT_POST_READY:"on-comment-post-ready",EVENT_COMMENT_REMOVE_DONE:"comment-remove-done",EVENT_REFRESH_COMMENTS:"on-comment-refresh",EVENT_COMMENT_POST_FAILED:"on-comment-post-failed"},ModelContentComponent:{NAME:"ModelContentComponent",OPEN_FREECHAT_STANDALONE:"standalone-chat",GLOBALEVENT_PADLOCK_CLICK:"padlock_click",GLOBALEVENT_GET_NEXT_MODEL:"get-next-model",GLOBALEVENT_CHANNEL_PAYMENT_OPEN:"channel-payment-open",PERFORMER_GALLERY_DOM_READY:"performer-gallery-dom-ready",PERFORMER_WALL_DOM_READY:"performer-wall-dom-ready",PAGE_CONTENT_TYPE_CHANNEL:"channel",PAGE_CONTENT_TYPE_BIO:"bio",GLOBALEVENT_INIT_MODEL_WITHOUT_BIO:"init-model-without-bio"},IsotopeLayoutComponent:{NAME:"IsotopeLayoutComponent",GLOBAL_EVENT_WALL_CONTENT_REPLACED:"wall-content-replaced"},IsotopeLayoutController:{EVENT_CONTENT_REPLACED:"content-replaced"},IsotopeLayoutView:{EVENT_PREPEND_FINISHED:"prepend-finished",SMALL_WINDOW_SIZE:1250,MEDIUM_WINDOW_SIZE:1600},ChannelOrderDropdownComponent:{EVENT_DROPDOWN_MENU_ITEM_CLICK:"dropdown-menu-item-click"},BiopageContentManagerComponent:{NAME:"BiopageContentManagerComponent",GLOBALEVENT_GET_CONTENT_SUCCESS:"get-content-success",GLOBALEVENT_BIOPAGE_CONTENT_READY:"biopage-content-ready",GET_CONTENT_ERROR:"get-content-error"},BiopageContentManagerController:{EVENT_RENDER_DONE:"render-done",GLOBALEVENT_GET_CONTENT_SUCCESS:"get-content-success"},BiopageContentManagerModel:{CONTENT_TYPE_CHANNEL:"channel",CONTENT_TYPE_BIOPAGE:"bioPage",EVENT_GET_CONTENT_SUCCESS:"get-content-success",EVENT_GET_CONTENT_ERROR:"get-content-error"},BiopageContentManagerView:{EVENT_RENDER_DONE:"render-done"},PrivateEndContainer:{EVENT_CLOSE:"private-end-close",EVENT_CLOSE_PRIVATE_END_SHOW_APPLET:"private-end-close-show-applet",GLOBALEVENT_PRIVATE_END_RECOMMENDER_CLICK:"private_end_recommender_click",EVENT_BACK_TO_PRIVATE:"back-to-private",EVENT_PRIVATE_END_CONTENT_READY:"private-end-content-ready",EVENT_PRIVATE_END_DESTROYED:"private-end-destroyed"},PrivateEndContainerView:{EVENT_CLOSE:"private-end-close",EVENT_CLOSE_PRIVATE_END_SHOW_APPLET:"private-end-close-show-applet",EVENT_BUY_CREDITS_BUTTON_CLICK:"buy-credits-button-click",EVENT_SURPRISE_BUTTON_CLICK:"surprise-button-click",EVENT_GET_CREDITS_BUTTON_CLICK:"get-credits-button-click",EVENT_FEEDBACK_BUTTON_CLICK:"feedback-button-click",EVENT_BACK_TO_PRIVATE_BUTTON_CLICK:"back-to-private-button-click",EVENT_RENDERED:"private-end-rendered",EVENT_WINDOW_RESIZE:"window-resize",EVENT_VOTE_CLICK:"private-end-vote-click",EVENT_THUMBNAIL_CLICK:"thumbnail-click"},FavoritesComponent:{GLOBALEVENT_FAVORITE_BUTTON_CLICK:"favorite-button-click",GLOBALEVENT_FAVORITE_UPDATE_SUCCESS:"favorite-update-success",GLOBALEVENT_FAVORITE_UPDATE_FAILED:"favorite-update-failed",GLOBALEVENT_FAVORITE_LIST_FULL:"FavoritesComponent:favorite-list-full"},FavoritesController:{EVENT_FAVORITE_UPDATE_SUCCESS:"favorite-update-success",EVENT_SHOW_TOOLTIP_MESSAGE:"show-tooltip-message",EVENT_FAVORITE_LIST_FULL:"favorite-list-full",EVENT_FAVORITE_UPDATE_FAILED:"favorite-update-failed",CONST_STATUS_OK:"ok",CONST_STATUS_ERROR_LOGIN:"error_login",CONST_STATUS_FULL_LIST:"full_list",CONST_SUCCESS_MESSAGE_ADDED:"Added to favorites",CONST_SUCCESS_MESSAGE_REMOVED:"Removed from favorites",CONST_ERROR_MESSAGE_LOGIN:"Only for Members",CONST_ERROR_MESSAGE_FULL:"No more free slots",CONST_ERROR_MESSAGE_DEFAULT:"There was an error"},FavoritesModel:{EVENT_FAVORITE_UPDATE_REQUEST_SUCCESS:"favorite-update-request-success",EVENT_FAVORITE_UPDATE_REQUEST_ERROR:"favorite-update-request-error",EVENT_FAVORITE_UPDATE_REQUEST_FAILURE:"favorite-update-request-failure"},FavoritesView:{CONST_COMMAND_ADD:"add",CONST_COMMAND_REMOVE:"remove"},AwardsCarouselGalleryComponent:{CAROUSELGALLERY_NAV_NEXT_CLICK:"carouselgallery-nav-next",CAROUSELGALLERY_NAV_PREV_CLICK:"carouselgallery-nav-prev",CAROUSELGALLERY_VOTE_BTN_CLICK:"carouselgallery-vote-btn-click",CAROUSELGALLERY_ACTIVE_THUMB_MOUSEOUT:"carouselgallery-activethumb-mouseleave",API_RESPONSE_BANNED:"banned"},Carousel:{LEFT_BUTTON:37,RIGHT_BUTTON:39},Countdown:{EVENT_END:"Countdown-end",EVENT_START:"Countdown-start",EVENT_STOP:"Countdown-start",EVENT_SECOND:"Countdown-second",EVENT_MINUTE:"Countdown-minute",EVENT_HOUR:"Countdown-hour",EVENT_DAY:"Countdown-day",EVENT_WEEK:"Countdown-week",EVENT_YEAR:"Countdown-year"},DMCAModel:{SEND_FORM_SUCCESS:"dmca-send-form-success",SEND_FORM_FAILED:"dmca-send-form-failed",SEND_FORM_ERROR:"dmca-send-form-error"},ImageLoader:{EVENT_SECOND_BLOCK_LOADING:"second-block-loading",EVENT_THIRD_BLOCK_LOADING:"third-block-loading",EVENT_IMAGE_LOAD_ERROR:"imageload-error",EVENT_IMAGE_LOAD_READY:"imageload-ready"},KenBurnsCarouselView:{EVENT_BACKGROUND_IMAGE_CHANGED:"background-image-changed",EVENT_KENBURNS_START:"kenburns-start",EVENT_KENBURNS_STOP:"kenburns-stop"},LandingPageComponent:{GLOBALEVENT_BACKGROUND_IMAGE_CHANGED:"background-image-changed"},LandingPageController:{EVENT_BACKGROUND_IMAGE_CHANGED:"background-image-changed"},LandingPageContentView:{EVENT_HOSTED_CHANNEL_LINK_CLICK:"hosted-channel-link-click"},MyContentSelectComponent:{GLOBALEVENT_REFRESH_LISTPAGE:"refresh-listpage",EVENT_SUCCESS_REFRESH_LISTPAGE:"success-refresh-listpage"},OneClickBuyComponent:{STATUS_PENDING:"statusPending",STATUS_APPROVED:"statusApproved",STATUS_ERROR:"statusError",STATUS_DENIED:"statusDenied",ACTION_NAME:"oneClickBuy",GLOBALEVENT_ONECLICKBUY_PENDING:"oneclickbuy-pending",GLOBALEVENT_ONECLICKBUY_SUCCESS:"oneclickbuy-success",GLOBALEVENT_ONECLICKBUY_ERROR:"oneclickbuy-error"},OneClickBuyController:{EVENT_PURCHASE_PENDING:"purchase-pending",EVENT_PURCHASE_SUCCESS:"purchase-success",EVENT_PURCHASE_ERROR:"purchase-error"},OneClickBuyModel:{EVENT_PURCHASE_START_SUCCESS:"purchase-start-success",EVENT_PURCHASE_START_ERROR:"purchase-start-error",EVENT_CHECK_PURCHASE_STATUS_SUCCESS:"check-purchase-status-success",EVENT_CHECK_PURCHASE_STATUS_ERROR:"check-purchase-status-error"},PrivateEndComponentAbstract:{EVENT_CLOSE:"close",EVENT_SAVE_SUCCESS:"save-success",EVENT_SAVE_ERROR:"save-error"},VoteController:{GLOBALEVENT_VOTE_CLICK:"vote-click",GLOBALEVENT_VOTE_SUCCESS:"vote-success",GLOBALEVENT_VOTE_ERROR:"vote-error"},VoteModel:{VOTE_SUCCESS:"vote-success",VOTE_ERROR:"vote-error"},RatingModel:{EVENT_RATING_SUCCESS:"rating-success"},PrivateEndSurpriseComponent:{EVENT_FETCH_ERROR:"fetch-error",EVENT_BUY_CREDITS_BUTTON_CLICK:"PrivateEndSurpriseComponent:buy-credits-button-click"},PrivateEndQuickBuyComponent:{PURCHASE_PENDING:"purchase-pending",FETCH_BLOCK_FAILED:"PrivateEndQuickBuyComponent:fetch-block-failed"},PrivateEndQuickBuyController:{PURCHASE_PENDING:"purchase-pending",FETCH_BLOCK_FAILED:"fetch-block-failed"},PrivateEndControllerAbstract:{EVENT_CLOSE:"close",EVENT_SAVE_SUCCESS:"save-success",EVENT_SAVE_ERROR:"save-error"},DialogQuickBuyComponent:{PURCHASE_PENDING:"purchase-pending"},PrivateEndQuickBuyView:{RENDER_DONE:"render-done"},PrivateEndViewAbstract:{EVENT_CLOSE_BUTTON_CLICK:"close-button-click"},PrivateEndDialogView:{EVENT_CLOSE:"close"},RenewSubscriptionComponent:{GLOBALEVENT_SEND_CONFIRMATION_SUCCESS:"RenewSubscriptionComponent:send-confirmation-success"},RenewSubscriptionController:{SEND_CONFIRMATION_SUCCESS:"send-confirmation-success",SEND_CONFIRMATION_ERROR:"send-confirmation-error"},RenewSubscriptionView:{EVENT_CONFIRM_BUITON_CLICK:"confirm-button-click"},RenewSubscriptionModel:{EVENT_SEND_CONFIRMATION_SUCCESS:"send-confirmation-success",EVENT_SEND_CONFIRMATION_ERROR:"send-confirmation-error",EVENT_GET_CONFIRMATION_TOOLTIP_ERROR:"get-confirmation-tooltip-error"},Scroller:{EVENT_SCROLL:"scroller-scroll",EVENT_SCROLL_TOP:"scroller-top",EVENT_SCROLL_BOTTOM:"scroller-bottom",SCROLL_DIRECTION_UP:"scroll-direction-up",SCROLL_DIRECTION_DOWN:"scroll-direction-down"},SearchField:{SEARCHFIELD_KEYPRESS:"searchfield-keypress",SEARCHFIELD_KEYUP:"searchfield-keyup",SEARCHFIELD_ENTERPRESSED:"searchfield-enterpress",SEARCHFIELD_BLUR:"searchfield-blur",SEARCHFIELD_FOCUS:"searchfield-focus",SEARCHFIELD_SUBMIT:"searchfield-submit",SEARCHFIELD_RESET:"searchfield-reset",SEARCHFIELD_CLICK:"searchfield-click",SEARCHFIELD_CLICKSUBMIT:"searchfield-submit-click",SEARCHFIELD_ONDELETE_FIELDVALUE:"searchfield-value-delete",SEARCHFIELD_MOUSEOVER_ONSUBMITBUTTON:"searchFieldMouseOverOnSubmitButton",SEARCHFIELD_MOUSEOUT_ONSUBMITBUTTON:"searchFieldMouseOutOnSubmitButton",EVENT_SEARCHFIELD_VALUE_CHANGE:"searchfield-value-change"},SLAMeasurementModel:{EVENT_SENDRATING_SUCCESS:"send-rating-success",EVENT_SENDRATING_ERROR:"send-rating-error",EVENT_SENDRATING_FAILURE:"send-rating-failure"},TabMenu:{EVENT_CHANGE_TAB:"tabmenu-change-tab"},ToggleBox:{EVENT_ROW_CLICK:"rowclick",EVENT_OPEN:"open",EVENT_BEFORE_OPEN:"before-open",EVENT_AFTER_OPEN:"after-open",EVENT_CLOSE:"close",EVENT_BEFORE_CLOSE:"before-close",EVENT_AFTER_CLOSE:"after-close"},TopSlideMessage:{EVENT_SHOW:"topslidemessage-show",EVENT_HIDE:"topslidemessage-hide",GLOBAL_EVENT_SHOW:"global-topslidemessage-show",GLOBAL_EVENT_HIDE:"global-topslidemessage-hide",GLOBAL_EVENT_ANIMATED:"global-topslidemessage-animated",CLOSE_COOKIE_NAME:"warningMessageClosed"},Wall:{USERTYPE_MEMBER:"member"},WarningMessages:{GLOBALEVENT_COOKIES_DISABLED:"cookies-disabled",GLOBALEVENT_FLASH_DISABLED:"flash-disabled",GLOBALEVENT_OUTDATED_BROWSER:"outdated-browser",GLOBALEVENT_IS_ON_MOBILE:"is-on-mobile",BROWSER_GROUP_CHROME_AUTOBLOCKER:0,BROWSER_GROUP_FLASH_CLICK_ENABLE:1,BROWSER_GROUP_FLASH_ENABLE:2,BROWSER_GROUP_FLASH_INSTALL:3},LoginController:{EVENT_LOG_IN:"log-in"},PrivateEndSurpriseController:{EVENT_FETCH_ERROR:"fetch-error",EVENT_BUY_CREDITS_BUTTON_CLICK:"buy-credits-button-click",BUTTON_TYPE_SUBMIT:"submit",BUTTON_TYPE_BUY:"buy"},ProfileController:{NO_PHOTOS:"no-photos",EVENT_PHOTOS_UPLOADED:"photos-uploaded",EVENT_ELEMENTS_CHANGED:"elements-changed",EVENT_ELEMENTS_DELETED:"elements-deleted",EVENT_PROFILE_PHOTO_CHANGED:"profile-photo-changed",EVENT_FILE_LIMIT_CHANGED:"file-limit-changed",EVENT_UPLOADER_CLOSED:"uploader-closed"},RefreshByOrderController:{EVENT_GET_CONTENT_READY:"on-get-content-ready",GLOBALEVENT_GET_CONTENT_READY:"on-get-content-ready"},AwardsListPageComponent:{GLOBALEVENT_VOTE_CLICK:"globalevent-vote-click"},JasminLiveCamsListPageComponent:{GLOBALEVENT_SEARCH_RESULTS:"globalevent-search-results",GLOBALEVENT_OPEN_OVERLAY_CHAT:"open-overlay-chat",GLOBALEVENT_HEADER_LOGO_CLICK:"header-logo-click"},AwardsListPageController:{EVENT_VOTE_BUTTON_CLICK:"event-vote-button-click"},AwardsPerformerModel:{EVENT_STATUS_CHANGE:"status-change"},AwardsListPageView:{EVENT_VOTE_BUTTON_CLICK:"vote-button-click",EVENT_VOTE_MESSAGE_ANIMATION_FINISHED:"event-vote-message-animation-finished"},AwardsPerformerView:{EVENT_VOTE_BUTTON_CLICK:"event-vote-button-click",EVENT_VOTE_MESSAGE_ANIMATION_FINISHED:"event-vote-message-animation-finished"},MyChannelsListPageView:{EVENT_UNSUBSCRIBE_BUTTON_CLICK:"unsubscribe-button-click",EVENT_RENEW_BUTTON_CLICK:"renew-button-click"},MessagesConversationControllerAbstract:{EVENT_FIRST_MESSAGE_POST_READY:"first-message-post-ready",EVENT_MESSAGE_POST_READY:"message-post-ready",EVENT_BUY_CREDIT_CLICK:"buy-credit-click"},MessagesInboxAutoSuggestController:{EVENT_AUTOSUGGEST_CLICK_ON_LIST_ELEM:"autosuggest-click-on-list-elem"},MessagesInboxController:{EVENT_OPEN_THREAD_START:"event-open-thread-start",EVENT_OPEN_NEW_THREAD_SUCCESS:"event-open-new-thread-success",EVENT_OPEN_THREAD_SUCCESS:"event-open-thread-success",EVENT_OPEN_THREAD_FAILED:"event-open-thread-failed",EVENT_LAST_INBOX_ITEM_DELETE_SUCCESS:"last-inbox-item-delete-success",EVENT_ACTIVATE_NEW_THREAD_SUCCESS:"activate-new-thread-success",EVENT_SAVE_DRAFT_MESSAGE:"event-save-draft-message"},ModelMessagesConversationController:{LAYOUT_TYPE_NO_CONVERSATION:"no-conversation",LAYOUT_TYPE_HAS_CONVERSATION:"has-conversation",OPEN_OVERLAY_CHAT:"open-overlay-chat",INPUT_CHANGE:"input-change",DRAFT_REMOVED:"draft-removed",LAST_MESSAGE_DELETED:"last-message-deleted"},MessagesInboxModel:{EVENT_OPEN_EXISTING_THREAD_SUCCESS:"open-existing-thread-success",EVENT_OPEN_EXISTING_THREAD_FAILED:"open-existing-thread-failed",EVENT_DELETE_THREAD_SUCCESS:"delete-thread-success",EVENT_DELETE_THREAD_ERROR:"delete-thread-error",EVENT_OPEN_NEW_THREAD_SUCCESS:"open-new-thread-success",EVENT_UNREAD_THREAD_UPDATE_SUCCESS:"unread-thread-update-success",EVENT_UPDATE_TOTAL_THREADS_COUNTER:"update-total-threads-counter",GLOBALEVENT_ALL_UNREAD_MESSAGE_COUNT_CHANGE:"MessagesInboxModel:all-unread-message-count-change",GLOBALEVENT_OPEN_FIRST_THREAD:"MessagesInboxModel:open-first-thread"},MessagesInboxAutoSuggestView:{EVENT_AUTOSUGGEST_CLICK_ON_LIST_ELEM:"autosuggest-click-on-list-elem"},MessagesInboxView:{EVENT_OPEN_THREAD_START:"open-thread-start",EVENT_OPEN_NEW_THREAD_SUCCESS:"open-new-thread-success",EVENT_OPEN_THREAD_SUCCESS:"open-thread-success",EVENT_OPEN_THREAD_FAILED:"open-thread-failed",EVENT_ACTIVATE_NEW_THREAD_SUCCESS:"activate-new-thread-success",EVENT_LAST_INBOX_ITEM_DELETE_SUCCESS:"last-inbox-item-delete-success"},ContentManagerModel:{EVENT_GET_CONTENT_SUCCESS:"get-content-success",EVENT_GET_CONTENT_ERROR:"get-content-error"},FavoritesNotificationModel:{FAVORITES_STATUS_UPDATE_READY:"on-favorite-status-ready",FAVORITES_STATUS_ON_PAGELOAD:"favorites-status-on-pageload",FAVORITES_LIST_STORED:"favorites-list-stored"},SubscribePendingComponent:{EVENT_SUBSCRIBE_PENDING:"SubscribePendingComponent:subscribe-pending",EVENT_SUBSCRIBED:"SubscribePendingComponent:subscribed",EVENT_SUBSCRIBE_FAILED:"SubscribePendingComponent:subscribe-failed"},SubscribePendingController:{EVENT_SUBSCRIBE_PENDING:"subscribe-pending",EVENT_SUBSCRIBED:"subscribed",EVENT_SUBSCRIBE_FAILED:"subscribe-failed"},SubscribePendingModel:{EVENT_SUBSCRIBE_PENDING:"subscribe-pending",EVENT_SUBSCRIBED:"subscribed",EVENT_CHANNEL_UNSUBSCRIBED:"channel-unsubscribed",EVENT_CHANNEL_SUBSCRIBE_FAILED:"channel-subscribe-failed",EVENT_CHANNEL_SUBSCRIBE_BLOCKED:"channel-subscribe-blocked",EVENT_GET_SUBSCRIPTION_TYPE_DONE:"get-subscription-type-done",EVENT_GET_LOGIN_TOOLTIP_DONE:"get-login-tooltip-done",EVENT_GET_CONFIRMATION_TOOLTIP_DONE:"get-confirmation-tooltip-done"},AutoSuggest:{NAME:"AutoSuggest-plugin",GLOBALEVENT_AUTOSUGGEST_SHOW:"autosuggest-show",GLOBALEVENT_AUTOSUGGEST_HIDE:"autosuggest-hide",GLOBALEVENT_AUTOSUGGEST_CLICK_ON_LIST_ELEM:"autosuggest-click-on-list-elem",EVENT_AUTOSUGGEST_CLICK_ON_LIST_ELEM:"autosuggest-click-on-list-elem",EVENT_AUTOSUGGEST_NAME_SELECTION:"autosuggest-name-selection",EVENT_AUTOSUGGEST_PRESEARCH_SUCCES:"autosuggest-presearch-success",EVENT_AUTOSUGGEST_SHOW:"autosuggest-show",EVENT_AUTOSUGGEST_ESC_PRESS:"autosuggest-esc-press",EVENT_AUTOSUGGEST_DELETE_BUTTON_CLICK:"autosuggest-delete-button-click",EVENT_AUTOSUGGEST_SEARCH:"search",LIST_TYPE_NAME:"name",LIST_TYPE_TAG:"tag",LIST_TYPE_DIRECT_SEARCH:"search_for",ACTION_SEARCHPICK:"searchPick",ACTION_SEARCHPICK_NAME:"searchPickName",ACTION_SEARCH_KEYWORD:"searchKeyword",ACTION_SEARCH_NORESULT:"noResult",ERROR_SEARCH_NORESULT:"no_result",MIDDLE_MOUSE_BUTTON_CLICKED:2},Favorites:{BUTTON_CLICK:"click",STATUS_OK:"ok",STATUS_LOGIN_ERROR:"error_login",STATUS_UNKNOWN_ERROR:"error_unknown",STATUS_FULL_LIST:"full_list",EVENT_FAVORITE_BUTTON_UPDATE:"favorite-button-update",EVENT_CHANGE_TO_ONLINE:"favorite-change-to-online",GLOBALEVENT_FAVORITE_ADDED:"new-favorite-added"},HeaderMenu:{EVENT_HEADER_DROPDOWN_STATES:"header-dropdown-states"},ModelName:{EVENT_DISPLAY_MODEL_NAME:"display-model-name"},PerformerSwap:{NAME:"PerformerSwap-plugin",EVENT_SWAPPED_PERFORMERS:"event-swapped-performers"},SubscriptionService:{ERROR:"error",FAILURE:"failure"},SubscribeController:{URL_SUBSCRIBE:"ChannelSubscription/Subscribe",URL_UNSUBSCRIBE:"ChannelUnsubscribe/Unsubscribe",SUBSCRIPTION_TYPE_FIRSTBILL:"first_bill",SUBSCRIPTION_TYPE_REBILL:"rebill",SUBSCRIPTION_TYPE_ALREADY_SUBSCRIBED:"already_subscribed",EVENT_SUBSCRIBE_START:"subscribe-start",EVENT_JOIN_ATTEMPT_INSUFFICIENT_CREDIT:"join-attempt-insufficient-credit",EVENT_ALREADY_SUBSCRIBED:"already-subscribed"},SubscriptionController:{EVENT_SUBSCRIBE_BUTTON_CLICK:"subscribe-button-click"},SubscribeModel:{EVENT_SUBSCRIBE_START:"subscribe-start",EVENT_SUBSCRIBE_FAILED:"subscribe-failed",EVENT_INSUFFICIENT_CREDIT:"insufficient-credit",EVENT_GET_SUBSCRIPTION_TYPE_DONE:"get-subscription-type-done",EVENT_GET_LOGIN_TOOLTIP_DONE:"get-login-tooltip-done",EVENT_GET_CONFIRMATION_TOOLTIP_DONE:"get-confirmation-tooltip-done"},SubscriptionButtonModel:{EVENT_STATUS_CHANGE:"status-change"},SubscriptionModel:{EVENT_STATUS_CHANGE:"status-change"},SubscriptionButtonViewAbstract:{EVENT_BUTTON_CLICK:"button-click",EVENT_RENDER_CONTENT_DONE:"render-content-done",EVENT_BUTTON_LOADER_SHOW:"button-loader-show",EVENT_BUTTON_LOADER_HIDE:"button-loader-hide"},AwardsSubscriptionButtonView:{EVENT_BUTTON_CLICK:"button-click",EVENT_RENDER_CONTENT_DONE:"render-content-done"},MyFanClubsSubscriptionButtonView:{EVENT_BUTTON_CLICK:"button-click",EVENT_RENDER_CONTENT_DONE:"render-content-done"},SubscribeView:{EVENT_CONFIRM_BUITON_CLICK:"confirm-button-click",EVENT_LOGIN_BUITON_CLICK:"login-button-click",EVENT_SIGNUP_BUITON_CLICK:"signup-button-click"},SubscriptionButtonView:{EVENT_BUTTON_CLICK:"button-click",EVENT_RENDER_CONTENT_DONE:"render-content-done"},FavoritesNotificationView:{EVENT_SOMEONE_HAS_COME_ONLINE:"someone-has-come-online"},LoginView:{EVENT_RESET_PASSWORD_CLICK:"reset-password-link-click",EVENT_SIGNUP_LINK_CLICK:"signup-link-click"},PrivateEndFeedBackView:{EVENT_SUBMIT_BUTTON_CLICK:"submit-button-click"},PrivateEndSurpriseView:{EVENT_FETCH_ERROR:"fetch-error",EVENT_SEND_SURPRISE_BUTTON_CLICK:"send-surprise-button-click",EVENT_BUY_CREDITS_BUTTON_CLICK:"buy-credits-button-click",EVENT_DECREASE_VIP_CREDIT_AMOUNT_CLICK:"decrease-vip-credit-amount-click",EVENT_INCREASE_VIP_CREDIT_AMOUNT_CLICK:"increase-vip-credit-amount-click"},AwardsIndex:{GLOBALEVENT_DO_INIT_LISTPAGE:"do-init-listpage"},ChannelListpageIndex:{OPEN_FAVORITES:"open-favorites",OPEN_OVERLAY_CHAT:"open-overlay-chat",EVENT_MEMBERAPPLET_EMBED:"memberapplet-embed",EVENT_SUCCESS_REFRESH_LISTPAGE:"success-refresh-listpage",EVENT_SHOW_ONLINE_FAVORITES_COUNT:"show-online-favorites-count",GLOBALEVENT_DO_INIT_LISTPAGE:"do-init-listpage",GLOBALEVENT_REFRESH_LISTPAGE:"refresh-listpage",GLOBALEVENT_HEADER_LOGO_CLICK:"header-logo-click"},Favorite2Index:{STANDALONE_FAVORITES_OPEN:"standalone-favorites-open",STANDALONE_FAVORITES_ORDER:"standalone-favorites-order"},HistoryListPageIndex:{STANDALONE_FAVORITES_OPEN:"standalone-favorites-open",STANDALONE_FAVORITES_ORDER:"standalone-favorites-order"},ChatModalComponent:{NAME:"ChatModalComponent"},SettingsModalComponent:{NAME:"SettingsModalComponent"},MessagesModalComponent:{NAME:"MessagesModalComponent"},BirthdayModalComponent:{NAME:"BirthdayModalComponent"},SmartBuyActivationModalComponent:{NAME:"SmartBuyActivationModalComponent"},ProfileModalComponent:{NAME:"ProfileModalComponent"},OverEightTeenModalComponent:{NAME:"OverEightTeenModalComponent"},FanClubUnsubscriptionFeedbackModalComponent:{NAME:"FanClubUnsubscriptionFeedbackModalComponent"},RefreshWindowModalComponent:{NAME:"RefreshWindowModalComponent"},PromoModalComponent:{NAME:"PromoModalComponent"},PromoController:{NAME:"PromoController"},ImageGalleryModalComponent:{NAME:"ImageGalleryModalComponent"},PaymentSuccessModalComponent:{NAME:"PaymentSuccessModalComponent"},PaymentFailedModalComponent:{NAME:"PaymentFailedModalComponent"},PaymentPendingModalComponent:{NAME:"PaymentPendingModalComponent"},PromoComponent:{NAME:"PromoComponent"},SignUpModalComponent:{NAME:"SignUpModalComponent"},LoginModalComponent:{NAME:"LoginModalComponent"},LoggedOutModalComponent:{NAME:"LoggedOutModalComponent"},ForgotPasswordModalComponent:{NAME:"ForgotPasswordModalComponent"},StaticPageContactUs:{SUPPORT_CHAT_OPENED:"support-chat-opened"},StaticPageFlashHelp:{NAME:"page.flashhelp"},FormDecorator:{NAME:"FormDecorator-plugin"},AutoShowMoreScroller:{NAME:"AutoShowMoreScroller-plugin"},InputHint:{NAME:"InputHint"},StaticPageJobOffer:{NAME:"StaticPageJobOffer"},PhotoViewerModalComponent:{NAME:"PhotoViewerModalComponent"},PrivateEndDialogController:{EVENT_CLOSE:"PrivateEndDialogController:close"},WindowAssistant:{GLOBALEVENT_DROPDOWN_OPEN:"globalevent-dropdown-open",GLOBALEVENT_DROPDOWN_CLOSE:"globalevent-dropdown-close"},CommercialUrl:{SONICBOX:"http://sonicbox.com",BESTMODELS:"https://bestmodels.com"},Flash:{PLUGIN_BLOCKED:"flash-plugin-blocked",PLUGIN_NOT_FOUND:"flash-plugin-not-found",PLUGIN_ENABLED:"flash-plugin-enabled",USE_FLASH_COOKIE:"useFlash",WARNING_CLOSED:"flash-warning-closed"},BrowserHelper:{MIN_VERSION_CHROME_DEFAULT_HTML5_PLAYER:55,MIN_VERSION_CHROME_HTML5_PLAYER:53,MIN_VERSION_CHROME_FLASH_ENABLE_CLICK:56,MIN_VERSION_CHROME_FLASH_VERSION_CHECK_BLOCKED:56,MIN_VERSION_FIREFOX_HTML5_PLAYER:47,MIN_VERSION_MAC_SAFARI_HTML5_PLAYER:601,MAX_VERSION_CHROME_FLASH_ENABLE_POPUP:55},BrowserEvents:{VISIBILITY_CHANGE:"visibilitychange"},HTML5ChatPageComponent:{NAME:"HTML5ChatPageComponent",APPLET_SIZE_STORAGE_LABEL:"html5AppletSize",APPLET_VERSION:4,SIZE_FIX:"fix",SIZE_FLUID:"fluid",VIDEO_TAG_ID:"arma-video-helper"},HTML5ChatPageView:{NAME:"HTML5ChatPageView",GLOBALEVENT_SIZE_TYPE_CHANGE:"HTML5ChatPageView:size-type-change"},EnableFlashPluginModalComponent:{NAME:"EnableFlashPluginModalComponent"},EnableSafariAutoPlayModalComponent:{NAME:"EnableSafariAutoPlayModalComponent",TEMPLATE:{NAME:"EnableSafariAutoPlayModalTemplate"}},googleTagManagerData:"dataLayer",appletType:{FLASH:"flash",HTML5:"html5",KEY:"appletType",RECHECK_TIME:3e3},GalleryModalComponent:{NAME:"GalleryModalComponent"},GalleryComponent:{NAME:"GalleryComponent",GLOBALEVENT_FULLSCREEN_BUTTON_CLICK:"GalleryComponent:fullscreen-button-click",GLOBALEVENT_LEAVE_FULLSCREEN:"GalleryComponent:leave-fullscreen"},GalleryController:{NAME:"GalleryController",TYPE_ALBUM:"album",TYPE_VIDEO:"video",TYPE_IMAGE:"image",UID_VIDEOS:"videos",UID_PROFILE_PICS:"profilepics",UID_SNAPSHOTS:"snapshots",VIEW_STATE_ALBUMS:"albums",VIEW_STATE_ALBUM:"album",VIEW_STATE_CONTENT:"content",PRIVACY_TYPE_PUBLIC:"public",PRIVACY_TYPE_EXCLUSIVE:"exclusive",EVENT_FULLSCREEN_BUTTON_CLICK:"fullscreen-button-click",EVENT_LEAVE_FULLSCREEN:"leave-fullscreen",EVENT_RENDER_DONE:"GalleryController-render-done",EVENT_SCROLL_REACHED_BOTTOM:"GalleryController-scroller-reached-bottom",GLOBALEVENT_VIDEO_PLAYER_START:"GalleryController-videoplay-start",GLOBALEVENT_VIDEO_PLAYER_STOP:"GalleryController-videoplay-stop"},GalleryItemViewAbstract:{NAME:"GalleryItemViewAbstract",EVENT_ELEMENT_CLICK:"element-click"},GalleryContentItemView:{NAME:"GalleryContentItemView"},GalleryBaseView:{NAME:"GalleryBaseView",EVENT_GO_BACK_TO_ALBUMS_CLICK:"go-back-to-albums-click",EVENT_GO_BACK_TO_LIST_CLICK:"go-back-to-list-click",EVENT_PREVIOUS_BUTTON_CLICK:"prev-button-click",EVENT_NEXT_BUTTON_CLICK:"next-button-click",EVENT_FULLSCREEN_BUTTON_CLICK:"fullscreen-button-click",EVENT_LEAVE_FULLSCREEN:"leave-fullscreen"},GalleryAlbumItemView:{NAME:"GalleryAlbumItemView",EVENT_ELEMENT_MOUSEOVER:"element-mouseover",EVENT_ELEMENT_MOUSELEAVE:"element-mouseover"},LayoutType:{HOKKAIDO:"hokkaido"},HTML5AppletComponent:{LAYOUT_MODE_MINIMAL:"layout-mode-minimal",LAYOUT_MODE_FULL:"layout-mode-full"},GoogleOptimizeEvents:{WELCOME_CHAT_MESSAGE:"optimize.welcome.chat.message",PRIVATE_END_NORMAL:"optimize.private.end.normal",CHAT_INVITATION:"optimize.chat.invitation",CHAT_TIMEOUT:"optimize.chat.timeout",START_TYPING:"optimize.start.typing"},PerformerHistoryComponent:{NAME:"PerformerHistoryComponent",COOKIE_MODELS_HISTORY:"models-history"},ListPageGalleryComponent:{MESSAGE_NO_IMAGES:"NO IMAGES",MESSAGE_VIEW_IS_NOT_ACTIVE:"VIEW IS NOT ACTIVE",MESSAGE_READY_TO_PLAY:"GALLERY IS READY FOR PLAYING"}};e.exports=Ext.apply(o,{Chaos:i.Constants})},function(e,t,n){var i=n(0),o=n(2),s=n(53),r=function(e){r.superclass.constructor.call(this,e),this.init()};e.exports=Ext.extend(r,Ext.util.Observable,{isScrollingDisabled:!1,isOverflowHidden:!1,entityMap:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},elementsToShiv:["abbr","article","aside","audio","bdi","canvas","data","datalist","details","dialog","figcaption","figure","footer","header","hgroup","main","mark","meter","nav","output","picture","progress","section","summary","template","time","video"],_isGecko40:null,init:function(){this.isWin8=/Windows NT 6.2/.test(navigator.userAgent),this.isX64=/Win64/.test(navigator.userAgent),this.isLocalStorageSupported=i.Storage.hasLocalStorage(),i.addEvents(o.Util.GLOBALEVENT_SET_SCROLL)},isProduct:function(){return-1===window.location.host.indexOf(".dev")&&-1===window.location.host.indexOf(".test")},setEmail:function(e){return e.localPart+"@"+e.domain+"."+e.tld},getEnv:function(){return/\.dev/.test(window.location.host)?"dev":/\.test/.test(window.location.host)?"test":/\.com/.test(window.location.host)?"prod":void 0},isVerticallyInViewport:function(e,t){t||(t=0);var n=e.getBoundingClientRect().top-t,i=e.getBoundingClientRect().bottom+t;return n<window.innerHeight&&i>=0},getBrowserWidth:function(){return Ext.getBody().getWidth()},getBrowserHeight:function(){return Ext.getBody().getHeight()},hasQueryParam:function(e){if("string"==typeof e)return-1!==window.location.search.indexOf(e);console.error("The given parameter is invalid: "+e)},disableScroll:function(e){this.isScrollingDisabled!==e&&(this.isScrollingDisabled=e,e?(void 0===this.lastScrollTop&&(this.lastScrollTop=this.getScrollTop()),this.getScrollTop()!==this.lastScrollTop&&this.currentScrolling(),Ext.fly(window).on("scroll",this.currentScrolling,this),Ext.isMac||Ext.fly(document).on("keydown",this.setScrollDisabled,this),Ext.isGecko?Ext.getBody().on("DOMMouseScroll",this.setScrollDisabled,this):Ext.fly(document).on("mousewheel",this.setScrollDisabled,this)):(Ext.fly(window).un("scroll",this.currentScrolling,this),Ext.isMac||Ext.fly(document).un("keydown",this.setScrollDisabled,this),Ext.isGecko?Ext.getBody().un("DOMMouseScroll",this.setScrollDisabled,this):Ext.fly(document).un("mousewheel",this.setScrollDisabled,this),this.lastScrollTop=void 0),i.fireEvent(o.Util.GLOBALEVENT_SET_SCROLL,{scope:this,isDisabled:e}))},currentScrolling:function(){this.getScrollTop()!==this.lastScrollTop&&window.scrollTo(0,this.lastScrollTop)},setScrollDisabled:function(e){"mousewheel"!==e.type&&"DOMMouseScroll"!==e.type&&("keydown"!==e.type||38!==e.keyCode&&40!==e.keyCode)||e.preventDefault()},getScrollTop:function(){return document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body?document.body.scrollTop:0},getNativeScrollBarWidth:function(){var e=document.createElement("div");e.className="scrollbar-measure",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t},getCurrentLayout:function(){var e=o.LayoutManager.LAYOUT_SIZE_BIG,t=window.innerWidth;return t<=1600?e=o.LayoutManager.LAYOUT_SIZE_SMALL:t>1600&&t<=1900&&(e=o.LayoutManager.LAYOUT_SIZE_MIDDLE),e},setCursor:function(e){var t=Ext.getBody();void 0!==e?t.setStyle("cursor",e):t.setStyle("cursor","default")},getBodyId:function(){return Ext.getBody().id},isCurrentPage:function(e){if(this.currentPageId=this.currentPageId||this.getBodyId(),1!==arguments.length){for(var t in arguments)if(arguments.hasOwnProperty(t)&&this.currentPageId===arguments[t])return!0;return!1}if(i.isString(e))return this.currentPageId===e;if(i.isObject(e)){for(var t in e)if(e.hasOwnProperty(t)&&this.currentPageId===e[t])return!0;return!1}},isStaticPage:function(){return this.currentPageId=this.currentPageId||this.getBodyId(),-1!==this.currentPageId.indexOf("staticpage")},isIndexPage:function(){return this.isCurrentPage(o.PageId.INDEX_INDEX,o.PageId.JASMIN_LIVECAMS_LISTPAGE_LIVECAMS)},isLandingPage:function(){return this.isCurrentPage(o.PageId.JASMIN_LANDING)},isChatPage:function(){return this.isFlashChatPage()||this.isCurrentPage(o.PageId.HTML5_CHAT_PERFORMER)},isChatAppletOnPage:function(){return this.isChatPage()&&!Ext.fly("overlay").isVisible()||this.isPageWithOverlayChat()&&i.Config.get("isChatOpenInOverlay")},isFlashChatPage:function(){return this.isCurrentPage(o.PageId.CHAT_PERFORMER)},isHtml5ChatPage:function(){return this.isCurrentPage(o.PageId.HTML5_CHAT_PERFORMER)},isAutoSuggestDropDownAllowed:function(){return!!i.Config.get("isAutoSuggestEnabled")&&(!!this.isHtml5ChatPage()||(!this.isChatPage()||this.isChatPage()&&(Ext.isEdge||Ext.isChrome||Ext.isSafari)))},isPageWithOverlayChat:function(){return this.isCurrentPage(o.PageId.INDEX_INDEX)||this.isCurrentPage(o.PageId.FAVORITE_INDEX)||this.isCurrentPage(o.PageId.HISTORY_LISTPAGE_INDEX)||this.isCurrentPage(o.PageId.SNAPSHOT_LISTPAGE_INDEX)||this.isCurrentPage(o.PageId.MY_CHANNELS_LISTPAGE_INDEX)||this.isCurrentPage(o.PageId.AWARDS_INDEX)||this.isCurrentPage(o.PageId.MESSAGESCENTER_INDEX)||this.isCurrentPage(o.PageId.JASMIN_LIVECAMS_LISTPAGE_LIVECAMS)||this.isCurrentPage(o.PageId.JASMIN_LANDING)||this.isCurrentPage(o.PageId.SCHEDULED_SHOWS)},isAuthPage:function(){return this.isCurrentPage(o.PageId.AUTH_LOGIN)||this.isCurrentPage(o.PageId.AUTH_SIGNUP)||this.isCurrentPage(o.PageId.AUTH_FORGOT_PASSWORD)},isListPage:function(){return this.isCurrentPage(o.PageId.INDEX_INDEX)},isValidPerformerName:function(e){return/^[a-z0-9]{6,16}$/i.test(e)},isSecurePage:function(){return"https:"===document.location.protocol},setSessionIdOnLinks:function(e,t){t&&i.Config.set("sessionId",t),e&&e.select("a").each(function(){i.Config.get("flashWarningMsg").match(this.dom.href)||(this.dom.href=s.refreshUrlSession(this.dom.href))})},isSecureUrl:function(e){return/https:\/\//.test(e)},console:function(e,t,n){if(void 0!==t&&i.Cookie.get(t)&&"function"==typeof console[e]){for(var o=[],s=2;s<arguments.length;s++){o[s-2]=arguments[s]}try{console[e].apply(console,o)}catch(e){}}else void 0!==t&&i.Cookie.get(t)&&"object"==typeof console[e]&&("object"!=typeof n?console.warn('Third parameter must be an array. "',n,'" ',typeof n," given."):console[e](n))},redirectToUrlWithoutHash:function(){var e=window.location.href,t=e.substr(0,e.indexOf("#"));window.location.href=t},setGlobalMethods:function(e,t,n){void 0===window[e]?window[e]={}:console.warn("Given global is already exists in the global namespace: ",e);var i,o,s=t.length;for(i=0;i<s;i++)o=t[i],window[e][o]&&console.warn(o," already existed, it is overwritten"),window[e][o]=function(e){return function(){return n[e].apply(n,arguments)}}(o)},trim:function(e){return"string"==typeof e?e.replace(/^\s\s*/,"").replace(/\s\s*$/,""):e},escapeHTML:function(e){var t=this;return String(e).replace(/[&<>"'\/]/g,function(e){return t.entityMap[e]})},unEscapeHTML:function(e){var t=document.createElement("div");t.innerHTML=e;var n=t.childNodes[0];return n?n.nodeValue:""},isEqualArrays:function(e,t){return e.filter(function(e){return t.indexOf(e)>=0}).length===e.length&&e.length===t.length},isEdge:function(){return-1!==navigator.userAgent.indexOf("Edge")},getIEVersion:function(){if("Microsoft Internet Explorer"===navigator.appName){if(/MSIE ([0-9]{1,}[\.0-9]{0,})/.test(navigator.userAgent))return parseFloat(RegExp.$1)}else if("Netscape"===navigator.appName&&/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.test(navigator.userAgent))return parseFloat(RegExp.$1);return-1},metroDetect:function(e){var t=null;try{t=!!new window.ActiveXObject(e)}catch(e){t=!1}return!t&&Ext.isIE&&parseInt(this.getIEVersion())>=10&&this.isWin8&&this.isX64},getSessionId:function(){return i.Cookie.get("session")||i.Config.get("sessionId")},getNavigatorInfo:function(){var e,t={},n=["userAgent","platform","oscpu","cookieEnabled","language"];for(e=0;e<n.length;e++)t[n[e]]=navigator[n[e]];return t},getMouseButton:function(e){return Ext.isIE7||Ext.isIE8?e.button+1:e.browserEvent.which},_onAutoGrowFieldUpdate:function(e,t,n){var i=n.field,o=n.shadowEl,s=n.noFlickerPad,r=n.minHeight,a=n.type,l=function(e,t){for(var n=0,i="";n<t;n++)i+=e;return i},c=i.getValue().replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/&/g,"&amp;").replace(/\n$/,"<br/>&nbsp;").replace(/\n/g,"<br/>").replace(/ {2,}/g,function(e){return l("&nbsp;",e.length-1)+" "});e&&e.browserEvent&&"keydown"===e.browserEvent.type&&13===e.getCharCode()&&"textarea"===a&&(c+="<br />"),"textarea"===a?(o.setStyle("width",i.getWidth()),o.dom.innerHTML=c+(0===s?"...":""),i.setHeight(Math.max(o.getHeight()+s,r))):"text"===a&&(o.dom.innerHTML=c,i.setWidth(o.getWidth()+s))},addAutoGrow:function(e,t){return this.addShadowEl(e,t,!0)},addShadowEl:function(e,t,n){var o,s=Ext.get(e),r=0===parseInt(s.getStyle("min-height"))?s.getHeight():parseInt(s.getStyle("min-height")),a=0===parseInt(s.getStyle("min-width"))?s.getWidth():parseInt(s.getStyle("min-width")),l=!s.hasClass("autogrow-short")&&(parseInt(s.getStyle("lineHeight"))||0),c=i.generateId("autogrow-"+s.dom.name||s.dom.type),h=Ext.DomHelper.append(Ext.getBody(),{id:c,style:"position: absolute;top: -10000px;left: -10000px;"+("textarea"===t?"width: "+s.getWidth()+"px;":"")+"font-size: "+s.getStyle("fontSize")+";font-family: "+s.getStyle("fontFamily")+";font-weight: "+s.getStyle("fontWeight")+";line-height: "+s.getStyle("lineHeight")+";resize: none;word-wrap: break-word"},!0);return s.addClass(c),o={shadowEl:h,field:s,noFlickerPad:l,minHeight:r,minWidth:a,type:t},n&&(s.on("change",this._onAutoGrowFieldUpdate,this,o).on("keyup",this._onAutoGrowFieldUpdate,this,o).on("keypress",this._onAutoGrowFieldUpdate,this,o).on("keydown",this._onAutoGrowFieldUpdate,this,o),this._onAutoGrowFieldUpdate(void 0,void 0,o)),h},removeAutoGrow:function(e,t){var n,i=Ext.get(e),o=i.dom.className.split(" ");for(n=0;n<o.length;n++)o[n].match("autogrow-")&&(Ext.fly(o[n]).remove(),i.removeClass(o[n]));return t&&i.un("change",this._onAutoGrowFieldUpdate,this).un("keyup",this._onAutoGrowFieldUpdate,this).un("keydown",this._onAutoGrowFieldUpdate,this),i.setHeight(""),e},getObjectSize:function(e){var t,n=0;for(t in e)e.hasOwnProperty(t)&&n++;return n},stringifyArray:function(e,t){var n,i="&",o="";if(0===t.length)return e+"[]=''";for(n=0;n<t.length;n++)n===t.length-1&&(i=""),o+=e+"[]="+t[n]+i;return o},createElementFromHtmlString:function(e,t){var n,o=document.createDocumentFragment(),s=document.createElement("div");return Ext.isIE8&&i.isDefined(o.createElement)&&i.each(this.elementsToShiv,o.createElement,o),o.appendChild(s),s.innerHTML=e,n=t?s:s.removeChild(s.children[0]),s=o=null,Ext.get(n)},isGecko40:function(){if(i.isNull(this._isGecko40)){var e=navigator.userAgent.toLowerCase(),t=/rv:4.\.0/;this._isGecko40=Ext.isGecko&&t.test(e)}return this._isGecko40},isModalOpenDenied:function(){return this.isGecko40()},updateQueryStringParameter:function(e,t,n){var i=new RegExp("([?&])"+t+"=.*?(&|$)","i"),o=-1!==e.indexOf("?")?"&":"?";return e.match(i)?e.replace(i,"$1"+t+"="+n+"$2"):e+o+t+"="+n},formatNumberWithComma:function(e){e+="";for(var t=e.split("."),n=t[0],i=t.length>1?"."+t[1]:"",o=/(\d+)(\d{3})/;o.test(n);)n=n.replace(o,"$1,$2");return n+i},isStandaloneChannelPage:function(){return this.isCurrentPage(o.PageId.CHAT_PERFORMER)||this.isCurrentPage(o.PageId.HTML5_CHAT_PERFORMER)},dateFromDatabaseToTimestamp:function(e){var t=e.split(" "),n=t[0].split("-"),i=t[1].split(":");return new Date(n[0],n[1]-1,n[2],i[0],i[1],i[2])},isHokkaido:function(){return i.Config.get("layoutType")===o.LayoutType.HOKKAIDO},saveScrollPosition:function(){this.lastScrollTop=this.getScrollTop()},log:function(e,t){var n=e.name?e.name:e,i=n+": "+t;console.log("%c "+i,"background: #222; color: #bada55")},updateLazy:function(){"undefined"!=typeof _jasminLazyLoad&&_jasminLazyLoad.update()},updateHTMLAppletVars:function(e){i.Config.set("HTMLAppletVars",Object.assign({},i.Config.get("HTMLAppletVars"),e))},getAppletVars:function(){var e=i.Config.get("memberAppletFlashvars"),t=i.Config.get("OverlayAppletType")===o.appletType.HTML5;return(this.isChatPage()&&void 0===e||t||this.isHtml5ChatPage())&&(e=i.Config.get("HTMLAppletVars")),e}});var a=new r;void 0===Ext.isIE9&&(Ext.isIE9=9===a.getIEVersion()),void 0===Ext.isIE10&&(Ext.isIE10=10===a.getIEVersion()),void 0===Ext.isIE11&&(Ext.isIE11=11===a.getIEVersion()),void 0===window.innerWidth&&(window.innerWidth=document.documentElement.clientWidth),void 0===window.innerHeight&&(window.innerHeight=document.documentElement.clientHeight),e.exports=a},,,,,,,,function(e,t,n){var i=n(0),o=n(2),s=n(501),r=n(150),a=n(3),l=n(151),c=n(23),h=n(14),u=n(40),d=n(36).default,E=n(89).default,p=s.extend({routes:{"payment(/:origin)":"onRoutePayment","payment-success":"onRoutePaymentSuccess","payment-failed":"onRoutePaymentFailed","payment-pending":"onRoutePaymentPending","chat/:performer":"onRouteChat",login:"onRouteLogin",forgotpassword:"onRouteForgotPassword",loggedout:"onRouteLoggedOut",refreshwindow:"onRouteRefreshWindow","signup(?:options)":"onRouteSignUp","promo(/:origin)":"onRoutePromo","photoviewer/:performerName/:dataType/:documentId":"onRoutePhotoViewer","imagegallery/:imageIndex/:parentId":"onRouteImageGallery",settings:"onRouteSettings",overeightteen:"onRouteOverEightTeen","fanclubunsubscriptionfeedback/:performer":"onRouteFanClubUnsubscriptionFeedback",birthday:"onRouteMemberBirthday",smartbuyactivation:"onSmartBuyActivation","freebonus/:bonustype":"onRouteFreeBonus","messages(/:name)":"onRouteMessages",profile:"onRouteProfile","subscribe/:model":"onRouteSubscribe",enableflashplugin:"onEnableFlashPlugin",chromeflashplugin:"onEnableChromeFlashPlugin","auto-play-help":"onAutoPlayHelp","modelgallery/:name(/:albumId)(/:index)":"onRouteModelGallery","*actions":"onRouteDefault"},modalContainerId:"overlay_container",_preventNavigateBack:!0,_navigationLevel:-1,_defaultOptions:{preventNavigateBack:!0},_isStarted:!1,getCreditsFromHeaderParam:"header",start:function(){this._activeModals=[],this._isStarted||(this._isStarted=!0,i.Broadcaster.on(o.History.GLOBALEVENT_HASH_CHANGED,this.onHashChanged,this),r.start(),this._lastFragment=r.getFragment(),this.pageIsLoaded())},onHashChanged:function(e){this.navigate(e.current,!0)},afterRouteCallbackExecute:function(e){i.Config.set("PageTypeInOverlay",e)},callReload:function(){this.isReloadingAfterNavigate=!0},navigateToChatPage:function(e,t){i.Config.get("appletRequiredClick")&&(i.Config.set("appletRequiredClick",!1),E.callPlayOnAppletVideo()),this.navigate(e,t)},navigate:function(e,t){var n;return e!==this._lastFragment&&(i.isObject(t)&&(t=Ext.apply({},t,this._defaultOptions)),this._callOptionCallback(t,"keepActiveModal"),this._callOptionCallback(t,"lockActiveModal"),n=this.getActiveModal(),n&&!n.isClosable()&&!0!==t.lockActiveModal||(n&&!t.keepActiveModal?this.destroyActiveModal():!0===t.lockActiveModal&&this.lockActiveModal(),r.navigate(e,t)),"force"===this._preventNavigateBack?this._preventNavigateBack=!0:this._preventNavigateBack=t.preventNavigateBack,this._lastFragment=e,this.pageIsLoaded(),this.isReloadingAfterNavigate&&window.location.reload(),this)},pageIsLoaded:function(){d.trackContentView(),i.fireEvent(o.RouteManager.GLOBALEVENT_PAGE_LOAD)},setLocationTop:function(e){window.top.document.location.href=e},_callOptionCallback:function(e,t){var n=this.getActiveModal();return n&&i.isFunction(e[t])&&(e[t]=e[t](n)),e},navigateBack:function(){var e=this.getActiveModal();e&&!e.isClosable()||(this._preventNavigateBack?this.navigate("/",!0):(window.history.go(this._navigationLevel),-1!==this._navigationLevel&&this.setNavigationLevel(-1)),i.fireEvent(o.RouteManager.GLOBALEVENT_SUCCESS_NAVIGATE_BACK,this))},setNavigationLevel:function(e){this._navigationLevel=parseInt(e,10)},_setActiveModal:function(e){this._activeModals.push(e)},_unsetActiveModal:function(){this._activeModals.pop()},_setLastOpenedModalName:function(e){this._lastOpenedModalName=e},getActiveModal:function(){return i.last(this._activeModals)},getActiveModalCount:function(){return this._activeModals.length},destroyActiveModal:function(){var e=this.getActiveModal();e&&(this._setLastOpenedModalName(e.getName()),e.destroy(),this._unsetActiveModal())},lockActiveModal:function(){var e=this.getActiveModal();e&&e.lock()},reload:function(){this.getActiveModal()&&(this.destroyActiveModal(),r.loadUrl(r.getHash()))},pushState:function(e,t,n,i,o){if(!i){if(o)return void r.replaceState(e,t,n);r.pushState(e,t,n)}this.pageIsLoaded()},onRouteDefault:function(){this.getActiveModal()&&this.destroyActiveModal(),i.fireEvent(o.RouteManager.GLOBALEVENT_DEFAULT_ROUTE_CALLED,this._lastOpenedModalName),this._setLastOpenedModalName(null)},onRouteChat:function(e){if(a.isChatPage()||a.isModalOpenDenied())a.isModalOpenDenied()?window.top.document.location.replace(i.getUrl("Chat/Performer",{performerId:e},{})):this.navigate("/",!0);else{var t=this;u.isHtml5Default()&&i.Config.set("forceHTML5Chat",!0),i.Config.set("isChatOpenInOverlay",!0),i.Config.set("PerformerName",e),i.Config.set("performerNick",e),n.e(57).then(function(){var i=n(810),o=new i(t.modalContainerId,{performerName:e});o.ready.then(function(){t._setActiveModal(o)})}.bind(null,n)).catch(n.oe)}},onRoutePayment:function(e,t,i){if(e===o.FirstBill.FIRST_BILL_RETRY_ROUTE_PARAM&&(this._preventNavigateBack="force"),!a.isAuthPage()&&l.checkCookieChanges()){var s=this;n.e(23).then(function(){var t=n(805),r=new t(s.modalContainerId,{isFirstBillCompleted:e===o.FirstBill.FIRST_BILL_COMPLETED_ROUTE_PARAM,firstBillActionParams:i||{},origin:e});s._setActiveModal(r)}.bind(null,n)).catch(n.oe)}else this.navigate("",{trigger:!0,replace:!0})},onRoutePaymentSuccess:function(){if(!a.isAuthPage()&&l.checkCookieChanges()){var e=this;n.e(51).then(function(){var t=n(812),i=new t(e.modalContainerId,{});e._setActiveModal(i)}.bind(null,n)).catch(n.oe)}else this.navigate("",{trigger:!0,replace:!0})},onRoutePaymentFailed:function(){if(!a.isAuthPage()&&l.checkCookieChanges()&&Ext.fly("transaction_failure")){var e=this;n.e(53).then(function(){var t=n(813),i=new t(e.modalContainerId,{});e._setActiveModal(i)}.bind(null,n)).catch(n.oe)}else this.navigate("",{trigger:!0,replace:!0})},onRoutePaymentPending:function(){if(!a.isAuthPage()&&l.checkCookieChanges()){var e=this;n.e(52).then(function(){var t=n(814),i=new t(e.modalContainerId,{});e._setActiveModal(i)}.bind(null,n)).catch(n.oe)}else this.navigate("",{trigger:!0,replace:!0})},onRouteLogin:function(){if(!a.isAuthPage()&&!1===h.isLoggedIn()&&l.checkCookieChanges()){var e=this;n.e(37).then(function(){var t=n(815),i=new t(e.modalContainerId,{});e._setActiveModal(i)}.bind(null,n)).catch(n.oe)}else this.navigate("/",!0)},onRouteLoggedOut:function(){if(i.Config.get("isMobileLogoutOverlayEnabled",!0)&&1===parseInt(i.Cookie.get("logout"),10)){var e=this;n.e(66).then(function(){var t=n(816),i=new t(e.modalContainerId,{});e._setActiveModal(i)}.bind(null,n)).catch(n.oe)}else this.navigate("/",!0)},onRouteForgotPassword:function(){if(a.isAuthPage()||!1!==h.isLoggedIn()||"LoginModalComponent"!==this._lastOpenedModalName)this.navigate("/",!0);else{var e=this;n.e(39).then(function(){var t=n(817),i=new t(e.modalContainerId,{});e._setActiveModal(i)}.bind(null,n)).catch(n.oe)}},onRouteSignUp:function(e){if(!a.isAuthPage()&&!1===h.isLoggedIn()&&l.checkCookieChanges()){var t=this;n.e(31).then(function(){var i=n(818),o=new i(t.modalContainerId,{contentRouteOptions:e});t._setActiveModal(o)}.bind(null,n)).catch(n.oe)}else this.navigate("/",!0)},onRoutePromo:function(e){var t=this;n.e(47).then(function(){var i=n(819),o=new i(t.modalContainerId,{origin:e});t._setActiveModal(o)}.bind(null,n)).catch(n.oe)},onRouteRefreshWindow:function(){if(!a.isCurrentPage(o.PageId.AUTH_SIGNUP,o.PageId.AUTH_LOGIN)&&i.Config.get("enabledRefreshWindow")){var e=this;n.e(44).then(function(){var t=n(820),i=new t(e.modalContainerId,{});e._setActiveModal(i)}.bind(null,n)).catch(n.oe)}else this.navigate("/",!0)},onRouteSettings:function(){if(!i.Storage.get("new-settings-enabled"))if(h.isLoggedIn()&&l.checkCookieChanges()){var e=this;n.e(24).then(function(){var t=n(821),i=new t(e.modalContainerId,{});e._setActiveModal(i)}.bind(null,n)).catch(n.oe)}else this.navigate("/",!0)},onRouteOverEightTeen:function(){if(!h.isLoggedIn()&&a.isPageWithOverlayChat()){var e=this;n.e(41).then(function(){var t=n(822),i=new t(e.modalContainerId,{});e._setActiveModal(i)}.bind(null,n)).catch(n.oe)}else this.navigate("/",!0)},onRouteFanClubUnsubscriptionFeedback:function(e){if(h.isLoggedIn()){var t=this;n.e(32).then(function(){var i=n(823),o=new i(t.modalContainerId,{performerName:e});t._setActiveModal(o)}.bind(null,n)).catch(n.oe)}else this.navigate("/",!0)},onRouteMessages:function(e){if(h.isLoggedIn()&&l.checkCookieChanges()){if(a.isCurrentPage(o.PageId.MESSAGESCENTER_INDEX)||a.isCurrentPage(o.PageId.MESSAGESCENTER_DIRECT_MESSAGE)||a.isCurrentPage(o.PageId.FIRSTBILL_STANDALONE_INDEX)||a.isCurrentPage(o.PageId.CHAT_PERFORMER))return;if(a.isStaticPage())window.location.href=e?i.getUrl("MessagesCenter/DirectMessage",{performerNick:e}):i.getUrl("MessagesCenter/Index");else{var t=this;n.e(15).then(function(){var i=n(824),o=new i(t.modalContainerId,{getModalContentRoute:e?"MessagesCenter/DirectMessage":"MessagesCenter/Index",openSpecificModelName:e,getModalContentRouteParams:e?{performerNick:e}:{}});t._setActiveModal(o)}.bind(null,n)).catch(n.oe)}}else this.navigate("/",!0)},onRouteMemberBirthday:function(){if(h.isMemberBirthday()){var e=this;n.e(45).then(function(){var t=n(825),i=new t(e.modalContainerId,{});e._setActiveModal(i)}.bind(null,n)).catch(n.oe)}else this.navigate("/",!0)},onSmartBuyActivation:function(){if(h.isSmartBuyAvailable()){var e=this;n.e(29).then(function(){var t=n(826),i=new t(e.modalContainerId,{});e._setActiveModal(i)}.bind(null,n)).catch(n.oe)}else this.navigate("/",!0)},onRouteProfile:function(){if(h.isLoggedIn()&&l.checkCookieChanges()){var e=this;n.e(35).then(function(){var t=n(827),i=new t(e.modalContainerId,{});e._setActiveModal(i)}.bind(null,n)).catch(n.oe)}else this.navigate("/",!0)},onRouteFreeBonus:function(e){if(i.Config.get("showBonusCreditRecommender"))this.navigate("/",!0);else{var t=this;n.e(43).then(function(){var i=n(828),o=new i(t.modalContainerId,{blockType:e});t._setActiveModal(o)}.bind(null,n)).catch(n.oe)}},onRoutePhotoViewer:function(e,t,o){if(o){var s=this;i.Config.set("PerformerName",e),n.e(18).then(function(){var i=n(829),r=new i(s.modalContainerId,{documentId:o,dataType:t,performerName:e,modalCloseBtnCls:"close"});s._setActiveModal(r)}.bind(null,n)).catch(n.oe)}},onRouteImageGallery:function(e,t){var i=this;n.e(27).then(function(){var o=n(830),s=new o(i.modalContainerId,{imageIndex:e,parentId:t});i._setActiveModal(s)}.bind(null,n)).catch(n.oe)},onRouteModelGallery:function(e,t,o){var s=this;if(!e)return void console.error("PerformerName must be defined.");e=a.escapeHTML(e),i.Config.set("PerformerName",e),n.e(16).then(function(){var i=n(831),r=new i(s.modalContainerId,{performerName:e,albumId:t,contentIndex:o});s._setActiveModal(r)}.bind(null,n)).catch(n.oe)},onRouteSubscribe:function(e){if(!a.isAuthPage()&&l.checkCookieChanges()){var t=this;n.e(19).then(function(){var i=n(832),o=new i(t.modalContainerId,{getModalContentRoute:"ChannelSubscribeFirstBill/Open",contentAjaxParams:{performerName:e}});t._setActiveModal(o)}.bind(null,n)).catch(n.oe)}else this.navigate("",{trigger:!0,replace:!0})},onEnableFlashPlugin:function(){var e=this;c.getFlashPluginStatus(i.bind(function(t){!a.isChatPage()&&t!==o.Flash.PLUGIN_ENABLED&&u.isFlashWarningPopupNeeded()?n.e(58).then(function(){var t=n(833),i=n(231),o=new i(e.modalContainerId,{modalContainerId:e.modalContainerId,autoRender:!0,template:t});e._setActiveModal(o)}.bind(null,n)).catch(n.oe):this.navigate("/",!0)},this))},onEnableChromeFlashPlugin:function(){var e=n(537),t=n(231),i=new t(this.modalContainerId,{modalContainerId:this.modalContainerId,autoRender:!0,template:e});this._setActiveModal(i)},onAutoPlayHelp:function(){var e=this;n.e(56).then(function(){var t=n(834).default,i=n(835).default,o=new i(e.modalContainerId,{modalContainerId:e.modalContainerId,autoRender:!0,template:t});e._setActiveModal(o)}.bind(null,n)).catch(n.oe)}});p.getInstance=function(){return p.prototype.instance instanceof p||(p.prototype.instance=new p),p.prototype.instance},e.exports=p.getInstance()},,,function(e,t,n){var i=n(0),o=n(2),s=function(){};e.exports=Ext.extend(s,Ext.util.Observable,{isLoggedIn:function(){return i.Config.get("isLoggedIn")},isMemberBirthday:function(){return i.Config.get("isMemberBirthday")},isSmartBuyAvailable:function(){return i.Config.get("isSmartBuyAvailable")},getUserType:function(e){var t=e||i.Cookie.get("session")||i.Config.get("sessionId");if(void 0!=t)switch(t.toString().substr(0,1)){case"f":return o.User.FREE_MEMBER;case"p":case"m":return o.User.PAYING_MEMBER;default:return}},getUserTypeForGTM:function(){switch(this.getUserType()){case o.User.FREE_MEMBER:return"free member";case o.User.PAYING_MEMBER:return"paid member";default:return"guest"}},getMemberNick:function(){return i.Config.get("memberNick")},getMemberNickHash:function(){return i.Config.get("memberNickHash")},getIsPurchaseInProgress:function(){return i.Config.get("isUserPurchaseInProgress")},setPurchaseInProgress:function(e){i.Config.set("isUserPurchaseInProgress",e)},setIsLoggedIn:function(e){i.Config.set("isLoggedIn",e)},setMemberNick:function(e){i.Config.set("memberNick",e)},setMemberNickHash:function(e){i.Config.set("memberNickHash",e)},setIsMemberBirthday:function(e){i.Config.set("isMemberBirthday",e)},setIsSmartBuyAvailable:function(e){i.Config.set("isSmartBuyAvailable",e)}});var r=new s;e.exports=r},function(e,t,n){var i=n(0),o=n(2),s=n(3),r=n(53),a=function(e){a.superclass.constructor.call(this,e)};Ext.extend(a,i.Connection,{name:"Ajax",defaultJSMOptions:{xdomain:!1},_xDomainRequests:void 0,_waitingRequestsQueue:[],_queueChecked:!1,_queueCheckerTimeout:void 0,init:function(){a.superclass.init.call(this),i.addEvents(o.Ajax.GLOBALEVENT_REQUEST_COMPLETE,o.Ajax.GLOBALEVENT_XDOMAIN_RESPONSE,o.Ajax.GLOBALEVENT_REMOTE_RESPONSE,o.Ajax.GLOBALEVENT_XDOMAIN_REQUEST_COMPLETE,o.Ajax.GLOBALEVENT_XDOMAIN_REQUEST_ERROR),this._xDomainRequests={},this._queueCheckerTimeout=new Ext.util.DelayedTask(function(){this._queueChecked||this.checkQueue()},this),this._queueCheckerTimeout.delay(2e3)},checkQueue:function(){this._queueCheckerTimeout&&this._queueCheckerTimeout.cancel();var e=this._waitingRequestsQueue.length;if(e>0)for(var t=0;t<e;t++)this.tryToSendRequest(this._waitingRequestsQueue[t]),this._waitingRequestsQueue[t]=void 0;this._queueChecked=!0},tryToSendRequest:function(e){e&&this.sendRequest(e)},request:function(e){if(i.fireEvent(o.Ajax.GLOBALEVENT_BEFORE_REQUEST,e),Ext.applyIf(e,this.defaultJSMOptions),e._requestStartedAt=new Date,!1===i.Cookie.isCookieEnabled()&&(e.url=r.refreshUrlSession(e.url)),!this.isXDomainCallNeeded(e.url)||!Ext.isIE9)return a.superclass.request.call(this,e);s.isSecureUrl(e.url)||(e.url=this.setXDomainUrl(e.url,e.isUnsecuredUrl||!1)),this.xDomainRequest(e)},xDomainRequest:function(e){var t=i.generateId("request");this._xDomainRequests[t]=e;try{this.sendRequest(t)}catch(t){e.fallbackLog}},sendRequest:function(e){var t=this._xDomainRequests[e];t.params=t.params||{},"object"==typeof t.params&&(t.params.isAjax=1);try{window.JSM.xDomainRequestComplete=i.bind(this.xDomainRequestComplete,this)}catch(n){i.fireEvent(o.Ajax.GLOBALEVENT_XDOMAIN_REQUEST_ERROR,{options:t,requestId:e}),console.warn("Unable to send request.")}},xDomainRequestComplete:function(e){i.fireEvent(o.Ajax.GLOBALEVENT_XDOMAIN_REQUEST_COMPLETE,e),window.JSM.xDomainRequestComplete=null;var t=e.id,n=this._xDomainRequests[t].scope||this||window,s={},r=this._xDomainRequests[t];s.json=Ext.decode(e.result.replace(/%5c/g,"\\")),this._fireCommand(s),r.xDomainCallback&&r.xDomainCallback.call(n,s),s.json.success?r.xDomainCallbackSuccess?r.xDomainCallbackSuccess.call(n,s):r.success.call(n,s):r.xDomainCallbackError?r.xDomainCallbackError.call(n,s):r.error.call(n,s)},xDomainRequestError:function(){},xDomainRequestFailure:function(){},xDomainRequestTimeout:function(){},onRequestComplete:function(e,t,n){void 0!==n.checkSession&&!0!==n.checkSession||(a.superclass.onRequestComplete.call(this),i.fireEvent(o.Ajax.GLOBALEVENT_REQUEST_COMPLETE,{response:t}))},onError:function(e,t){a.superclass.onError.call(this,e,t)},onFailure:function(e,t){a.superclass.onFailure.call(this,e,t)},isAuthUrl:function(e){return e.match("/auth/")},isRoute:function(e){return!/http(s)?:\/\//.test(e)},isCurrentHostnameDifferentThanUrl:function(e){return!this.isRoute(e)&&e.match(/:\/\/(.[^\/]+)/)[1]!==window.location.hostname},isXDomainCallNeeded:function(e){e=e.toLowerCase();var t=this.isAuthUrl(e),n=s.isSecurePage();return(!0!==i.Config.get("httpsEnabled")||"http:"===location.protocol)&&(!!(t&&!n||!t&&n)||this.isCurrentHostnameDifferentThanUrl(e))}}),a.getInstance=function(){return a.prototype.instance instanceof a||(a.prototype.instance=new a),a.prototype.instance},e.exports=a.getInstance()},,,,,,,,function(e,t,n){var i=n(0),o=n(2),s=n(40),r={_keyboardHelperEnabled:!1,listPagePlayerEmbedId:"ListPagePlayer_embed",_flashPluginStatus:null,checkTimeout:2e3,disconnectListPagePlayer:function(e){switch(this.flashObj=e,typeof e){case"string":this.flashObj=i.getFlashMovieObject(e);break;case"object":this.flashObj=e}this.flashObj&&i.isFunction(this.flashObj.disconnect)&&this.flashObj.disconnect()},checkFlashVersion:function(e){if(s.isFlashVersionCheckBlocked())return!0;if(!this._userFlashVersion)return!0;var t=this._userFlashVersion,n=e;void 0==n&&(n="21,0,0");var i=n.split(","),o=parseInt(i[0]),r=parseInt(t.major),a=parseInt(i[1]),l=parseInt(t.minor),c=parseInt(i[2]),h=parseInt(t.release);return!(r<o)&&(r!=o||!(l<a)&&(l!=a||!(h<c)))},minimize:function(e){var t={width:"1px",height:"1px",left:"0px",top:"0px"},n=Ext.get(e);n&&n.setStyle(t)},enableKeyboardHelper:function(e,t){Ext.isMac&&void 0!==e&&(e&&!r._keyboardHelperEnabled?(r._keyboardHelperEnabled=!0,Ext.fly(window).on("keyup",r.onWindowKeyUp,r,t)):!e&&r._keyboardHelperEnabled&&(r._keyboardHelperEnabled=!1,Ext.fly(window).un("keyup",r.onWindowKeyUp,r)))},getAppletType:function(){try{return window.localStorage.getItem(o.appletType.KEY)}catch(e){return null}},setAppletType:function(e){try{window.localStorage.setItem(o.appletType.KEY,e)}catch(e){}},onWindowKeyUp:function(e,t,n){var i,o;for(i in n)e.getCharCode()==i&&(o=n[i],"function"==typeof Ext.fly("chatapplet").dom[o]&&Ext.fly("chatapplet").dom[o](i))},getFlashPluginStatus:function(e){if(s.isHtml5Default())return void e(o.Flash.PLUGIN_BLOCKED);switch(this.getAppletType()){case o.appletType.FLASH:return void e(o.Flash.PLUGIN_ENABLED);case o.appletType.HTML5:if(Ext.isChrome||Ext.isSafari||Ext.isEdge)return void e(o.Flash.PLUGIN_BLOCKED)}s.isHtml5Default()?e(o.Flash.PLUGIN_BLOCKED):n.e(86).then(function(){var t=n(809);this._featureChecker instanceof t||(this._featureChecker=new t({appletUrl:i.Config.get("dummyFlashAppletSrc"),timeout:2e3}));var s=this;this._featureChecker.getFeatures(function(t){var n=t.flash;!0===n.enabled&&!1===n.blocked?(s._userFlashVersion=n.version,e(o.Flash.PLUGIN_ENABLED)):e(!1===n.enabled&&!0===n.blocked?o.Flash.PLUGIN_BLOCKED:o.Flash.PLUGIN_NOT_FOUND)})}.bind(null,n)).catch(n.oe)}};window.FLASH={},window.FLASH.enableKeyboardHelper=r.enableKeyboardHelper,e.exports=r},,,,,,,,,,,,,function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=n(2),l=i(a),c=n(14),h=i(c),u=n(3),d=i(u),E=n(23),p=i(E),_=n(0),m=i(_),C={TAG_MANAGER_DATA:"dataLayer",LIST_VISITED_PERFORMERS:"ga-visited-performers",EVENT_TIMEOUT:2e3,EVENT:{GENERIC:"GA - Event - Generic Event",CONTENT_VIEW:"content-view",OPTIMIZE_SHOW_OVERLAY:"optimize-event-show-overlay",TRANSACTION_SUCCESS:"transaction_success"},PAGE:{ALL:"all pages",CHAT:"chat pages",LISTS:"lists pages",LOGIN:"login page",SIGNUP:"signup page",ENTER:"enter page",CONFIRMATION:"confirmation page",SCHEDULED_SHOW:"scheduled show"},ACTION:{PERFORMER_POSITION:"performer position",MODEL:"model - ",EXTERNAL_LINKS:"external links",LOGIN:"login",AGE_POPUP:"age pop-up",INTERNAL_BANNERS:"internal banners",SIGNUP:"signup",FLASH_NOTIFICATION:"flash notification",FIRST_BILL_CREDITS:"first bill credits sum",NAV_FILTERS:"using navigation filters",MENU_FILTERS:"using menu filters",PRIVATE_SHOW:"private show",ICON_CLICK:"left icons click",START_TYPING:"start typing",CHAT_CONTENT:"chat content",SMART_BUY:"smartbuy",QUICK_BUY:"quickbuy",VERY_QUICK_BUY:"veryquickbuy",SCHEDULED_SHOW_BOOKED:"booked"},APPLET:{SMALL_START_PRIVATE_BUTTON_CLICK:"SmallStartPrivateButtonClick",BIG_START_PRIVATE_BUTTON_CLICK:"BigStartPrivateButtonClick",WELCOME_CHAT_MESSAGE_APPEARED:"WelcomeChatMessageAppeared",STREAM_TIMEOUT:"StreamTimeout",MENU_ITEM_CLICKED:"MenuIconClicked",MOTIVATION_IN_CHAT_APPEARED:"MotivationInChatAppeared",BUY_CREDITS:"BuyCredits"},PAGE_TYPE:{MODEL_GALLERY:"modelgallery",PHOTO_VIEWER:"photoviewer",OVER_EIGHTEEN:"over 18 pop-up",HOME_LIST_PAGE:"home page list",AWARDS_LIST:"awards list",CATEGORY_LIST:"category list",FAVOURITE_LIST:"favourite list",CHAT:"chat",LOGIN:"login",SIGN_UP:"sign up",PAYMENT_EXCLUDE:"payment exclude",PAYMENT:"payment",OTHER:"other"}},f=null,g=function(){function e(t){if(s(this,e),f)return f;this.CONST=t,this.userUseAdBlock=!!window.AdBlock,f=this}return r(e,[{key:"push",value:function(e){var t=window[C.TAG_MANAGER_DATA];if(t.push(e),e.eventCallback){(t.push.toString().indexOf("[native code]")>-1||"1"===navigator.doNotTrack)&&e.eventCallback()}}},{key:"setUserAction",value:function(e){var t=e===C.ACTION.SIGNUP?l.default.User.GUEST:h.default.getUserTypeForGTM();this.push({userAction:e+" - "+t})}},{key:"onPrivateStart",value:function(e){this.trackGenericEvent({eventAction:C.ACTION.PRIVATE_SHOW,eventLabel:e})}},{key:"trackGenericEvent",value:function(e){this.push(Object.assign({event:C.EVENT.GENERIC,eventCategory:C.PAGE.CHAT,eventValue:0,eventInteraction:!0},e))}},{key:"appletEvents",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(e){case C.APPLET.WELCOME_CHAT_MESSAGE_APPEARED:this.push({event:l.default.GoogleOptimizeEvents.WELCOME_CHAT_MESSAGE});break;case C.APPLET.BIG_START_PRIVATE_BUTTON_CLICK:this.onPrivateStart("big button click");break;case C.APPLET.SMALL_START_PRIVATE_BUTTON_CLICK:this.onPrivateStart("small button click");break;case C.APPLET.STREAM_TIMEOUT:this.push({event:l.default.GoogleOptimizeEvents.CHAT_TIMEOUT});break;case C.APPLET.MENU_ITEM_CLICKED:this.trackIconClick(t.clickedIcon);break;case C.APPLET.MOTIVATION_IN_CHAT_APPEARED:this.push({event:l.default.GoogleOptimizeEvents.START_TYPING}),this.trackGenericEvent({eventAction:C.ACTION.START_TYPING,eventLabel:"signup promotion"});break;case C.APPLET.BUY_CREDITS:var n="statusApproved"===t.purchaseStatus,i="QuickBuy"===t.source;this.trackGenericEvent({eventCategory:C.PAGE.ALL,eventAction:i?C.ACTION.QUICK_BUY:C.ACTION.VERY_QUICK_BUY,eventLabel:n?"success":"fail"}),n&&this.sendTransactionDetails(t.source,t.credits)}}},{key:"sendTransactionDetails",value:function(e,t){var n={27.99:"package - A",67.99:"package - B",97.99:"package - C",157.99:"package - D",7.99:"package - S1",17.99:"package - S2"},i=+new Date+Math.random().toString(36).substring(7).toUpperCase();this.push({event:C.EVENT.TRANSACTION_SUCCESS,transactionId:i,transactionTotal:1,transactionProducts:[{name:n[t]||"custom value",category:e.toLowerCase(),price:1,quantity:1}]})}},{key:"trackIconClick",value:function(e){"string"==typeof e&&this.trackGenericEvent({eventAction:C.ACTION.ICON_CLICK,eventLabel:e})}},{key:"trackContentView",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments[1],i=m.default.Config.get("performerNick");p.default.getFlashPluginStatus(function(i){var o=i===l.default.Flash.PLUGIN_ENABLED?l.default.appletType.FLASH:l.default.appletType.HTML5,s=window.location.href+t,r=e.userUseAdBlock,a=d.default.isHokkaido()?"hokkaido":"old",c=!1;n=n||e.getPageType(),(c=e._isPageTypeExclude(n))||e.push(Object.assign({event:C.EVENT.CONTENT_VIEW,contentName:s,userApplication:o,pageType:n,noBlocker:r,layout:a},e._getUserData(),e._getPerformerData()))}),d.default.isChatAppletOnPage()&&d.default.isLocalStorageSupported&&i&&this._isNotVisitedPerformer(i)&&this._trackUniqueVisitedPerformer(i)}},{key:"trackPaymentPage",value:function(e){var t=C.PAGE_TYPE.PAYMENT;this.trackContentView(e,t)}},{key:"_isPageTypeExclude",value:function(e){var t=e===C.PAGE_TYPE.PAYMENT_EXCLUDE,n=e!==this.getPageInOverlay();if(t&&n){var i=h.default.getUserType()===l.default.User.PAYING_MEMBER?"/quick-buy/packages":"/first-bill/packages";this.trackPaymentPage(i)}return t}},{key:"_getPerformerData",value:function(){var e=m.default.Config.get("PerformerName"),t=d.default.getAppletVars().category||"anonymous";if(this.isPerformerPage())return{modelCategory:t,modelName:e}}},{key:"isPerformerPage",value:function(){var e=this.getPageType(),t=C.PAGE_TYPE,n=t.CHAT,i=t.PHOTO_VIEWER,o=t.MODEL_GALLERY;switch(e){case n:case i:case o:return!0}}},{key:"getPageType",value:function(){var e=this.getPageInOverlay(),t=this.getInitPageType();return e||t}},{key:"getPageInOverlay",value:function(){var e=C.PAGE_TYPE,t=e.OVER_EIGHTEEN,n=e.CHAT,i=e.LOGIN,o=e.SIGN_UP,s=e.MODEL_GALLERY,r=e.PHOTO_VIEWER,a=e.OTHER,l=e.PAYMENT_EXCLUDE,c=m.default.Config.get("PageTypeInOverlay"),h={onRouteOverEightTeen:t,onRouteChat:n,onRouteLogin:i,onRouteSignUp:o,onRouteModelGallery:s,onRoutePhotoViewer:r,onRoutePayment:l,onRoutePaymentSuccess:l,onRoutePaymentFailed:l,onRoutePaymentPending:l};return"onRouteDefault"===c?"":h[c]||a}},{key:"getInitPageType",value:function(){var e,t=C.PAGE_TYPE,n=t.HOME_LIST_PAGE,i=t.AWARDS_LIST,s=t.FAVOURITE_LIST,r=t.CATEGORY_LIST,a=t.CHAT,c=t.OTHER,h=t.PAYMENT_EXCLUDE,u=m.default.Config.get("PageType"),d=(e={},o(e,l.default.PageId.INDEX_INDEX,n),o(e,l.default.PageId.AWARDS_INDEX,i),o(e,l.default.PageId.FAVORITE_INDEX,s),o(e,l.default.PageId.CHAT_PERFORMER,a),o(e,l.default.PageId.HTML5_CHAT_PERFORMER,a),o(e,l.default.PageId.FIRSTBILL_STANDALONE_INDEX,h),e),E=d[u]||c;return E===n&&location.pathname.split("/")[2]&&(E=r),E}},{key:"updateUserData",value:function(){this.push(this._getUserData())}},{key:"_getUserData",value:function(){var e=!!h.default.isLoggedIn(),t=h.default.getUserTypeForGTM(),n=(h.default.getMemberNick()||"").hashCode();return"number"==typeof n&&0!==n||(n=void 0),{userId:n,loggedOn:e,userType:t}}},{key:"_trackUniqueVisitedPerformer",value:function(e){this._setPerformerVisited(e),this.trackGenericEvent({eventAction:C.ACTION.MODEL+this._getNumberVisitedPerformers()})}},{key:"_isNotVisitedPerformer",value:function(e){return!(this._getVisitedPerformers().indexOf(e)+1)}},{key:"_getVisitedPerformers",value:function(){return sessionStorage.getItem(C.LIST_VISITED_PERFORMERS)||""}},{key:"_getNumberVisitedPerformers",value:function(){return this._getVisitedPerformers().split("|").length-1}},{key:"_setPerformerVisited",value:function(e){var t=this._getVisitedPerformers();sessionStorage.setItem(C.LIST_VISITED_PERFORMERS,t+"|"+e)}}]),e}();t.default=new g(C)},,,,function(e,t,n){var i=n(0),o=n(2),s=function(){var e=navigator.userAgent.toLowerCase();return{isChromeMinVersion:function(t){return Ext.isChrome&&e.split("chrome/")[1].split(".")[0]>=t},isChromeMaxVersion:function(t){return Ext.isChrome&&e.split("chrome/")[1].split(".")[0]<=t},isFirefoxMinVersion:function(t){return Ext.isGecko&&e.split("firefox/")[1].split(".")[0]>=t},isFirefox:function(){return Ext.isGecko},isSafariMinVersion:function(t){return Ext.isSafari&&e.split("safari/")[1].split(".")[0]>=t},isSafariVersion:function(t){return Ext.isSafari&&(e.split("version/")[1]||"").split(".")[0]===t.toString()},isChrome:function(){return Ext.isChrome},isHtml5Default:function(){return!0===i.Config.get("isHtml5Default")},isMacOSSierra:function(){return Ext.isMac&&/mac os x 10_12/.test(e)},isMacOSSierraSafari:function(){return this.isMacOSSierra&&this.isSafariMinVersion(o.BrowserHelper.MIN_VERSION_MAC_SAFARI_HTML5_PLAYER)},isFlashVersionCheckBlocked:function(){return Ext.isChrome&&this.isChromeMinVersion(o.BrowserHelper.MIN_VERSION_CHROME_FLASH_VERSION_CHECK_BLOCKED)},isFlashWarningPopupNeeded:function(){return this.isChromeMaxVersion(o.BrowserHelper.MIN_VERSION_CHROME_HTML5_PLAYER)},isHTML5AppletEnabled:function(){return this.isChromeMinVersion(o.BrowserHelper.MIN_VERSION_CHROME_HTML5_PLAYER)||Ext.isGecko||Ext.isEdge||Ext.isIE11||Ext.isSafari},isHTML5ListPagePlayerEnabled:function(){return!Ext.isIE9&&!Ext.isIE10},isWin7IE11:function(){return-1!==e.indexOf("windows nt 6.1")&&Ext.isIE11},isNotSupportedVideoAutoPlay:function(){return this.isSafariVersion(11)}}}();e.exports=s},,,,,,,,,function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.ACTION=t.SHOW_STATUS=void 0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=n(0),l=i(a),c=n(503),h=n(15),u=i(h),d=n(76),E=i(d),p=n(90),_=i(p),m=t.SHOW_STATUS={CANCELED:"canceled",STARTED:"started",PENDING:"pending"},C=t.ACTION={SHOW_CANCELED:"SHOW_CANCELED",SHOW_DELETED:"SHOW_DELETED",SHOWS_ADDED:"SHOWS_ADDED",SHOW_STARTED:"SHOW_STARTED",SHOW_PENDING:"SHOW_PENDING",USER_BUY_TICKET_SUCCESS:"USER_BUY_TICKET_SUCCESS",USER_BUY_TICKET_FAILED:"USER_BUY_TICKET_FAILED"},f=function(){function e(){o(this,e),this.listeners=[],this.isJawsInitialized=!1,this.setDefaultWallStore(),this.setDefaultCalendarStore()}return r(e,[{key:"setDefaultWallStore",value:function(){this.wallStore={shows:{byId:{},allIds:[]},currentServerTime:"",currentClientTime:"",appletSize:"",showSelected:0}}},{key:"setDefaultCalendarStore",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.calendarStore={shows:{byId:{},byHour:{},allIds:[]},selectedCalendarIndex:e}}},{key:"initializeJAWS",value:function(){var e=this;this.isJawsInitialized=!0,E.default.getClient().on(E.default.EVENT.PERFORMER.SHOW_CANCELLED,function(t){e.cancelShow(t.body.showId.toString())}),E.default.getClient().on(E.default.EVENT.PERFORMER.SHOW_STARTED,function(t){e.startShow(t.body.showId.toString())}),E.default.getClient().on(E.default.EVENT.PERFORMER.SHOW_ENDED,function(t){e.remove(t.body.showId.toString())})}},{key:"normalizeWall",value:function(e){this.wallStore=Object.assign({},this.wallStore,{shows:this.normalizeWallData(e.shows),currentServerTime:e.currentTime,currentClientTime:(0,_.default)((0,_.default)().format("YYYY-MM-DD HH:mm:ss"),"YYYY-MM-DD HH:mm:ss"),showSelected:0})}},{key:"normalizeCalendar",value:function(e){this.calendarStore=Object.assign({},this.calendarStore,{shows:this.normalizeCalendarData(e)})}},{key:"normalizeWallData",value:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(function(e,t){var n=t.id,i=t.description,o=t.duration,s=t.price,r=t.scheduledStartAt,a=t.status,l=t.title,c=t.performerNick,h=t.profilePicture;return e.byId[n]={id:n,description:i,duration:o,price:s,scheduledStartAt:r,performerNick:c,profilePicture:h,status:a,title:l,isUserSubscribed:t.viewer.subscribed,isRequestInProgress:!1},e.allIds.push(n.toString()),e},{byId:{},allIds:[]})}},{key:"normalizeCalendarData",value:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(function(e,t){var n=t.id,i=t.description,o=t.duration,s=t.price,r=t.scheduledStartAt,a=t.status,l=t.title,c=t.performerNick,h=t.profilePicture,u=(0,_.default)(t.scheduledStartAt,"YYYY-MM-DD HH:mm:ss").hour();return e.byHour[u]||(e.byHour[u]=[]),e.byHour[u].push(n.toString()),e.byId[n]={id:n,description:i,duration:o,price:s,scheduledStartAt:r,status:a,title:l,time:u,performerNick:c,profilePicture:h,isUserSubscribed:t.viewer.subscribed,isRequestInProgress:!1},e.allIds.push(n.toString()),e},{byId:{},byHour:{},allIds:[]})}},{key:"getScheduledShowsByPerformerNick",value:function(e){var t=this;return new Promise(function(n,i){u.default.request({method:"GET",type:"JSON",url:l.default.getUrl("GetScheduledShow/Get",{performerNick:e}),scope:t,success:function(e){n(l.default.getPath(e,"json.data.data"))},error:i,failure:i})})}},{key:"getAllScheduledShowsByDay",value:function(e){var t=this;return new Promise(function(n,i){u.default.request({method:"GET",type:"JSON",url:l.default.getUrl("ScheduledShowCalendarPage/GetUpcomingShows",{},{days:e}),scope:t,success:function(e){n(l.default.getPath(e,"json.data"))},error:i,failure:i})})}},{key:"subscribeScheduleShow",value:function(e){var t=this;return this.setLoading(e,!0),new Promise(function(n,i){u.default.request({method:"POST",type:"JSON",url:l.default.getUrl("SubscribeShow/Subscribe",{showId:e},{session:l.default.Config.get("sessionId")}),scope:t,success:function(o){var s=l.default.getPath(o,"json.data"),r=l.default.getPath(o,"json.data.data");s.success?n(e,r):i(s),t.setLoading(e,!1)},error:i,failure:i})})}},{key:"getNextShowInfo",value:function(){var e=this.wallStore.shows.allIds[0];return this.wallStore.shows.byId[e]}},{key:"getWallData",value:function(){return this.wallStore}},{key:"getCalendarData",value:function(){return this.calendarStore}},{key:"addToWall",value:function(e){this.normalizeWall(e),this.dispatch({type:C.SHOWS_ADDED,data:e}),this.checkIfNextShowStarted()}},{key:"addToCalendar",value:function(e){this.setDefaultCalendarStore(this.calendarStore.selectedCalendarIndex),this.refreshCalendar(e)}},{key:"refreshCalendar",value:function(e){this.normalizeCalendar(e),this.dispatch({type:C.SHOWS_ADDED,data:e})}},{key:"remove",value:function(e){var t=this.wallStore.shows.byId[e];if(t){var n=this.wallStore.shows.allIds.indexOf(e);n<this.wallStore.showSelected&&this.setSelectedShow(this.wallStore.showSelected-1),this.wallStore.shows.allIds.splice(n,1),delete this.wallStore.shows.byId[e],this.dispatch({type:C.SHOW_DELETED,showId:e})}var i=this.calendarStore.shows.byId[e];if(i){var o=this.calendarStore.shows.allIds.indexOf(e);this.calendarStore.shows.allIds.splice(o,1);var s=(0,_.default)(i.scheduledStartAt,"YYYY-MM-DD HH:mm:ss").hour(),r=this.calendarStore.shows.byHour[s];if(r){var a=r.indexOf(e);a>-1&&r.splice(a,1),0===r.length&&delete this.calendarStore.shows.byHour[s]}delete this.calendarStore.shows.byId[e]}(t||i)&&this.dispatch({type:C.SHOW_DELETED,showId:e})}},{key:"cancelShow",value:function(e){this.wallStore.shows.byId[e]&&(this.wallStore.shows.byId[e].status=m.CANCELED),this.calendarStore.shows.byId[e]&&(this.calendarStore.shows.byId[e].status=m.CANCELED),(this.wallStore.shows.byId[e]||this.calendarStore.shows.byId[e])&&this.dispatch({type:C.SHOW_CANCELED,showId:e})}},{key:"startShow",value:function(e){this.wallStore.shows.byId[e]&&(this.wallStore.shows.byId[e].status=m.STARTED),this.calendarStore.shows.byId[e]&&(this.calendarStore.shows.byId[e].status=m.STARTED),this.setShowStatusIsGoing(e)}},{key:"checkIfNextShowStarted",value:function(){var e=this.wallStore.shows.allIds[0];e&&this.wallStore.shows.byId[e].status===m.STARTED&&this.dispatch({type:C.SHOW_STARTED,showId:e})}},{key:"setAppletSize",value:function(e){this.wallStore.appletSize="full"===e?"full":"",this.dispatch()}},{key:"setLoading",value:function(e,t){this.updateStoreByShowId(e,"isRequestInProgress",t)}},{key:"setSelectedShow",value:function(e){this.wallStore=s({},this.wallStore,{showSelected:e})}},{key:"buyTicketSuccess",value:function(e){this.updateStoreByShowId(e,"isUserSubscribed",!0,C.USER_BUY_TICKET_SUCCESS)}},{key:"buyTicketFailed",value:function(e){this.dispatch({type:C.USER_BUY_TICKET_FAILED,showId:e})}},{key:"updateStoreByShowId",value:function(e,t,n,i){var o=this.wallStore.shows.byId[e];o&&(this.wallStore.shows.byId[e][t]=n);var s=this.calendarStore.shows.byId[e];s&&(this.calendarStore.shows.byId[e][t]=n),(o||s)&&this.dispatch({type:i,showId:e})}},{key:"setShowStatusIsGoing",value:function(e){this.updateStoreByShowId(e,"status",m.STARTED,C.SHOW_STARTED)}},{key:"setShowStatusIsPending",value:function(e){this.updateStoreByShowId(e,"status",m.PENDING,C.SHOW_PENDING)}},{key:"setSelectedCalendarIndex",value:function(e){var t=this;this.calendarStore.selectedCalendarIndex!==e&&(this.calendarStore=s({},this.calendarStore,{selectedCalendarIndex:e}),this.getAllScheduledShowsByDay(e).then(function(e){t.addToCalendar(e),t.scrollToTop()}))}},{key:"scrollToTop",value:function(){window.scrollTo(0,0)}},{key:"dispatch",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:!1};this.listeners.map(function(t){return t(e)})}},{key:"subscribe",value:function(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");!this.isJawsInitialized&&this.initializeJAWS(),this.listeners.push(e)}},{key:"unsubscribe",value:function(e){var t=this.listeners.indexOf(e);t>-1&&this.listeners.splice(t,1)}}]),e}(),g=(0,c.createSingleton)(f);t.default=new g},,,,function(e,t,n){var i=n(0),o=(n(14),n(2));e.exports={patterns:{onlyLetters:/^[a-zA-Z]+$/,ulrPathPart:/^\/[a-zA-Z]+\/$/,urlHashPart:/#!?(.*)$/},getUrlObject:function(){return document.location},refreshUrlSession:function(e){var t="session="+i.Config.get("sessionId"),n="";if(this.hasValidHash(e)&&(n=this.getHashValue(e),e=e.replace(n[0],"")),-1===e.indexOf("session="))t=-1===e.indexOf("?")?"?"+t:"&"+t,e+=t;else{var o=e.split("session=");e=-1===o[1].indexOf("&")?o[0]+t:o[0]+t+"&"+o[1].split("&")[1]}return e+(n[0]||"")},hasQueryParam:function(e){return new RegExp("[\\?&]").test(e)},hasValidHash:function(e){return e=e||window.location.href,new RegExp(this.patterns.urlHashPart).test(e)},getHashValue:function(e){return e=e||window.location.href,e.match(this.patterns.urlHashPart)},getFullHash:function(e){return"#"+o.UrlHelper.HASH_PREFIX+e},isHashStartsWith:function(e){return!!this.hasValidHash()&&0===this.getHashValue()[1].indexOf(e)},getUrlHost:function(){var e=this.getUrlObject();return e.protocol+"//"+e.host},getUrlHostWithSubdomain:function(e){var t=this.getUrlObject();return t.protocol+"//"+e+"."+t.host},insertMemberType:function(e,t){var n=t||document.location;if(-1===n.indexOf(e)){var i=n.split("/"+this.getLanguage())[0],o=n.split("/"+this.getLanguage())[1];return i+"/"+this.getLanguage()+"/"+e+(o||"")}return n},getLanguage:function(){return i.I18n.getLanguage()}}},,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var i=n(0),o=n(15),s=n(2),r=n(504).default,a=function(e,t){if(a.prototype.instance)throw"You should use the getInstance method";a.superclass.constructor.call(this,e,t)};a.getInstance=function(){return a.prototype.instance instanceof a||(a.prototype.instance=new a(Ext.getBody(),{})),a.prototype.instance},a.EVENT=r.EVENT,a.getClient=function(){return a.getInstance().client},e.exports=Ext.extend(a,i.Component,{name:s.JawsClientComponent.NAME,maxReConnections:10,currentConnectedTimes:0,init:function(e,t){a.superclass.init.call(this,e,t),this.initClient(),this.checkAuthKey()},checkAuthKey:function(){i.Config.get("jawsAuthKey")||this._getNewAuthKey()},initClient:function(){this.client=new r({socketUrl:i.Config.get("jawsDomain")+"/notifications",authKey:i.Config.get("jawsAuthKey")}),this.client.un=function(){this.removeListener.apply(this,arguments)},this._setListeners()},refreshClient:function(){this.checkAuthKey()},_setListeners:function(){this._onMultipleReConnections(),this._onClientAuthFail()},_onMultipleReConnections:function(){var e=this;this.client.on(r.EVENT.COMMON.RECONNECT,function(){e._checkReconnectionLimit(),e.currentConnectedTimes++})},_checkReconnectionLimit:function(){if(this.currentConnectedTimes==this.maxReConnections)throw this.client.disconnect(),this._destroyAuthKey(),"Too many re-connections by jaws! Aborting..."},_onClientAuthFail:function(){var e=this;this.client.on(r.EVENT.COMMON.AUTH_FAIL,function(){e._destroyAuthKey(),e.currentConnectedTimes>0&&e._getNewAuthKey()})},_destroyAuthKey:function(){i.Config.set("jawsAuthKey")},_getNewAuthKey:function(){o.request({url:i.getUrl("JawsAuthKey/Index"),scope:this,type:"json",success:function(e){var t=e.json.data.jawsAuthKey;i.Config.set("jawsAuthKey",t),this.client.authenticate(t)},error:function(){},failure:function(){}})}})},function(e,t,n){var i=n(0),o=n(3),s=n(15);e.exports=function(){return{get:function(e){return new Promise(function(t,n){e||n(new Error("Invalid performerId")),s.request({method:"POST",type:"json",url:i.getUrl("Flash/GetPerformerDetails",{performerId:e},{appletType:i.Config.get("appletType"),isOverlayChat:!0}),success:function(e){e.json.data?(o.updateHTMLAppletVars(e.json.data),t(e)):n(new Error("Get performer details failed. Empty result array."))},error:function(e){n(e,new Error("Get performer details error."))},failure:function(e){n(e,new Error("Get performer details failure."))}})})}}}()},,,,,,,,,function(e,t,n){var i=n(0),o=n(2),s=function(e,t){s.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(s,i.Component,{name:"TooltipView",protipCls:"protip",init:function(e,t){i.addEvents(o.TooltipView.EVENT_SHOW_TOOLTIP,o.TooltipView.EVENT_HIDE_TOOLTIP,o.TooltipView.EVENT_HIDE_ALL_TOOLTIP),this.tooltipStart(),s.superclass.init.call(this,e,t)},tooltipStart:function(){$.protip({defaults:{skin:"jasmin"}})},showTooltip:function(e){var t=$(e.element).hasClass(this.protipCls)?e.element:$(e.element).closest("."+this.protipCls);t=t.length?t:e.element,$(t).protipShow(e.attributes||null)},hideTooltip:function(e){$(e).protipHide()},hideAll:function(e){$(e||Ext.getBody().dom).protipHideInside()},bind:function(){i.Broadcaster.on(o.TooltipView.EVENT_SHOW_TOOLTIP,this.showTooltip,this),i.Broadcaster.on(o.TooltipView.EVENT_HIDE_TOOLTIP,this.hideTooltip,this),i.Broadcaster.on(o.TooltipView.EVENT_HIDE_ALL_TOOLTIP,this.hideAll,this),s.superclass.bind.call(this)},unbind:function(){i.Broadcaster.un(o.TooltipView.EVENT_SHOW_TOOLTIP,this.showTooltip,this),i.Broadcaster.un(o.TooltipView.EVENT_HIDE_TOOLTIP,this.hideTooltip,this),i.Broadcaster.un(o.TooltipView.EVENT_HIDE_ALL_TOOLTIP,this.hideAll,this),s.superclass.unbind.call(this)}})},,function(e,t,n){var i=(n(0),n(2),function(e){Ext.apply(this,e),this.init()});e.exports=Ext.extend(i,Ext.util.Observable,{name:"Template",tpl:"",validateData:!0,_tpl:void 0,init:function(){},getTemplate:function(){return this._tpl},_setTemplateParams:function(e){return e&&e!=={}&&null!==e?{id:e.id}:""},render:function(e){return this._tpl=new Ext.Template(this.tpl),this.validateData&&this._validateData(e),this._tpl.applyTemplate(this._setTemplateParams(e))},_validateData:function(e){if(void 0===e||e==={}||null===e)throw"Invalid data for template applying: "+e}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(0),a=i(r),l=n(2),c=i(l),h=n(181),u=i(h),d=n(36),E=i(d),p=n(77),_=i(p),m=n(23),C=i(m),f=n(502),g=n(40),T=i(g),S=n(49),v=i(S),A=n(156),N=i(A),I=n(3),L=i(I),O=n(91),b=i(O),y=Symbol("_singletonEnforcer"),P=Symbol("_applet"),M=Symbol("_currentModel"),R=Symbol("_layoutMode"),w=Symbol("_isPlaying"),B=Symbol("_isAppletReady"),V=Symbol("_isMuted"),F=Symbol("_queuedName"),D=Symbol("_queuedPerformerDetails"),k=Symbol("_isPerformerDetailsInProgress"),G=u.default.memberApplet,x=a.default.Config,U=function(){function e(t){if(o(this,e),t!==y)throw"This is a singleton class, please use instance getter.";this.setPrivates(),this.setConfig(),this.appletReady=this.setApplet()}return s(e,[{key:"setPrivates",value:function(){this[M]=null,this[R]=c.default.HTML5AppletComponent.LAYOUT_MODE_FULL,this[w]=!1,this[B]=!1,this[V]=!1,this[F]=null,this[D]=null,this[k]=!1}},{key:"setConfig",value:function(){C.default.getFlashPluginStatus(function(e){x.set("isHtml5ListPagePlayer",e!==c.default.Flash.PLUGIN_ENABLED&&!Ext.isIE)}),x.set("appletType",c.default.appletType.HTML5)}},{key:"_adaptAppletApi",value:function(){var e=this,t=function(t,n){e.isMinimized||E.default.appletEvents(t,n)},n=function(){e[B]&&G.streamReadyHandler.call(e)},i=function(t){G.appletReadyHandler.call(e,t),e[B]=!0,L.default.isHtml5ChatPage()||e.setToMinimalLayoutMode(),e[F]&&(e.playStreamByModelName(e[F]),e[F]=null),e[D]&&(e.playStreamByPerformerDetails(e[D]).catch(function(){}),e[D]=null)};v.default.subscribe(function(t){switch(t.type){case S.ACTION.USER_BUY_TICKET_SUCCESS:setTimeout(function(){try{e[P].reloadScheduledShowData(t.showId),e[P].scheduledShowBookingSuccess(t.showId)}catch(e){console.error(e)}},1100);break;case S.ACTION.USER_BUY_TICKET_FAILED:try{e[P].scheduledShowBookingFailed(t.showId)}catch(e){console.error(e)}break;case S.ACTION.SHOW_CANCELED:try{var n=v.default.getWallData().shows.byId[t.showId];n&&!0===n.isUserSubscribed&&(e[P].notifyScheduledShowCancellation(t.showId),e[P].reloadScheduledShowData(t.showId))}catch(e){console.error(e)}}});var o=function(e){v.default.subscribeScheduleShow(e).then(function(){E.default.trackGenericEvent({eventCategory:E.default.CONST.PAGE.SCHEDULED_SHOW,eventAction:E.default.CONST.ACTION.SCHEDULED_SHOW_BOOKED,eventLabel:"applet"}),v.default.buyTicketSuccess(e)}).catch(function(t){v.default.buyTicketFailed(e),console.warn(t)})};(0,f.AdapterAPI)(this[P],{onNotifyAppletReady:i,onNotifyStreamReady:n,onAnalyticsEvent:t,onBookScheduledShow:o,onAppletInited:window.appletFullInited,onCloseChat:G.onClosePopup,onNotifyShowWallorBioPage:G.onCheckMyWallClicked,onSwitchToPerformer:G.getPerformerDetails,onAddToPerformerHistory:G.getNextModel,onNotifyStartPrivate:G.onPrivateClick,onNotifyEndPrivate:G.onPrivateEnd,onNotifyEndPeek:G.onPeekEnd,onSetFavorite:G.onClickFavoriteButton,onNotifyPrivateTeasersLeft:G.privateTeaserLeft,onNotifyAppletLoginSuccess:G.appletLogin,onSetLayoutMode:G.setLayoutMode,onUpdateScrollPosition:G.updateScrollPosition,onSendOfflineMessage:G.openMessages,onSendRoutingReport:G.trackBuyingRoute,onShowQuickBuy:G.getCreditsClick,onShowOverlaySignup:G.openSignup,onShowOverlayLogin:G.openLogin,onUseFlash:G.useFlash,onSubscribe:G.subscribe,onOutOfContent:G.onOutOfContent,onShowAutoplayTutorial:G.onShowAutoplayTutorial})}},{key:"_loadAppletResources",value:function(e,t){var n=this,i=a.default.Config.get("scriptSrc");(0,N.default)([i.nanoPlayer,i.webRtc,i.scrollBar,i.memberApplet],function(){var i=window.MemberClient;i&&(n[P]=new i(e),n._adaptAppletApi(),t(n[P]),n[P].init())})}},{key:"_checkIfCanPlayVideoWithoutInteraction",value:function(){var e=this;return new Promise(function(t){T.default.isNotSupportedVideoAutoPlay()?(e._appendVideoTag(),e._tryToPlayVideo().then(function(){e._removeExternalVideoTag(),t()}).catch(function(){a.default.Config.set("appletRequiredClick",!0),t()})):t()})}},{key:"_tryToPlayVideo",value:function(){return document.getElementById(c.default.HTML5ChatPageComponent.VIDEO_TAG_ID).play()}},{key:"_removeExternalVideoTag",value:function(){var e=document.getElementById(c.default.HTML5ChatPageComponent.VIDEO_TAG_ID);return e&&e.parentNode.removeChild(e)}},{key:"setApplet",value:function(){var e=a.default.Config.get("HTMLAppletVars");return e.containerid="member_client_container",e.scheduleshowmode="jasmin",this.createApplet(e)}},{key:"createApplet",value:function(e){var t=this;return new Promise(function(n,i){try{window.arma?(t[P]=window.arma,window.arma=null,t[B]=!0,t._adaptAppletApi(),n(t[P])):(t[P]=(0,f.AdapterAPI)(),t._checkIfCanPlayVideoWithoutInteraction().then(function(){t._loadAppletResources(e,n)})),a.default.Config.get("isInternalRequest")&&(window.arma=t[P])}catch(e){i(e)}})}},{key:"_appendVideoTag",value:function(){var e=document.createElement("video");e.id=c.default.HTML5ChatPageComponent.VIDEO_TAG_ID,e.src=x.get("testVideoUrl"),e.style="display:none;",document.body.appendChild(e)}},{key:"setToMinimalLayoutMode",value:function(){this[P].setLayoutToMinimized(),this.mute(),this[R]=c.default.HTML5AppletComponent.LAYOUT_MODE_MINIMAL}},{key:"setToFullLayoutMode",value:function(){this[R]!==c.default.HTML5AppletComponent.LAYOUT_MODE_FULL&&(this[P].changeToInitialLayout(),this.unMute(),this[R]=c.default.HTML5AppletComponent.LAYOUT_MODE_FULL)}},{key:"_saveToHistory",value:function(e){var t=e.p_id||e.pid,n=e.performer_id||e.performerid,i=e.status;b.default.instance.add({nick:n,id:t,status:i})}},{key:"playStreamByModelName",value:function(e){var t=this;return x.set("memberAppletVersion",c.default.HTML5ChatPageComponent.APPLET_VERSION),new Promise(function(n,i){if(!t[B])return t[F]=e,void i("Applet is not ready");t[M]===e&&(t[M]!==e||!1!==t[w])||t[k]?n(e):(t[M]=e,t[k]=!0,_.default.get(e).then(function(i){t[k]=!1,t[P].performerDetailsReady(i.responseText),t[w]=!0,t._saveToHistory(i.json.data),n(e)}).catch(function(e){t[k]=!1,t[M]=null,i(e)}))})}},{key:"playStreamByPerformerDetails",value:function(e){var t=this;return x.set("memberAppletVersion",c.default.HTML5ChatPageComponent.APPLET_VERSION),new Promise(function(n,i){if(!t[B])return t[D]=e,void i("Applet is not ready");t[P].performerDetailsReady(JSON.stringify({success:!0,data:e})),t[M]=e.pid,t[w]=!0,n(e.pid)})}},{key:"updateRecommender",value:function(e){this[P].updateRecommender(e)}},{key:"subscriptionChanged",value:function(){this[P].subscriptionChanged()}},{key:"backToPrivate",value:function(){this[P].backToPrivate()}},{key:"sizeChange",value:function(){this[P].sizeChange()}},{key:"enableKeyboard",value:function(){this[P].enableKeyboard()}},{key:"disableKeyboard",value:function(){this[P].disableKeyboard()}},{key:"performerDetailsReady",value:function(e){this[P].performerDetailsReady(e)}},{key:"hideChat",value:function(){this[B]&&(this[R]!==c.default.HTML5AppletComponent.LAYOUT_MODE_MINIMAL&&this.setToMinimalLayoutMode(),this[w]&&(this[P].hideChat(),this[w]=!1))}},{key:"setSessionId",value:function(e){this[P].setSessionId(e)}},{key:"mute",value:function(){!this[V]&&this[B]&&(this[P].videoPlayingStarted(),this[V]=!0)}},{key:"unMute",value:function(){this[V]&&this[B]&&(this[P].videoPlayingStopped(),this[V]=!1)}},{key:"addFavorite",value:function(){this[P].addFavourite()}},{key:"removeFavorite",value:function(){this[P].removeFavourite()}},{key:"name",get:function(){return"HTML5AppletComponent"}},{key:"applet",get:function(){return this[P]}},{key:"currentModel",get:function(){return this[M]}},{key:"layoutMode",get:function(){return this[R]}},{key:"isAppletReady",get:function(){return this[B]}},{key:"isMinimized",get:function(){return this.layoutMode===c.default.HTML5AppletComponent.LAYOUT_MODE_MINIMAL}}],[{key:"callPlayOnAppletVideo",value:function(){var e=document.querySelector("#h5video video");try{e.play()}catch(e){console.error("No video tag in applet")}}},{key:"appletReady",get:function(){return this[null].appletReady}},{key:"instance",get:function(){return this[null]||(this[null]=new e(y)),this[null]}}]),e}();t.default=U},,function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.ACTION=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(0),a=i(r),l=n(2),c=i(l),h=Symbol("_singletonEnforcer"),u=Symbol("_instance"),d=t.ACTION={CHANGE_ITEM_STATUS:"changeItemStatus",MOVE_ITEM_TO_FIRST_POSITION:"moveItemToTheFirstPosition",RENDER_NEW_ITEM:"renderNewItem",REMOVE_ITEM:"removeItem"},E=function(){function e(t){if(o(this,e),t!==h)throw"This is a singleton class, please use instance getter.";this.init()}return s(e,[{key:"init",value:function(){this.listeners=[],this._setInitialData()}},{key:"_setInitialData",value:function(){var e=this.getDataFromStorage(),t=e.performersData,n=e.performerOrder;this._performersData=t,this._performerOrder=n}},{key:"_getData",value:function(){var e=a.default.Cookie.get(c.default.PerformerHistoryComponent.COOKIE_MODELS_HISTORY);return e&&JSON.parse(e)||[]}},{key:"_normalizeData",value:function(e){var t={performersData:{},performerOrder:[]};return e.reduce(function(e,t){var n=t[0],i=t[1],o=t[2];return e.performersData[n]={id:n,nick:i,status:o,url:a.default.Config.get("newPerformerImageSmall")},e.performerOrder.push(n),e},t),t}},{key:"_updateStorage",value:function(){var e=JSON.stringify(this._serializeData());this._saveData(e)}},{key:"_serializeData",value:function(){var e=this;return this._performerOrder.map(function(t){var n=e._performersData[t];return[n.id,n.nick,n.status]})}},{key:"_saveData",value:function(e){a.default.Cookie.set(c.default.PerformerHistoryComponent.COOKIE_MODELS_HISTORY,e)}},{key:"getDataFromStorage",value:function(){var e=this._getData();return this._normalizeData(e)}},{key:"add",value:function(e){var t=e.nick,n=e.id,i=e.status;if(n){n=n.toString();var o=a.default.isString(t)&&!a.default.isEmpty(t),s=this._performersData[n],r=this._performerOrder.indexOf(n),l=!1;if(o){if(s&&-1!==r){var c=0===r;s.status!=i&&(l=!0,this.update({type:d.CHANGE_ITEM_STATUS,id:n,status:i})),c||(this._performerOrder.splice(r,1),this._performerOrder.unshift(n),l=!0,this.update({type:d.MOVE_ITEM_TO_FIRST_POSITION,performerPosition:r}))}else l=!0,this._performerOrder.length>=this.historyItemLimit&&(this.update({type:d.REMOVE_ITEM,position:this._performerOrder.length-1}),this._performerOrder.shift()),this._performersData[n]={nick:t,id:n,status:i},this._performerOrder.unshift(n),this.update({type:d.RENDER_NEW_ITEM,id:n,performersData:this._performersData});l&&this._updateStorage()}}}},{key:"synchronizeDataWithStorage",value:function(){this._setInitialData()}},{key:"getPerformerOrder",value:function(){return this._performerOrder}},{key:"getPerformersData",value:function(){return this._performersData}},{key:"getActivePerformer",value:function(){var e=a.default.first(this.getPerformerOrder());return this.getPerformersData()[e]}},{key:"onStatusChange",value:function(e){var t=this,n=e.statuses,i=!1;this._performerOrder.map(function(e){var o=n.hasOwnProperty(e),s=n[e];o&&t._performersData[e].status!==n[e]&&(i=!0,t._performersData[e].status=s,t.update({type:d.CHANGE_ITEM_STATUS,id:e,status:s}))}),i&&this._updateStorage()}},{key:"update",value:function(e){this.listeners.map(function(t){return t(e)})}},{key:"subscribe",value:function(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");this.listeners.push(e)}},{key:"unsubscribe",value:function(e){var t=this.listeners.indexOf(e);t>-1&&this.listeners.splice(t,1)}},{key:"historyItemLimit",get:function(){return 25}}],[{key:"instance",get:function(){return this[u]||(this[u]=new e(h)),this[u]}}]),e}();t.default=E},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var i=n(0),o=n(2),s=(n(86),n(264),function(e){s.superclass.constructor.call(this,e)});e.exports=Ext.extend(s,i.View,{name:"SubscriptionButtonViewAbstract",loaderButtonClass:"loader_button",subscribeButtonClass:"join_channel_container",displayLoader:function(){return this.fireEvent(o.SubscriptionButtonViewAbstract.EVENT_BUTTON_LOADER_SHOW,{model:this.model,scope:this}),this.element.addClass(this.loaderButtonClass),this},hideLoader:function(){return this.fireEvent(o.SubscriptionButtonViewAbstract.EVENT_BUTTON_LOADER_HIDE,{model:this.model,scope:this}),this.element.removeClass(this.loaderButtonClass),this},getContainer:function(){return this.element.parent("."+this.subscribeButtonClass)},setButtonStatus:function(e){this.element.data("subscription-status",e)},_removeTooltip:function(){this.getContainer()&&i.fireEvent(o.TooltipView.EVENT_HIDE_TOOLTIP,this.getContainer().dom)},onButtonClick:function(e){var t=e.getTarget("[data-subscription-status]",5,!0);t&&!t.data("propagation")?e.stopEvent():e.preventDefault(),this.fireEvent(o.SubscriptionButtonViewAbstract.EVENT_BUTTON_CLICK,{model:this.model,scope:this})},onModelStatusChange:function(){this.setButtonStatus(this.model.getStatus()),this._removeTooltip()},bind:function(){s.superclass.bind.call(this),i.on([{element:this.element,event:"click",handler:this.onButtonClick},{element:this.model,event:o.SubscriptionModel.EVENT_STATUS_CHANGE,handler:this.onModelStatusChange},{element:this.elementScope,event:"unbind",handler:this.unbind}],this)}})},function(e,t,n){var i=n(0),o=n(2),s=n(700),r=n(702),a=n(264),l=n(706),c=n(710),h=n(714),u=n(11),d=n(14),E=function(e,t){E.superclass.constructor.call(this,e,t)};E.getInstance=function(){return E.prototype.instance instanceof E||(E.prototype.instance=new E(Ext.getBody(),{})),E.prototype.instance},e.exports=Ext.extend(E,i.Component,{name:"SubscriptionComponent",_subscribePendingComponents:null,init:function(e,t){this._subscribePendingComponents={},i.addEvents(o.SubscriptionComponent.GLOBALEVENT_SUBSCRIPTION_CHANGE),E.superclass.init.call(this,e,t),this._getSubscribeController()},addNewButton:function(e,t,n){e instanceof Ext.CompositeElementLite?i.each(e.elements,function(e){this._controller.addNewButton(Ext.get(e),t,n)},this):this._controller.addNewButton(e,t,n)},removeButton:function(e){e instanceof Ext.CompositeElementLite?i.each(e.elements,function(e){this._controller.removeButton(Ext.get(e))},this):this._controller.removeButton(e)},startPendingState:function(e){this._setSubscribePendingComponent(e.transactionId,e.performerName)},_getSubscribeController:function(){return this._controller=new s({items:{view:{component:this._getView(),listeners:{}},model:{component:this._getModel(),listeners:{}}}}),i.on(this._controller,o.SubscriptionController.EVENT_SUBSCRIBE_BUTTON_CLICK,this.onSubscribeButtonClick,this),this._controller},_setSubscribeComponent:function(e,t){this._subscribeComponent instanceof l&&(this._subscribeComponent.destroy(),delete this._subscribeComponent),this._subscribeComponent=new l(e.element,{buttonView:e,buttonModel:t})},_setSubscribePendingComponent:function(e,t){this._activeButtonView||(this._activeButtonView=this._controller.getButtonByPerformerName(t)[0]),this._subscribePendingComponents[e]instanceof c||(this._subscribePendingComponents[e]=new c(this.element,{transactionId:e,performerName:t,buttonView:this._activeButtonView}),i.on([{element:this._subscribePendingComponents[e],event:o.SubscribePendingComponent.EVENT_SUBSCRIBE_PENDING,handler:this.onSubscribePending},{element:this._subscribePendingComponents[e],event:o.SubscribePendingComponent.EVENT_SUBSCRIBED,handler:this.onSubscribed},{element:this._subscribePendingComponents[e],event:o.SubscribePendingComponent.EVENT_SUBSCRIBE_FAILED,handler:this.onSubscribeFailed}],this),this._subscribePendingComponents[e].run())},_setRenewSubscriptionCompponent:function(e,t){this._renewSubscriptionComponent instanceof h&&(this._renewSubscriptionComponent.destroy(),delete this._renewSubscriptionComponent),this._renewSubscriptionComponent=new h(this.element,{buttonView:e,buttonModel:t})},_setActiveButton:function(e,t){this._activeButtonView=e,this._activeButtonModel=t},onSubscribeStart:function(e){this._setSubscribePendingComponent(e.transactionId,e.performerName)},onSubscribePending:function(e){this._controller.disableSubscription().setSubscriptionStatus(e.performerName,"pending")},onSubscribed:function(e){this._controller.setSubscriptionStatus(e.performerName,"subscribed"),i.fireEvent(o.SubscriptionComponent.GLOBALEVENT_SUBSCRIPTION_CHANGE,{performerName:e.performerName,buttonView:e.buttonView})},onSubscribeFailed:function(e){this._controller.setSubscriptionStatus(e.performerName,"non_subscribed")},onRenewSubscriptionSuccess:function(e){this._controller.setSubscriptionStatus(e.performerName,"subscribed"),i.fireEvent(o.SubscriptionComponent.GLOBALEVENT_SUBSCRIPTION_CHANGE,{performerName:e.performerName})},onFanClubUnsubscriptionFeedbackSubmitSuccess:function(e){this._controller.setSubscriptionStatus(e.performerName,"canceled"),i.fireEvent(o.SubscriptionComponent.GLOBALEVENT_SUBSCRIPTION_CHANGE,{performerName:e.performerName})},onSubscribeButtonClick:function(e){switch(d.isLoggedIn()||(this._setActiveButton(e.scope,e.model),this._setSubscribeComponent(this._activeButtonView,this._activeButtonModel)),e.model.getStatus()){case o.SubscriptionComponent.SUBSCRIPTION_STATUS_SUBSCRIBED:e.model.isUnsubscribeEnabled()&&u.navigate("fanclubunsubscriptionfeedback/"+e.model.getPerformerName(),{trigger:!0,preventNavigateBack:!0});break;case o.SubscriptionComponent.SUBSCRIPTION_STATUS_NON_SUBSCRIBED:this._setActiveButton(e.scope,e.model),this._setSubscribeComponent(this._activeButtonView,this._activeButtonModel);break;case o.SubscriptionComponent.SUBSCRIPTION_STATUS_PENDING:break;case o.SubscriptionComponent.SUBSCRIPTION_STATUS_CANCELED:this._setActiveButton(e.scope,e.model),this._setRenewSubscriptionCompponent(this._activeButtonView,this._activeButtonModel)}},_getModel:function(){return new a},_getView:function(){return new r({})},_startPaymentProcess:function(){u.navigate("payment",{trigger:!0,preventNavigateBack:!1,replace:!1,keepActiveModal:!0,lockActiveModal:!0})},onJoinAttemptInsufficientCredit:function(){this._startPaymentProcess()},onAlreadySubscribed:function(e){this._controller.setSubscriptionStatus(e,"subscribed"),i.fireEvent(o.SubscriptionComponent.GLOBALEVENT_SUBSCRIPTION_CHANGE,{performerName:ev.performerName})},bind:function(){E.superclass.bind.call(this),i.on([{element:i.Broadcaster,event:o.SubscribeComponent.GLOBALEVENT_JOIN_ATTEMPT_INSUFFICIENT_CREDIT,handler:this.onJoinAttemptInsufficientCredit},{element:i.Broadcaster,event:o.SubscribeComponent.GLOBALEVENT_ALREADY_SUBSCRIBED,handler:this.onAlreadySubscribed},{element:i.Broadcaster,event:o.RenewSubscriptionComponent.GLOBALEVENT_SEND_CONFIRMATION_SUCCESS,handler:this.onRenewSubscriptionSuccess},{element:i.Broadcaster,event:o.FanClubUnsubscriptionFeedbackComponent.GLOBALEVENT_FANCLUB_UNSUBSCRIPTION_FEEDBACK_SUBMIT_SUCCESS,handler:this.onFanClubUnsubscriptionFeedbackSubmitSuccess},{element:i.Broadcaster,event:o.SubscribeComponent.GLOBALEVENT_SUBSCRIBE_START,handler:this.onSubscribeStart}],this)}})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var i=n(0),o=n(2),s=n(53),r=function(){this.handlers=[],i.bindAll(this,"checkUrl"),i.bindAll(this,"onHashChange"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},a=/^[#!\/]|\s+$/g,l=/^\/+|\/+$/g,c=/#!.*$/;r.started=!1,Ext.extend(r,i.Component,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root&&!this.getSearch()},matchRoot:function(){return this.decodeFragment(this.location.pathname).slice(0,this.root.length-1)+"/"===this.root},decodeFragment:function(e){return decodeURI(e.replace(/%25/g,"%2525"))},getSearch:function(){var e=this.location.href.replace(/#.*/,"").match(/\?.+/);return e?e[0]:""},getHash:function(e){var t=(e||this).location.href.match(/#!?(.*)$/);return t?t[1]:""},getPath:function(){var e=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===e.charAt(0)?e.slice(1):e},getFragment:function(e){return null==e&&(e=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),e.replace(a,"")},start:function(e){if(r.started)throw new Error("Backbone.history has already been started");if(r.started=!0,this.options=Ext.apply({root:"/"},this.options,e),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._hasHashChange="onhashchange"in window,this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(l,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var t=this.root.slice(0,-1)||"/";return this.location.replace(t+s.getFullHash(this.getPath())),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var n=document.body,i=n.insertBefore(this.iframe,n.firstChild).contentWindow;i.document.open(),i.document.close(),i.location.hash=s.getFullHash(this.fragment)}if(this._usePushState?addEventListener("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?addEventListener("hashchange",this.onHashChange,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var e=window.removeEventListener||function(e,t){return detachEvent("on"+e,t)};this._usePushState?e("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&e("hashchange",this.onHashChange,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),r.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();if(t===this.fragment&&this.iframe&&(t=this.getHash(this.iframe.contentWindow)),t===this.fragment)return!1;this.iframe&&this.navigate(t),this.loadUrl()},onHashChange:function(e){this._hashChange(e)},_hashChange:function(e){var t=this.getFragment();if(t===this.fragment)return!1;i.fireEvent(o.History.GLOBALEVENT_HASH_CHANGED,{ev:e,current:t,scope:this})},loadUrl:function(e,t){return!!this.matchRoot()&&(e=this.fragment=this.getFragment(e),i.any(this.handlers,function(n){if(n.route.test(e))return n.callback(e,t),!0}))},navigate:function(e,t){if(!r.started)return!1;t&&!0!==t||(t={trigger:!!t}),e=this.getFragment(e||"");var n=this.root;""!==e&&"?"!==e.charAt(0)||(n=n.slice(0,-1)||"/");var i=n+e;if(e=this.decodeFragment(e.replace(c,"")),this.fragment!==e){if(this.fragment=e,this._usePushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,i);else{if(!this._wantsHashChange)return this.location.assign(i);if(this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getHash(this.iframe.contentWindow)){var o=this.iframe.contentWindow;t.replace||(o.document.open(),o.document.close()),this._updateHash(o.location,e,t.replace)}this._fixIeTitleChangeOnHashChange()}return t.trigger?this.loadUrl(e,t.data):void 0}},_fixIeTitleChangeOnHashChange:function(){if(Ext.isIE11||Ext.isIE){var e=document.title.split("#")[0];setTimeout(function(){0==document.title.indexOf("#")&&0!==document.title.length&&(document.title=e)},100)}},_updateHash:function(e,t,n){if(0!==t.indexOf(o.UrlHelper.HASH_PREFIX)&&(t=o.UrlHelper.HASH_PREFIX.concat(t)),n){var s=e.href.replace(/(javascript:|#).*$/,"");e.replace(s+"#"+t)}else e.hash="#"+t;i.fireEvent(o.History.GLOBALEVENT_HASH_UPDATE,{scope:this})},pushState:function(e,t,n){try{this.history.pushState(e,t,n),this.setTitle(t)}catch(e){console.log("error History.js: ",e)}},replaceState:function(e,t,n){try{this.history.replaceState(e,t,n),this.setTitle(t)}catch(e){console.log("error History.js: ",e)}},setTitle:function(e){document.title=e}}),r.getInstance=function(){return r.prototype.instance instanceof r||(r.prototype.instance=new r),r.prototype.instance},e.exports=r.getInstance()},function(e,t,n){var i=n(0),o=n(2),s=n(15),r=n(14),a=function(){this.init()};a.getInstance=function(){return a.prototype.instance instanceof a||(a.prototype.instance=new a),a.prototype.instance},a.EVENT_SESSION_EXPIRED="session-expired",Ext.extend(a,Ext.util.Observable,{route:void 0,delayTime:15e5,cookieName:"session",init:function(){i.addEvents(a.EVENT_SESSION_EXPIRED),this.setOldSessionCookie(),this.getCookieOnLoad(),i.Broadcaster.on(o.Ajax.GLOBALEVENT_REQUEST_COMPLETE,this.checkCookieChanges,this),i.Broadcaster.on(o.Ajax.GLOBALEVENT_BEFORE_REQUEST,this.checkCookieChanges,this)},getCookieOnLoad:function(){this.cookieValueOnLoad=i.Cookie.get(this.cookieName)},checkUserSession:function(e){this.route=e.route?e.route:this.route,this.delayTime=e.delayTime?e.delayTime:this.delayTime,this.cookieName=e.cookieName?e.cookieName:this.cookieName,new Ext.util.DelayedTask(function(){this.start()},this).delay(this.delayTime)},start:function(){this.sessionCheckTask=Ext.TaskMgr.start({run:this.sessionChecker,interval:this.delayTime,scope:this})},stop:function(){Ext.TaskMgr.stop(this.sessionCheckTask)},sessionChecker:function(){this.setOldSessionCookie(),this.getOldUserType(),s.request({type:"json",method:"post",url:i.getUrl(this.route,{},{},""),scope:this,success:this.checkCookieChanges,error:this.checkCookieChanges,failure:this.checkCookieChanges})},setOldSessionCookie:function(){this.oldSessionCookieValue=this.getSessionCookie()},setNewSessionCookie:function(){this.newSessionCookieValue=this.getSessionCookie()},getSessionCookie:function(){return i.Cookie.get(this.cookieName)},checkCookieChanges:function(){if(this.setNewSessionCookie(),this.getNewUserType(),this.newSessionCookieValue!=this.oldSessionCookieValue){if(r.getUserType(this.cookieValueOnLoad)!=o.User.FREE_MEMBER||this.newUserType!=o.User.PAYING_MEMBER)return this.oldSessionCookieValue=this.newSessionCookieValue,!1;this.getOldUserType()}return!0},fireExpired:function(){i.fireEvent(a.EVENT_SESSION_EXPIRED,this)},getOldUserType:function(){return this.oldUserType=r.getUserType()},getNewUserType:function(){return this.newUserType=r.getUserType()},sessionCheckerError:function(e){i.Cookie.get("forceConsole")&&console.info("error: ",e)},sessionCheckerFailure:function(e){i.Cookie.get("forceConsole")&&console.info("failure: ",e)},isAlive:function(){return r.isLoggedIn()&&void 0!=r.getUserType()||!r.isLoggedIn()&&void 0==r.getUserType()}}),e.exports=a.getInstance()},,,,,,function(e,t,n){var i=n(0),o=n(2),s=n(23),r=n(273),a=function(e){a.superclass.constructor.call(this,e)};e.exports=Ext.extend(a,i.View,{name:"FlashChatPageViewAbstract",windowResizeDebounceTime:300,mainContainerId:"chatblock",footerTopLinkSel:".footer_link",headerTopLinkClass:"header_top_link",chatAppletId:"chatapplet",headerId:"header",footerId:"footer",freechatId:"freechat",_memberAppletEl:null,_mainContainerEl:null,showHTMLClass:"show-html",showFlashClass:"show-flash",init:function(){this.addEvents(o.FlashChatPageViewAbstract.EVENT_WINDOW_RESIZE,o.FlashChatPageViewAbstract.EVENT_APPLET_MINIMIZE),this._selectElements(),a.superclass.init.call(this)},_selectElements:function(){this._freechatEl=Ext.get(this.freechatId),this._mainContainerEl=Ext.get(this.mainContainerId)},minimizeMemberApplet:function(){s.minimize(this.chatAppletId)},setFreeChatBlock:function(){this._freechatEl.display("block")},_showChatBlock:function(){switch(Ext.getBody().addClass("chat-opened"),this._mainContainerEl.removeClass("hidden"),this.name){case"HTML5ChatPageModalView":this._mainContainerEl.removeClass(this.showFlashClass);break;case"FlashChatPageModalView":this._mainContainerEl.removeClass(this.showHTMLClass)}},embedAppletWithoutSwfObject:function(e){var t;i.each(e.flashvars,function(e,n){t?t+="&"+n+"="+e:t=n+"="+e},this),Ext.fly(e.id).remove(),Ext.DomHelper.append(this.freechatId,(new r).render({chatAppletId:e.id,memberAppletUrl:e.url,memberAppletFlashvarsQS:t}))},embedAppletWithSwfObject:function(e){swfobject.embedSWF(e.url,e.id,e.width||"1",e.height||"1",e.version||"9.0.0",e.expressInstallSwfurl||"expressInstall.swf",e.flashvars,e.params,e.attributes)},createMemberAppletContainer:function(){this._freechatEl.createChild('<div id="'+this.chatAppletId+'"></div>'),this._freechatEl.display("block")},getAppletEl:function(){return this._memberAppletEl||(this._memberAppletEl=Ext.get(this.chatAppletId)),this._memberAppletEl},onAppletSizeChange:function(){this.getAppletEl(),this._memberAppletEl.dom.width="",this._memberAppletEl.dom.height=this.model.getAppletSize().height,this.element.setStyle({width:"",height:this.model.getAppletSize().height+"px"}),this._memberAppletEl.dom.removeAttribute("style")},minimizeApplet:function(){this.element.setStyle({width:"1px",height:"1px"}),this.fireEvent(o.FlashChatPageViewAbstract.EVENT_APPLET_MINIMIZE,this)},resetAppletSize:function(){this.element.setStyle({width:"",height:""}),this.getAppletEl().dom.removeAttribute("style")},onWindowResize:function(){this.fireEvent(o.FlashChatPageViewAbstract.EVENT_WINDOW_RESIZE,{scope:this})},removeMemberApplet:function(){this.getAppletEl().remove(),this._memberAppletEl=null},onLayoutModeChange:function(){this.model.isCurrentLayoutMode(o.FlashChatPageControllerAbstract.LAYOUT_MODE_NORMAL)||this.model.isCurrentLayoutMode(o.FlashChatPageControllerAbstract.LAYOUT_MODE_FULLSCREEN)?this._mainContainerEl.removeClass(o.FlashChatPageControllerAbstract.LAYOUT_MODE_FULL):this._mainContainerEl.addClass(o.FlashChatPageControllerAbstract.LAYOUT_MODE_FULL)},updateScrollPosition:function(e){var t=window.scrollX||window.pageXOffset||document.documentElement.scrollLeft,n=window.scrollY||window.pageYOffset||document.documentElement.scrollTop;window.scrollTo(t,n+e)},bind:function(){a.superclass.bind.call(this),i.on([{element:Ext.fly(window),event:"resize",handler:i.debounce(this.onWindowResize,this.windowResizeDebounceTime)},{element:this.model,event:o.ChatPageModel.EVENT_LAYOUT_MODE_CHANGE,handler:this.onLayoutModeChange},{element:this.model,event:o.ChatPageModel.EVENT_APPLET_SIZE_CHANGE,handler:this.onAppletSizeChange}],this)}})},,,,,,,,,function(e,t,n){var i=n(0),o=n(0).Component,s=n(2),r=function(e,t){r.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(r,o,{name:"ModelContentViewAbstract",chatBlockLoaderId:"chat_block_loader",hiddenCls:"hidden",freechatId:"freechat",memberClientId:"member_client_container",chatblockId:"chatblock",init:function(e,t){r.superclass.init.call(this,e,t),this.chatBlockLoaderEl=Ext.get(this.chatBlockLoaderId),this.freechatEl=Ext.get(this.freechatId),this.memberClientEl=Ext.get(this.memberClientId),this.chatBlockEl=Ext.get(this.chatblockId)},showLoader:function(e){this.chatBlockLoaderEl&&(e?this.chatBlockLoaderEl.removeClass(this.hiddenCls):this.chatBlockLoaderEl.addClass(this.hiddenCls))},scrollToElement:function(e){TweenLite.to("html, body",.7,{scrollTop:e.getTop(),ease:Cubic.easeOut})},scrollToModalWall:function(){var e=i.Config.get("OverlayAppletType")===s.appletType.HTML5,t=e?this.memberClientEl:this.freechatEl,n=t.getHeight(),o=parseInt(t.getStyle("marginTop"));TweenLite.to(this.chatBlockEl.dom,.7,{scrollTop:n+o,ease:Cubic.easeOut})}})},function(e,t,n){var i=n(0),o=n(2),s=(n(86),function(e){s.superclass.constructor.call(this,e)});e.exports=Ext.extend(s,i.View,{name:"SubscribeViewAbstract",tooltipContainerEl:null,renderTooltip:function(e,t){return i.fireEvent(o.TooltipView.EVENT_SHOW_TOOLTIP,{element:this.tooltipContainerEl.dom,attributes:{title:e,trigger:"sticky",target:this.tooltipContainerEl.data("pt-target")||!0,offsetTop:5,size:"small",classes:(t||this.name)+"-protip",gravity:!1,animate:!1}}),this._tooltipEl=Ext.select("."+(t||this.name)+"-protip"),i.on([{element:this._tooltipEl,event:"click",handler:this.onConfirmButtonClick,options:{delegate:"."+this.confirmButtonClass,single:!0}},{element:this._tooltipEl,event:"click",handler:this.onLoginButtonClick,options:{delegate:"."+this.loginButtonClass}},{element:this._tooltipEl,event:"click",handler:this.onSignUpButtonClick,options:{delegate:"."+this.signUpButtonClass}}],this),this},showErrorTooltip:function(){return this._displayInfoTooltip(i.translate("An unexpected error occurred, try again later.")),this},_displayInfoTooltip:function(e){i.fireEvent(o.TooltipView.EVENT_SHOW_TOOLTIP,{element:this.tooltipContainerEl.dom,attributes:{title:e,trigger:"sticky",target:this.tooltipContainerEl.data("pt-target")||this.tooltipContainerEl.dom,position:"bottom-right",gravity:!0,autoHide:5e3}})},removeTooltip:function(){i.fireEvent(o.TooltipView.EVENT_HIDE_TOOLTIP,this.tooltipContainerEl.dom)},onConfirmButtonClick:function(){},onLoginButtonClick:function(){},onSignUpButtonClick:function(){}})},function(e,t,n){var i=n(0),o=n(2),s=n(14),r=function(e,t){r.superclass.constructor.call(this,e,t)};r.getInstance=function(){return r.prototype.instance instanceof r||(r.prototype.instance=new r(Ext.getBody(),{})),r.prototype.instance},e.exports=Ext.extend(r,i.Component,{name:"DesktopNotificationComponent",localStorageNamePrefix:"DesktopNotification_",_isNotificationDisabled:!1,_isNotificationTemporaryDisabled:!1,init:function(e,t){r.superclass.init.call(this,e,t),"Notification"in window&&(this._defaultOptions={icon:i.Config.get("staticUrl")+"/image/background/notification/desktop_notification_new_message_logo.jpg",title:"",message:"",displayTime:5e3,url:null,data:null,life:10},s.isLoggedIn()&&this._isNotificationEnabled()&&this.requestPermission())},requestPermission:function(){"Notification"in window&&this._isNotificationEnabled()&&this._isPermissionRequestable()&&window.Notification.requestPermission()},addNotification:function(e){"Notification"in window&&this._isNotificationEnabled()&&(i.Config.get("isOnPrivate")||(this._isPermissionRequestable()?window.Notification.requestPermission(i.bind(function(t){"granted"===t&&this._createNotification(e)},this)):this._isPermissionDenied()||this._createNotification(e)))},_isNotificationEnabled:function(){return!this._isNotificationDisabled&&!this._isNotificationTemporaryDisabled},disableNotificationsTemporary:function(){this._isNotificationTemporaryDisabled=!0},enableNotificationsTemporary:function(){this._isNotificationTemporaryDisabled=!1},_createNotification:function(e){var t=Math.floor(Date.now()/1e3),n=e.title||this._defaultOptions.title,i=e.message||this._defaultOptions.message,o=e.life||this._defaultOptions.life,s=n+i,r=s.hashCode();if(!this._checkLocalStorage(r,t)){this._storeInLocalStorage(r,t,o);var a=new Notification(e.title||this._defaultOptions.title,{body:e.message||this._defaultOptions.message,icon:e.icon||this._defaultOptions.icon,tag:r,data:e.data||this._defaultOptions.data});setTimeout(a.close.bind(a),e.displayTime||this._defaultOptions.displayTime),(e.url||e.clickCallback)&&(a.onclick=function(t){e.url?window.location.href=e.url:e.clickCallback(t.target)})}},_storeInLocalStorage:function(e,t,n){try{window.localStorage.setItem(this.localStorageNamePrefix+e,JSON.stringify({timestamp:t,life:n}))}catch(e){}},_checkLocalStorage:function(e,t){var n;try{n=JSON.parse(window.localStorage.getItem(this.localStorageNamePrefix+e))}catch(e){}return!(!n||!n.timestamp||t-n.timestamp>n.life)||(this._removeFromLocalStorage(e),!1)},_removeFromLocalStorage:function(e){window.localStorage.removeItem(this.localStorageNamePrefix+e)},_isPermissionRequestable:function(){return"granted"!==window.Notification.permission&&"denied"!==window.Notification.permission},_isPermissionDenied:function(){return"denied"===window.Notification.permission},onLogIn:function(){this.requestPermission()},onWindowBlur:function(){this.enableNotificationsTemporary()},onWindowFocus:function(){this.disableNotificationsTemporary()},bind:function(){r.superclass.bind.call(this),i.on([{element:i.Broadcaster,event:o.LoginComponent.GLOBALEVENT_LOG_IN,handler:this.onLogIn,scope:this},{element:Ext.fly(window),event:"blur",handler:this.onWindowBlur,scope:this},{element:Ext.fly(window),event:"focus",handler:this.onWindowFocus,scope:this}])}})},,,,,function(e,t,n){var i=n(0),o=n(2),s=n(11),r=n(283),a=n(276),l=n(277),c=(n(23),n(36).default),h=function(e,t){h.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(h,i.Component,{name:"ModalComponent",controllerClassName:r,viewClassName:a,modelClassName:l,controllerListeners:{},getModalContentRoute:null,modalContainerId:"overlay_container",isModalBackgroundClick:!0,isCloseEnabled:!0,isEscKeyPressCloseEnabled:!0,autoRender:!1,contentAjaxParams:{},getModalContentRouteParams:{},contentRouteOptions:null,isFullContentAppend:!0,modelParams:{},modalCloseBtnCls:"close_button",_featureComponent:null,_extendedViewProperties:{},init:function(e,t){this.addEvents(o.ModalComponent.GLOBALEVENT_MODAL_OPENED,o.ModalComponent.GLOBALEVENT_MODAL_CLOSED,o.ModalComponent.GLOBALEVENT_MODAL_BEFORE_OPEN),h.superclass.init.call(this,e,t),this._setController()},_setController:function(){var e=this.controllerClassName;return this._controller instanceof e||(this._controller=new e({items:{ModalView:{component:this._setView(),listeners:{"event-modal-background-click":"onModalBackgroundClick","event-modal-esc-key-pressed":"onModalEscKeyPressed","event-modal-displayed":"onModalDisplayed","event-modal-close-btn-click":"onModalCloseBtnClick","event-modal-show-loader":"onModalShowLoader","event-modal-before-displayed":"onModalBeforeDisplayed"}},ModalModel:{component:this._setModel(),listeners:{}}}}),i.on([{element:this._controller,event:"event-modal-background-click",handler:this.onModalBackgroundClick},{element:this._controller,event:"event-modal-esc-key-pressed",handler:this.onModalEscKeyPressed},{element:this._controller,event:"event-modal-displayed",handler:this.onModalDisplayed},{element:this._controller,event:"event-modal-close-btn-click",handler:this.onModalCloseBtnClick},{element:this._controller,event:"event-modal-show-loader",handler:this.onModalShowLoader},{element:this._controller,event:"event-modal-before-displayed",handler:this.onModalBeforeDisplayed}],this)),this._controller},_setView:function(){var e=this.viewClassName;return this._view instanceof e||(this._view=new e(Ext.apply({},{template:this.template,containerId:this.modalContainerId,model:this._setModel(),autoRender:this.autoRender,isModalBackgroundClick:this.isModalBackgroundClick,isFullContentAppend:this.isFullContentAppend,modalCloseBtnCls:this.modalCloseBtnCls},this._extendedViewProperties))),this._view},_setModel:function(){var e=this.modelClassName;if(!(this._model instanceof e)){var t=this.getModalContentRoute?{url:i.getUrl(this.getModalContentRoute,this.getModalContentRouteParams),params:this.contentAjaxParams}:{};i.isEmpty(this.modelParams)||Ext.apply(t,this.modelParams),this._model=new e({},t)}return this._model},getName:function(){return this.name},destroy:function(){this._featureComponent&&this._featureComponent.destroy(),this._model.destroy(),this._controller.destroy(),h.superclass.destroy.call(this),i.fireEvent(o.ModalComponent.GLOBALEVENT_MODAL_CLOSED,{scope:this})},lock:function(){console.error("Lock function should be overwritten in child component.")},onModalBackgroundClick:function(){this.isModalBackgroundClick&&this.closeModal()},onModalEscKeyPressed:function(){this.isEscKeyPressCloseEnabled&&this.closeModal()},onModalCloseBtnClick:function(){this.closeModal()},closeModal:function(){s.navigateBack()},onModalDisplayed:function(){i.fireEvent(o.ModalComponent.GLOBALEVENT_MODAL_OPENED,{scope:this})},onModalBeforeDisplayed:function(){c.push({event:c.CONST.EVENT.OPTIMIZE_SHOW_OVERLAY}),i.fireEvent(o.ModalComponent.GLOBALEVENT_MODAL_BEFORE_OPEN,{scope:this})},onModalShowLoader:function(){i.fireEvent(o.ModalComponent.GLOBALEVENT_MODAL_SHOW_LOADER)},isClosable:function(){return this.isCloseEnabled}})},function(e,t,n){var i=n(0),o=n(2),s=function(e,t){s.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(s,i.Component,{name:"CharacterCounter",maxChar:4e3,warningChar:null,maxCharText:"",warningCharText:"",hasWarningLimit:!0,maxCharCallback:i.emptyFn,warningCharCallback:i.emptyFn,inputId:"message",counterId:"char_number",charInfoId:null,messageErrorId:"message_error",isShowCounter:!0,maxCharSoundId:"max_char_sound",isMaxCharSound:!1,computeMaxChar:!1,_warningLimitUp:!1,_maxCharLimitUp:!1,_inputEl:null,_counterEl:null,_type:null,_delayTask:null,_delayNumber:50,_attempts:0,init:function(e,t){this._inputEl=Ext.get(this.inputId),this._type=this._inputEl.dom.getAttribute("contenteditable")?"contenteditable":"regular",this.computeMaxChar&&(this.maxChar=parseInt(this._inputEl.dom.attributes.maxLength.value,10)),this._delayTask=new Ext.util.DelayedTask(this.refreshCounter,this,[!0]),s.superclass.init.call(this,e,t),this.addEvents(o.CharacterCounter.EVENT_WARNING_LIMIT_REACHED,o.CharacterCounter.EVENT_MAX_CHAR_LIMIT_REACHED,o.CharacterCounter.EVENT_WARNING_LIMIT_FALLING,o.CharacterCounter.EVENT_MAX_CHAR_LIMIT_FALLING),this.refreshCounter(!1)},onCharCounterKeyup:function(){this.refreshCounter(!0)},onCharCounterPaste:function(){this._delayTask.delay(this._delayNumber)},attemptCounter:function(){0===this.charLeft?this._attempts++:this._attempts=0},refreshCounter:function(e){this.charLeft=this.maxChar-this.getInputValue().length,this.isShowCounter&&(this._counterEl=Ext.get(this.counterId)),this.attemptCounter(),this.checkCharNumber(e),this.isShowCounter&&(this.charLeft>=0?this._counterEl.dom.innerHTML=this.charLeft:this._counterEl.dom.innerHTML=0)},getInputValue:function(){var e,t;return"regular"===this._type?e=this._inputEl.dom.value:(e=this._inputEl.dom.innerHTML.replace(/<br[^>]*>/gi,"\n").replace(/(<([^>]+)>)/gi,"").replace(/&nbsp;/g," "),-1!==(t=e.lastIndexOf("\n"))&&(e=e.substr(0,t))),e},checkCharNumber:function(e){if(this.isWarningNeeded())this.fireEvent(o.CharacterCounter.EVENT_WARNING_LIMIT_REACHED,this),this.warningCharCallback(),this._warningLimitUp=!0;else if(this.isMaxCharReached())"regular"===this._type?this._inputEl.dom.value=this.getInputValue().substr(0,this.maxChar):(this._inputEl.dom.innerHTML=this.getInputValue().substr(0,this.maxChar),this.setEndOfContenteditable(this._inputEl.dom)),this._maxCharLimitUp=!0,this.maxCharCallback(),this._attempts>1&&(this.isMaxCharSound&&e&&this.playAudio(),this.fireEvent(o.CharacterCounter.EVENT_MAX_CHAR_LIMIT_REACHED,{scope:this,field:this._inputEl}));else{var t=Ext.get(this.charInfoId);this._warningLimitUp&&(this.fireEvent(o.CharacterCounter.EVENT_WARNING_LIMIT_FALLING,{scope:this,field:this._inputEl}),this._warningLimitUp=!1),t&&t.hide(),this._maxCharLimitUp&&(this.fireEvent(o.CharacterCounter.EVENT_MAX_CHAR_LIMIT_FALLING,{scope:this,field:this._inputEl}),this._maxCharLimitUp=!1)}},setEndOfContenteditable:function(e){var t,n;document.createRange?(t=document.createRange(),t.selectNodeContents(e),t.collapse(!1),n=window.getSelection(),n.removeAllRanges(),n.addRange(t)):document.selection&&(t=document.body.createTextRange(),t.moveToElementText(e),t.collapse(!1),t.select())},isWarningNeeded:function(){return this.warningChar&&this.charLeft<this.warningChar&&this.charLeft>0&&this.hasWarningLimit},isMaxCharReached:function(){return this.charLeft<=0},preventDragAndDrop:function(e){e.preventDefault()},resetCounter:function(){var e=Ext.get(this.charInfoId);this.isShowCounter&&(Ext.get(this.counterId).dom.innerHTML=this.maxChar),this.charLeft=this.maxChar,e&&e.hide()},onInputBlur:function(){var e=Ext.get(this.charInfoId);e&&e.hide()},playAudio:function(){this.removeAudioTag(),this._audioEl=Ext.DomHelper.append(this.element.id,{tag:"audio",id:this.maxCharSoundId,preload:"auto",children:[{tag:"source",src:i.Config.get("maxCharLimitMp3AudioUrl"),type:"audio/mpeg"},{tag:"source",src:i.Config.get("maxCharLimitOggAudioUrl"),type:"audio/ogg"}]},!0);try{this._audioEl=Ext.get(this.maxCharSoundId);this._audioEl.dom.play()}catch(e){console.info(e)}},removeAudioTag:function(){this._audioEl&&this._audioEl.remove()},bind:function(){s.superclass.bind.call(this),i.on([{element:this._inputEl,event:"keyup",handler:this.onCharCounterKeyup},{element:this._inputEl,event:"paste",handler:this.onCharCounterPaste},{element:this._inputEl,event:"blur",handler:this.onInputBlur}],this),Ext.isChrome||Ext.isSafari||Ext.isEdge?i.on(this._inputEl,"dragover",this.preventDragAndDrop,this):i.on(this._inputEl,"drop",this.preventDragAndDrop,this)},unbind:function(){s.superclass.unbind.call(this),this.removeAudioTag()}})},function(e,t,n){var i=n(0),o=n(2),s=n(3),r=function(e){r.superclass.constructor.call(this,e)};e.exports=Ext.extend(r,i.View,{name:"DropdownViewAbstract",menuItemCls:"menu_item",actionAttribute:"data-action",subMenuItemCls:"nested_menu",subMenuLanguageItemSelector:".nested_menu #language_form .clickable",activeCls:"active",backgroundCls:"dropdown_background",hideCls:"hide",backgroundId:"overlay",menuTitleCls:"replace_text",menuItemTextCls:"item_text",scrollBarCls:"scroll-pane",isSetMenuTitleToCurrent:!1,isBackgroundEnabled:!1,_isVisible:!1,init:function(){this.addEvents(o.DropdownViewAbstract.EVENT_DROPDOWN_MENU_ITEM_CLICK,o.DropdownViewAbstract.EVENT_DROPDOWN_MENU_VISIBILITY_CHANGE,o.DropdownViewAbstract.EVENT_DROPDOWN_MENU_BACKGROUND_SHOW,o.DropdownViewAbstract.EVENT_DROPDOWN_MENU_BACKGROUND_HIDE),this.bodyEl=Ext.getBody(),this.dropdownMenuItems=this.element.select("."+this.menuItemCls),this.menuTitleEl=this.element.select("."+this.menuTitleCls).item(0),this.subMenuItems=this.element.select("."+this.subMenuItemCls),this.subMenuLanguageElements=this.element.select(this.subMenuLanguageItemSelector),this.dropdownMenuEl=this.element,this.backgroundEl=Ext.get(this.backgroundId),r.superclass.init.call(this)},onDropDownMenuClick:function(e){e.stopEvent(),this.closeSubMenu(),this.toggleDropDownMenu(),s.isHokkaido()&&$(".header_language_selector").protipHide()},onDropDownMenuItemClick:function(e){var t=this.getMenuItemEl(e.target);"false"===t.getAttribute(this.actionAttribute)||t.hasClass("disabled")?t.hasClass("disabled")?e.preventDefault():(this.closeDropDownMenu(),e.stopPropagation()):(e.stopEvent(),this.closeDropDownMenu(),this.menuItemClick(t))},onSubMenuItemClick:function(e){e.stopEvent();var t=this.getSubMenuItemEl(e.target);t.hasClass(this.activeCls)||this.closeSubMenu(),Ext.fly(e.target).findParent("."+this.scrollBarCls)||this.toggleSubMenu(t),t.getAttribute(this.actionAttribute)&&this.menuItemClick(t)},onSubMenuLanguageItemClick:function(e,t){},onBodyClick:function(e,t){this.element.dom!==t&&i.isNull(Ext.fly(t).parent("#"+this.element.id))&&(this.closeSubMenu(),this.closeDropDownMenu())},hideBackground:function(){this.isBackgroundEnabled&&(this.backgroundEl.removeClass(this.backgroundCls),this.fireEvent(o.DropdownViewAbstract.EVENT_DROPDOWN_MENU_BACKGROUND_HIDE,this))},showBackground:function(){this.isBackgroundEnabled&&(this.backgroundEl.addClass(this.backgroundCls),this.fireEvent(o.DropdownViewAbstract.EVENT_DROPDOWN_MENU_BACKGROUND_SHOW,this))},toggleDropDownMenu:function(){this.changeVisibility(!this._isVisible)},toggleSubMenu:function(e){e.toggleClass(this.activeCls)},closeDropDownMenu:function(){this.changeVisibility(!1)},changeVisibility:function(e){this._isVisible=e,this.dropdownMenuEl[this._isVisible?"addClass":"removeClass"](this.activeCls),this.bodyEl[this._isVisible?"on":"un"]("click",this.onBodyClick,this),this.fireEvent(o.DropdownViewAbstract.EVENT_DROPDOWN_MENU_VISIBILITY_CHANGE,{isVisible:this._isVisible})},closeSubMenu:function(){this.subMenuItems.removeClass(this.activeCls)},menuItemClick:function(e){this.isSetMenuTitleToCurrent&&(this.setMenuItemsVisibility(e),this.setMenuTitleToCurrent(e)),this.fireEvent(o.DropdownViewAbstract.EVENT_DROPDOWN_MENU_ITEM_CLICK,{item:e,scope:this})},setMenuItemsVisibility:function(e){this.element.select("."+this.hideCls).removeClass(this.hideCls),e.select("."+this.menuItemTextCls).item(0).addClass(this.hideCls)},setMenuTitleToCurrent:function(e){var t=e.select("."+this.menuItemTextCls).item(0).html();this.menuTitleEl.html(t)},getMenuItemEl:function(e){return e.hasAttribute(this.actionAttribute)?Ext.get(e):Ext.get(e).parent("."+this.menuItemCls)},getSubMenuItemEl:function(e){return Ext.get(e).hasClass(this.subMenuItemCls)?Ext.get(e):Ext.get(e).parent("."+this.subMenuItemCls)},bind:function(){r.superclass.bind.call(this),i.on([{element:this.dropdownMenuEl,event:"click",handler:this.onDropDownMenuClick},{element:this.dropdownMenuItems,event:"click",handler:this.onDropDownMenuItemClick},{element:this.subMenuItems,event:"click",handler:this.onSubMenuItemClick},{element:this.subMenuLanguageElements,event:"click",handler:this.onSubMenuLanguageItemClick}],this)}})},function(e,t,n){var i=n(0),o=n(2),s=function(e,t){s.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(s,i.Controller,{name:"DropDownControllerAbstract",init:function(e,t){this.addEvents(o.DropDownControllerAbstract.EVENT_DROPDOWN_MENU_ITEM_CLICK,o.DropDownControllerAbstract.EVENT_DROPDOWN_MENU_VISIBILITY_CHANGE),s.superclass.init.call(this,e,t)},close:function(){this.view.changeVisibility(!1)},hideBackground:function(){this.view.hideBackground()},showBackground:function(){this.view.showBackground()},onDropdownMenuBackgroundShow:function(e){i.fireEvent(o.DropDownControllerAbstract.GLOBALEVENT_DROPDOWN_MENU_BACKGROUND_SHOW,e)},onDropdownMenuBackgroundHide:function(e){i.fireEvent(o.DropDownControllerAbstract.GLOBALEVENT_DROPDOWN_MENU_BACKGROUND_HIDE,e)},onDropDownMenuItemClick:function(e){this.fireEvent(o.DropDownControllerAbstract.EVENT_DROPDOWN_MENU_ITEM_CLICK,e)},onDropDownMenuVisibilityChange:function(e){this.fireEvent(o.DropDownControllerAbstract.EVENT_DROPDOWN_MENU_VISIBILITY_CHANGE,e),e.isVisible?i.fireEvent(o.DropDownControllerAbstract.GLOBALEVENT_DROPDOWN_OPEN,{scope:this}):i.fireEvent(o.DropDownControllerAbstract.GLOBALEVENT_DROPDOWN_CLOSE,{scope:this})}})},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=o.default.translate},function(e,t,n){var i=n(0),o=n(2),s=function(e,t){s.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(s,i.Controller,{name:"UpdaterControllerAbstract",init:function(e,t){s.superclass.init.call(this,e,t),this.addEvents(o.UpdaterControllerAbstract.EVENT_GET_NEW_CONTENT_SUCCESS)},stopAjaxPoll:function(){this.model.stopAjaxPoll()},startAjaxPoll:function(){this.model.getNewContent(),this.model.startAjaxPoll()},onGetNewContentSuccess:function(e){this.fireEvent(o.UpdaterControllerAbstract.EVENT_GET_NEW_CONTENT_SUCCESS,e)}})},function(e,t,n){var i=n(0),o=n(2),s=n(76),r=n(271),a=function(e,t){a.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(a,i.Model,{name:"UpdaterModelAbstract",pollInterval:6e4,_isPolling:!1,useJawsClient:!1,init:function(){a.superclass.init.call(this),this.addEvents(o.UpdaterModelAbstract.EVENT_GET_NEW_CONTENT_SUCCESS),this.initializeUnreadMessagesStore(),this.eventsAndListeners()},eventsAndListeners:function(){this.useJawsClient?(this.startJaws(),this.setJawsListeners()):(this.getNewContent(),this.startAjaxPoll())},initializeUnreadMessagesStore:function(){this.storeInstance=r.getInstance()},startAjaxPoll:function(){return this._isPolling||(this._longPoll=setInterval(i.bind(this.getNewContent,this),this.pollInterval),this._isPolling=!0),this},stopAjaxPoll:function(){return clearInterval(this._longPoll),this._isPolling=!1,this},_getUrl:function(){throw new Error("You must implement _getUrl in the child model.")},_getParams:function(){},getNewContent:function(){this.fetch({url:this._getUrl(),params:this._getParams(),success:i.bind(this.onGetNewContentSuccess,this),error:i.bind(this.onGetNewContentError,this)})},onGetNewContentSuccess:function(e){this.fireEvent(o.UpdaterModelAbstract.EVENT_GET_NEW_CONTENT_SUCCESS,e)},onGetNewContentError:function(e){console.error("Polling error.",e)},startJaws:function(){this.jawsClientInstance=s.getInstance()},setJawsListeners:function(){}})},function(e,t,n){var i=n(0),o=n(2),s=n(3),r=n(36).default,a=function(e){a.superclass.constructor.call(this,e),this.init()};Ext.extend(a,Ext.util.Observable,{init:function(){i.addEvents(o.FlashExternal.GLOBALEVENT_APPLET_READY,o.FlashExternal.GLOBALEVENT_APPLET_LOGIN,o.FlashExternal.GLOBALEVENT_PRIVATE_START,o.FlashExternal.GLOBALEVENT_PRIVATE_END,o.FlashExternal.GLOBALEVENT_PEEK_END,o.FlashExternal.GLOBALEVENT_CLOSE_POPUP,o.FlashExternal.GLOBALEVENT_CLICK_FAVORITE_BUTTON_IN_APPLET,o.FlashExternal.GLOBALEVENT_APPLET_STREAM_READY,o.FlashExternal.GLOBALEVENT_PRIVATE_TEASER_LEFT,o.FlashExternal.GLOBALEVENT_APPLET_GET_CREDITS_CLICK,o.FlashExternal.GLOBALEVENT_UPDATE_SCROLL_POSITION,o.FlashExternal.GLOBALEVENT_APPLET_CHANNEL_SUBSCRIPTION_CHANGE,o.FlashExternal.GLOBALEVENT_GET_NEXT_MODEL,o.FlashExternal.GLOBALEVENT_LPP_APPLET_CLICK,o.FlashExternal.GLOBALEVENT_ON_CHECK_MY_WALL_CLICKED,o.FlashExternal.GLOBALEVENT_LAYOUT_MODE_CHANGE,o.FlashExternal.GLOBALEVENT_EXIT_FULLSCREEN,o.FlashExternal.GLOBALEVENT_TRACK_BUYING_ROUTE,o.FlashExternal.GLOBALEVENT_GET_PERFORMER_DETAILS,o.FlashExternal.GLOBALEVENT_OPEN_MESSAGES,o.FlashExternal.GLOBALEVENT_APPLET_SUBSCRIBE,o.FlashExternal.GLOBALEVENT_OPEN_LOGIN,o.FlashExternal.GLOBALEVENT_OPEN_SIGNUP,o.FlashExternal.GLOBALEVENT_USE_FLASH)},memberApplet:{openLogin:function(){i.fireEvent(o.FlashExternal.GLOBALEVENT_OPEN_LOGIN)},openSignup:function(){i.fireEvent(o.FlashExternal.GLOBALEVENT_OPEN_SIGNUP)},useFlash:function(){i.fireEvent(o.FlashExternal.GLOBALEVENT_USE_FLASH)},appletLogin:function(e){i.fireEvent(o.FlashExternal.GLOBALEVENT_APPLET_LOGIN,e)},appletReadyHandler:function(e){var t="object"==typeof e?e.memberAppletVersion:e;i.Config.set("memberAppletVersion",t),i.Config.set(o.ChatPageModel.MEMBERAPPLET_READY_STATE,!0),i.fireEvent(o.FlashExternal.GLOBALEVENT_APPLET_READY,this)},onPrivateClick:function(){r.onPrivateStart("start private show"),i.fireEvent(o.FlashExternal.GLOBALEVENT_PRIVATE_START,this)},onPrivateEndClick:function(e){i.fireEvent(o.FlashExternal.GLOBALEVENT_PRIVATE_END,e)},onPrivateEnd:function(e){"string"==typeof e&&(e={reason:e}),i.fireEvent(o.FlashExternal.GLOBALEVENT_PRIVATE_END,e)},onPeekEnd:function(){i.fireEvent(o.FlashExternal.GLOBALEVENT_PEEK_END,this)},onClosePopup:function(e){s.isGecko40()?setTimeout(i.bind(function(){i.fireEvent(o.FlashExternal.GLOBALEVENT_CLOSE_POPUP,e)},this),0):i.fireEvent(o.FlashExternal.GLOBALEVENT_CLOSE_POPUP,e)},onClickFavoriteButton:function(e,t){i.fireEvent(o.FlashExternal.GLOBALEVENT_CLICK_FAVORITE_BUTTON_IN_APPLET,{performerId:e,isFavorite:t})},streamReadyHandler:function(){i.fireEvent(o.FlashExternal.GLOBALEVENT_APPLET_STREAM_READY,this)},getNextModel:function(e,t){i.fireEvent(o.FlashExternal.GLOBALEVENT_GET_NEXT_MODEL)},getPerformerDetails:function(e){i.fireEvent(o.FlashExternal.GLOBALEVENT_GET_PERFORMER_DETAILS,e)},setLayoutMode:function(e){i.fireEvent(o.FlashExternal.GLOBALEVENT_LAYOUT_MODE_CHANGE,{scope:this,layout:e})},onExitFullScreen:function(){i.fireEvent(o.FlashExternal.GLOBALEVENT_EXIT_FULLSCREEN,this)},privateTeaserLeft:function(e){i.fireEvent(o.FlashExternal.GLOBALEVENT_PRIVATE_TEASER_LEFT,e)},getCreditsClick:function(e){i.fireEvent(o.FlashExternal.GLOBALEVENT_APPLET_GET_CREDITS_CLICK,e)},updateScrollPosition:function(e){i.fireEvent(o.FlashExternal.GLOBALEVENT_UPDATE_SCROLL_POSITION,e)},onCheckMyWallClicked:function(){i.fireEvent(o.FlashExternal.GLOBALEVENT_ON_CHECK_MY_WALL_CLICKED,{scope:this})},onShowAutoplayTutorial:function(){new Promise(function(e){e()}).then(function(){n(11).navigate("auto-play-help",{trigger:!0,preventNavigateBack:!1,replace:!1,keepActiveModal:!0,lockActiveModal:!0})}.bind(null,n)).catch(n.oe)},channelSubscriptionStatusChange:function(){i.fireEvent(o.FlashExternal.GLOBALEVENT_APPLET_CHANNEL_SUBSCRIPTION_CHANGE,this)},trackBuyingRoute:function(e){i.fireEvent(o.FlashExternal.GLOBALEVENT_TRACK_BUYING_ROUTE,e)},openMessages:function(e){i.fireEvent(o.FlashExternal.GLOBALEVENT_OPEN_MESSAGES,{modelName:e.modelName||e})},channelWatchingReport:function(e){},subscribe:function(e){"object"!=typeof e&&console.warn("Wrong type has been sent from member applet on subscription: ",typeof e),i.fireEvent(o.FlashExternal.GLOBALEVENT_APPLET_SUBSCRIBE,e)},vipShowStarted:function(){i.fireEvent(o.FlashExternal.GLOBALEVENT_VIP_SHOW_STARTED)},onOutOfContent:function(e){i.fireEvent(o.FlashExternal.GLOBALEVENT_OUT_OF_CONTENT,{performerName:e})}},lpp:{appletClick:function(e,t){i.fireEvent(o.FlashExternal.GLOBALEVENT_LPP_APPLET_CLICK,{name:e,id:t})}},dummyFlashApplet:{onLoad:function(){i.fireEvent(o.FlashExternal.GLOBALEVENT_DUMMYAPPLET_ONLOAD,this)}}}),a.getInstance=function(){return a.prototype.instance instanceof a||(a.prototype.instance=new a),a.prototype.instance},e.exports=a.getInstance()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var i=n(0),o=n(2),s=n(173),r=function(e,t){r.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(r,s,{name:o.EnableFlashPluginModalComponent.NAME,init:function(e,t){var n=this;i.Config.get("isFlashEnabled")&&setTimeout(function(){n.closeModal()},0),r.superclass.init.call(this,e,t)},onDummyAppletLoad:function(){var e=this;setTimeout(function(){e.closeModal()},0)},bind:function(){r.superclass.bind.call(this),i.on([{element:i.Broadcaster,event:o.FlashExternal.GLOBALEVENT_DUMMYAPPLET_ONLOAD,handler:this.onDummyAppletLoad}],this)}})},function(e,t,n){var i=n(0),o=n(2),s=n(233),r=(n(77),n(3),n(11)),a=function(e){a.superclass.constructor.call(this,e)};e.exports=Ext.extend(a,s,{name:o.FlashChatPageController.NAME,chatTopValue:72,nextPerformerHistoryEntry:"next-performer",enabledHistoryWrite:!0,init:function(e,t){i.addEvents(o.ChatPageController.HISTORY_CHANGE),t.items.model.component.isChatPage=!0,a.superclass.init.call(this,e,t),this.checkSafariWithOutdatedFlash(),this.registerHistory()},_maxAppletSizeCalcHook:function(e,t){return t-=this.chatTopValue,e=Ext.getBody().getWidth(),[e,t]},onBeforePopstate:function(){this.enabledHistoryWrite=!1},onPopstate:function(){this.enabledHistoryWrite=!1},onGetPerformerDetails:function(e,t){a.superclass.onGetPerformerDetails.apply(this,arguments);var n=this.model.getCurrentModelName();r.pushState({FlashChatPageController:{name:n,state:this.nextPerformerHistoryEntry,params:n,url:n}},this.nextPerformerHistoryEntry,n,t)},onModalClosed:function(e){this.model.isPrivateEndDisplayed()||(this.view.showChat(),setTimeout(i.bind(this.replaceState,this),0))},replaceState:function(){var e=this.model.getCurrentModelName(),t=e;""!==location.hash&&(t+=location.hash);try{window.history.replaceState({FlashChatPageController:{name:e,state:this.nextPerformerHistoryEntry,params:e,url:e}},this.nextPerformerHistoryEntry,t)}catch(e){console.log("error: ",e)}},onModalShowLoader:function(){i.Config.get("memberAppletVersion")!==o.HTML5ChatPageComponent.APPLET_VERSION&&this.view.hideChat()},bind:function(){a.superclass.bind.call(this),i.on([{element:i.Broadcaster,event:o.ModalComponent.GLOBALEVENT_MODAL_SHOW_LOADER,handler:this.onModalShowLoader},{element:i.Broadcaster,event:o.ModalComponent.GLOBALEVENT_MODAL_CLOSED,handler:this.onModalClosed},{element:i.History,event:o.Chaos.History.EVENT_BEFORE_POPSTATE,handler:this.onBeforePopstate},{element:i.History,event:o.Chaos.History.EVENT_POPSTATE,handler:this.onPopstate}],this)}})},function(e,t,n){var i=n(0),o=n(2),s=(n(77),n(285)),r=n(40),a=n(3),l=n(11),c=(n(91).default,n(156),n(49).default),h=function(e){h.superclass.constructor.call(this,e)};e.exports=Ext.extend(h,s,{name:o.FlashChatPageControllerAbstract.NAME,chatId:"chatapplet",minAppletHeight:1,minAppletWidth:1,defaultBrowserScrollBarWidth:17,removeAppletCounter:10,chatCounter:0,chatPageId:o.PageId.CHAT_PERFORMER,cookieExpiration:2592e3,defaultAppletResizeTimeOut:5e3,isVideoContentOpened:!1,_isFirstPerfShown:!1,_memberApplet:{},flashVarsNeedRefresh:["performerid","pid","sbip","sbhash","proxyip","category","tags","lowcamfeed","ishd","ishq","isFavorite","teaserduration","teaseraudio","teaserurl","teaservideoaudio","teasertype","channel_type"],init:function(e,t){this.addEvents(o.FlashChatPageControllerAbstract.EVENT_OVERLAY_CONTENT_READY,o.FlashChatPageControllerAbstract.EVENT_MODEL_CHANGE,o.FlashChatPageControllerAbstract.EVENT_APPLET_RESIZE,o.FlashChatPageControllerAbstract.EVENT_WINDOW_RESIZE),h.superclass.init.call(this,e,t),this.model.setLayoutMode(i.Cookie.get("memberAppletSize")),this._calculateMaxAppletSize(),this._setupAppletConfigs(),this.getAppletContainer()},getAppletContainer:function(){return this._memberApplet.container||(this._memberApplet.container=i.getFlashMovieObject(this.chatId)),this._memberApplet.container},muteChatApplet:function(){this.isVideoContentOpened=!0,this.callFunctionOnApplet("videoPlayingStarted")},unMuteChatApplet:function(){this.isVideoContentOpened&&(this.isVideoContentOpened=!1,this.callFunctionOnApplet("videoPlayingStopped"))},callFunctionOnApplet:function(e){var t=this.getAppletContainer();t&&i.isFunction(t[e])&&setTimeout(function(){try{t[e]()}catch(e){console.log(e)}},0)},setSessionId:function(e){try{this.getAppletContainer().setSessionId(e)}catch(e){console.error("Set session id failed: ",e)}},_calculateMaxAppletSize:function(){var e=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,t=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,n=this._maxAppletSizeCalcHook(e,t);this.model.setAppletMaxSize.apply(this.model,n)},_maxAppletSizeCalcHook:function(e,t){throw new Error("Max applet size hook must be overwritten.")},_checkForLayoutChange:function(){if(this.model.isCurrentLayoutMode(o.FlashChatPageControllerAbstract.LAYOUT_MODE_FULL)&&(this.model.getAppletMaxWidth()<this.model.appletLayoutMaxWidth.normal||this.model.getAppletMaxHeight()<this.model.appletLayoutMaxHeight.normal)){this.setLayoutMode(o.FlashChatPageControllerAbstract.LAYOUT_MODE_NORMAL);try{this.getAppletContainer().setLayoutToNormal()}catch(e){console.error(e)}}},setLayoutMode:function(e){var t=i.Config.get("memberAppletFlashvars");t.appletsize=e,i.Config.set("memberAppletFlashvars",t),this._memberApplet.flashvars=t,this.model.setLayoutMode(e),this._setCookieToStoreFlashSize()},_setCookieToStoreFlashSize:function(){var e=this.model.getAppletSize();e.width>this.model.minimumMemberAppletWidth&&e.height>this.model.minimumMemberAppletHeight&&!this.model.isCurrentLayoutMode(h.LAYOUT_MODE_FULLSCREEN)&&(i.Cookie.set("memberAppletSize",this.model.getLayoutMode(),this.cookieExpiration,"/"),i.Cookie.set("memberAppletDimensions",Ext.util.JSON.encode({width:e.width,height:e.height}),this.cookieExpiration,"/"))},checkSafariWithOutdatedFlash:function(){Ext.isSafari&&(this._setAppletToDefaultSizeTask instanceof Ext.util.DelayedTask||(this._setAppletToDefaultSizeTask=new Ext.util.DelayedTask(this._setAppletToDefaultSizeHack,this)),this._setAppletToDefaultSizeTask.delay(this.defaultAppletResizeTimeOut))},stopSafariOutdatedFlashCheckerTask:function(){this._setAppletToDefaultSizeTask&&(this._setAppletToDefaultSizeTask.cancel(),delete this._setAppletToDefaultSizeTask)},_setAppletToDefaultSizeHack:function(){i.Config.get("memberAppletVersion")!==o.HTML5ChatPageComponent.APPLET_VERSION&&(this.view.setFreeChatBlock(),this.resizeFlashApplet())},resizeFlashApplet:function(){if(i.Config.get("memberAppletVersion")!==o.HTML5ChatPageComponent.APPLET_VERSION)return 0===this.model.getAppletMaxHeight()||0===this.model.getAppletMaxWidth()?void this._calculateMaxAppletSize():void(this.model.getIsMinimized()||!this.view.getAppletEl()||this.model.getIsDropDownOpened()||(this.view.resetAppletSize(),this.model.isCurrentLayoutMode(o.FlashChatPageControllerAbstract.LAYOUT_MODE_FULL)&&this._calculateAppletSizeForFullLayout(),this.fireEvent(o.FlashChatPageControllerAbstract.EVENT_APPLET_RESIZE,{scope:this})))},resetChatApplet:function(){var e=this.getAppletContainer();this.chatCounter===this.removeAppletCounter||e&&!i.isFunction(e.hideChat)?(this.chatCounter=0,this.model.setAppletReady(!1),this._memberApplet.container=null,this.view.removeMemberApplet(),this.setDefaultFlashVars(),this.view.createMemberAppletContainer(),this.embedMemberApplet({url:this._memberApplet.url,id:this.chatId,flashvars:this._memberApplet.flashvars,params:this._memberApplet.params,attributes:this._memberApplet.attributes}),this.getAppletContainer()):this.callHideChatOnMemberApplet()},embedMemberApplet:function(e){Ext.isIE11?this.view.embedAppletWithoutSwfObject(e):this.view.embedAppletWithSwfObject(e)},setDefaultFlashVars:function(){i.each(this.flashVarsNeedRefresh,function(e,t){this.setAllAppletsFlashvars(this.flashVarsNeedRefresh[t],"")},this)},_refreshFlashVars:function(e){var t=this._decodeFlashVars(e);this.setDefaultFlashVars();for(var n in t)if(t.hasOwnProperty(n)){var i=n.replace("_","");this.setAllAppletsFlashvars(i,t[n])}},_decodeFlashVars:function(e){return Ext.isObject(e)?e:Ext.decode(e)},setAllAppletsFlashvars:function(e,t){this._memberApplet.flashvars&&(this._memberApplet.flashvars[e]=t)},_calculateAppletSizeForFullLayout:function(){var e=Math.round(Math.min(Math.max(this.model.getAppletMaxWidth(),this.model.appletLayoutMinWidth.normal),this.model.appletLayoutMaxWidth.full)),t=Math.round(Math.min(9*(e-this.model.appletRecommenderMinWidth)/16+this.model.appletButtonRowFixHeight,this.model.getAppletMaxHeight()));return this.model.setAppletSize(e,t),!0},_setupAppletConfigs:function(){var e={url:i.Config.get(Ext.isIE11?"memberAppletUrl":"memberAppletContainerUrl"),flashvars:i.Config.get("memberAppletFlashvars"),params:i.Config.get("memberAppletParams"),attributes:i.Config.get("memberAppletAttributes")};Ext.apply(this._memberApplet,e)},getAppletFlashvars:function(){return this._memberApplet.flashvars},onWindowResize:function(){this.model.isPrivateEndDisplayed()||(this._calculateMaxAppletSize(),this._checkForLayoutChange()),this.fireEvent(o.FlashChatPageControllerAbstract.EVENT_WINDOW_RESIZE)},onAppletLayoutModeChange:function(e){this.model.isPrivateEndDisplayed()||this.setLayoutMode(e.layout)},onLayoutModeChange:function(){this.model.isPrivateEndDisplayed()||this.resizeFlashApplet()},onChannelWallContentClick:function(){try{this.getAppletContainer().blur()}catch(e){console.error(e)}},onBeforeUnload:function(){this.callHideChatOnMemberApplet()},callHideChatOnMemberApplet:function(){var e=this.getAppletContainer();e&&i.isFunction(e.hideChat)&&e.hideChat()},onDropDownMenuHide:function(){i.Config.get("memberAppletVersion")!==o.HTML5ChatPageComponent.APPLET_VERSION&&(this.model.setIsDropDownOpened(!1),this.model.getIsMinimized()||this.model.isPrivateEndDisplayed()||this.view.showChat())},onDropDownMenuOpen:function(){i.Config.get("memberAppletVersion")!==o.HTML5ChatPageComponent.APPLET_VERSION&&(this.model.setIsDropDownOpened(!0),this.view.hideChat())},onExitFullScreen:function(){this.setLayoutMode(o.FlashChatPageControllerAbstract.LAYOUT_MODE_FULL)},onUpdateScrollPosition:function(e){this.view.updateScrollPosition(e)},onAfterOverlayClose:function(){i.Config.get("memberAppletVersion")!==o.HTML5ChatPageComponent.APPLET_VERSION&&(this.model.isPrivateEndDisplayed()||this.resizeFlashApplet(),this._isFirstPerfShown=!1)},onPhotoViewerShow:function(){Ext.fly(window).un("keydown",this.onKeyDown,this)},onPhotoViewerHide:function(){Ext.fly(window).on("keydown",this.onKeyDown,this)},onMaxAppletSizeChange:function(){this.resizeFlashApplet()},onKeyDown:function(e){if(i.Config.get("memberAppletVersion")!==o.HTML5ChatPageComponent.APPLET_VERSION)switch(e.getCharCode()){case 37:try{this.getAppletContainer().prevRecommendation()}catch(e){console.error(e)}break;case 39:try{this.getAppletContainer().nextRecommendation()}catch(e){console.error(e)}}},onAppletShow:function(){i.Config.get("memberAppletVersion")!==o.HTML5ChatPageComponent.APPLET_VERSION&&(this.model.isPrivateEndDisplayed()||(this.model.setIsMinimized(!1),this.resizeFlashApplet()))},onAppletHide:function(){i.Config.get("memberAppletVersion")!==o.HTML5ChatPageComponent.APPLET_VERSION&&(this.model.isPrivateEndDisplayed()||this.model.setIsMinimized(!0))},onAppletMinimize:function(){this.fireEvent(o.FlashChatPageControllerAbstract.EVENT_APPLET_RESIZE,{scope:this})},setPerformerDetailsOnApplet:function(){var e=this.getAppletContainer(),t=i.Config.get("memberAppletVersion");if(i.isDefined(e)&&this.model.isAppletReady()||a.isChatPage()&&a.isEdge())try{3===t&&e.performerDetailsReady(this._performerData)}catch(e){console.error(e)}},backToPrivate:function(){this.callFunctionOnApplet("backToPrivate")},checkIfHTML5IsNeeded:function(){var e=this,t=i.Config.get("memberAppletVersion"),s=this._performerName;a.isFlashChatPage()?this.redirectToHTML5Page():3===t&&(i.Config.set("forceHTML5Chat",!0),i.Config.set("memberAppletVersion",o.HTML5ChatPageComponent.APPLET_VERSION),new Promise(function(e){e()}).then(function(){n(89).default.instance.appletReady.then(function(){i.fireEvent(o.FlashChatPageControllerAbstract.GLOBALEVENT_APPLET_TYPE_WILL_CHANGE),e.redirectToHTML5Page(s)}).catch(function(){i.fireEvent(o.FlashChatPageControllerAbstract.GLOBALEVENT_APPLET_TYPE_WILL_CHANGE),e.redirectToHTML5Page(s)})}.bind(null,n)).catch(n.oe))},redirectToHTML5Page:function(e){l.navigate("forceHTML5Chat",{trigger:!1,preventNavigateBack:!1,replace:!0}),l.navigateToChatPage("chat/"+e,{trigger:!0,preventNavigateBack:!1,replace:!0})},onVipShowStarted:function(){r.isHTML5AppletEnabled()&&this.checkIfHTML5IsNeeded()},onPerformerDetailsReady:function(e){var t=i.getPath(e,"json.data"),n=t.performer_id||t.performerid;this._performerName=n,this.isVipShowRedirectNeeded(t)?this.checkIfHTML5IsNeeded():h.superclass.onPerformerDetailsReady.call(this,e)},isVipShowRedirectNeeded:function(e){return e&&1===e.has_vip_show&&r.isHTML5AppletEnabled()},bind:function(){h.superclass.bind.call(this);var e=this;c.subscribe(function(t){"SHOW_STARTED"===t.type&&e.checkIfHTML5IsNeeded()}),i.on([{element:Ext.fly(window),event:"beforeunload",handler:this.onBeforeUnload},{element:i.Broadcaster,event:o.FlashExternal.GLOBALEVENT_APPLET_STREAM_READY,handler:this.resizeFlashApplet},{element:i.Broadcaster,event:o.BasicController.GLOBALEVENT_REFRESH_APPLET_SESSION,handler:this.setSessionId}],this)}})},function(e,t,n){var i=n(157),o=function(e){o.superclass.constructor.call(this,e)};e.exports=Ext.extend(o,i,{name:"FlashChatPageView",hideChat:function(){this.minimizeMemberApplet()},showChat:function(){this.resetAppletSize()},hideHTML5Applet:function(){try{Ext.fly("member_client_container").display("none")}catch(e){}}})},function(e,t,n){var i=n(0),o=n(2),s=n(236),r=function(e){r.superclass.constructor.call(this,e)};e.exports=Ext.extend(r,s,{name:o.FlashChatPageModalController.NAME,init:function(e,t){r.superclass.init.call(this,e,t),i.Config.set("OverlayAppletType",o.appletType.FLASH)},showChatModal:function(e){r.superclass.showChatModal.call(this,e),this.showChatBlock()},showChatBlock:function(){r.superclass.showChatBlock.call(this),this.resizeFlashApplet()},loadAppletAndPlay:function(e){this._refreshFlashVars(e),this._setSessionFlashVars(),this.chatCounter<this.removeAppletCounter&&this.chatCounter>0?(this.setPerformerDetailsOnApplet(),this.chatCounter++):(this.chatCounter===this.removeAppletCounter&&(this.chatCounter=0),this._flashBootstrapTaskRunner instanceof Ext.util.TaskRunner||(this._flashBootstrapTaskRunner=new Ext.util.TaskRunner),this._flashBootstrapTaskRunner.stopAll(),this._setFlashBootstrapTask(),this._flashBootstrapTaskRunner.start(this._flashBootstrapTask))},_setFlashBootstrapTask:function(){this._flashBootstrapTask={run:function(){i.isDefined(this.getAppletContainer())&&this.model.isAppletReady()&&(i.isFunction(this.getAppletContainer().nextPerformer)||i.isFunction(this.getAppletContainer().performerDetailsReady))&&(this._flashBootstrapTaskRunner.stop(this._flashBootstrapTask),this.chatCounter++,this.setPerformerDetailsOnApplet(),this.resizeFlashApplet())},scope:this,interval:200}},bind:function(){r.superclass.bind.call(this),i.on(i.Broadcaster,o.ModalComponent.GLOBALEVENT_MODAL_OPENED,this.onModalOpened,this)}})},function(e,t,n){var i=n(0),o=n(2),s=n(11),r=n(150),a=n(77),l=n(233),c=n(40),h=n(23),u=function(e){u.superclass.constructor.call(this,e)};e.exports=Ext.extend(u,l,{name:o.ChatPageModalControllerAbstract.NAME,chatTopValue:0,bootstrapKeys:["performer_id","supercategory","has_channel","sb_hash","ishostedchannel","sb_ip","channel_type","proxy_ip","p_id"],init:function(e,t){t.items.model.component.isChatPage=!1,t.items.model.component.setIsMinimized(!0),u.superclass.init.call(this,e,t)},_maxAppletSizeCalcHook:function(e,t){return this.view.element.dom.scrollHeight>t&&(e=Ext.getBody().getWidth()-this.defaultBrowserScrollBarWidth),[e,t]},onGetPerformerDetails:function(){u.superclass.onGetPerformerDetails.apply(this,arguments);var e=this.model.getCurrentModelName();this.model.getIsMinimized()||r.getHash()==="chat/"+e||(i.Config.set("PerformerName",e),s.navigateToChatPage("chat/"+e,{trigger:!1,keepActiveModal:!0,preventNavigateBack:!0}))},onPerformerDetailsReady:function(e){this._performerData=e.responseText,this._bootstrapFlashObj=i.pick(e.json.data,this.bootstrapKeys),this.model.getIsMinimized()||this.loadAppletAndPlay(this._bootstrapFlashObj),u.superclass.onPerformerDetailsReady.call(this,e)},openChatModal:function(e){this.model.getIsLocked()?this.unlockChatModal():this.showChatModal(e)},showChatModal:function(e){this._setPerformerNameConfig(e),c.isHtml5Default()||h.getAppletType()!==o.appletType.FLASH||3!==i.Config.get("memberAppletVersion")?new Promise(function(e){e()}).then(function(){var t=n(89).default;t.instance.playStreamByModelName(e).then(i.bind(function(){t.instance.setToFullLayoutMode()},this)).catch(function(){})}.bind(null,n)).catch(n.oe):(a.get(e).then(i.bind(this.onPerformerDetailsReady,this)).catch(this.redirectOnPerformerError),this.checkSafariWithOutdatedFlash()),this.view.showChat(),this.model.setIsMinimized(!1)},redirectOnPerformerError:function(){var e=i.getUrl("Error/Error404");setTimeout(function(){document.location.replace(e)},1e3)},showChatBlock:function(){this.view._showChatBlock()},unlockChatModal:function(){this.model.setIsLocked(!1),this.view.unlockChat()},lockChatModal:function(){this.model.setIsLocked(!0),this.view.lockChat()},closeChatModal:function(){this.model.getIsOnPrivate()||(this.model.setIsLocked(!1),this.model.setIsMinimized(!0),this.view.hideChat(),this.model.setAppletWidth(this.minAppletWidth),this.model.setAppletHeight(this.minAppletHeight),this.stopSafariOutdatedFlashCheckerTask(),this.resetChatApplet())},closeApplet:function(){this.model.getIsMinimized()||this.model.getIsLocked()||this.model.isPrivateEndDisplayed()||(this.model.setIsMinimized(!0),this.view.hideChat(),s.navigate("/",{trigger:!0,preventNavigateBack:!0}))},onModalOpened:function(e){e.scope&&e.scope.name===o.ChatModalComponent.NAME&&!this.model.isPrivateEndDisplayed()&&this.showChatBlock()},loadAppletAndPlay:function(){throw"You must implement loadAppletAndPlay method"},_setSessionFlashVars:function(){this.getAppletFlashvars()&&(this.setAllAppletsFlashvars("sessionid",i.Config.get("sessionIdJasmin1")),this.setAllAppletsFlashvars("jsm2session",i.Config.get("sessionId")),this.setAllAppletsFlashvars("issearchpage",parseInt(i.getMeta("isSearchPage"))))}})},function(e,t){e.exports={"arrow-prev":"_1oKEOq5wboBT","arrow-next":"_1fQb_qvvMdzO",container:"_3ujF9MoP7Zlk",hasContent:"_1r7n4wpnA6ZB",wrapper:"_1zQaXLfQtjcp","arrow-prev-disabled":"_2HKauFCmSMS-","arrow-next-disabled":"_1VhWHjDIDoyu",slider:"_2CQ0CES0EH-N",swiper:"UzlLvOYGiLN-","swiper-animated":"v21i4jUv6uii",slide:"_7UVa42fg97HU",legend:"_3FmkLAyLwEbi","slide-selected":"_2OddrJXjVIeN _7UVa42fg97HU",dots:"_3_jhE2h84icC",dot:"Wtue3P4s4o16","dot-selected":"_2fMazMIuS9S0 Wtue3P4s4o16"}},,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var i=n(0),o=n(2),s=n(699),r=n(263),a=n(718),l=n(3),c=function(e,t){c.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(c,i.Component,{name:o.ChannelContentManagerComponent.NAME,nextContentBlockUrl:"ChannelNextPostDetails/Index",prevContentBlockUrl:"ChannelPreviousPostDetails/Index",selectVideoCoverUrl:"ChannelVideoPreviewSelector/GetBlock",autoLoad:!0,isRefreshOverlayOnLogin:!1,_view:void 0,_model:void 0,init:function(e,t){this.getContentManagerController(),i.addEvents(o.ChannelContentManagerComponent.GLOBALEVENT_CONTENT_REPLACED,o.ChannelContentManagerComponent.GLOBALEVENT_GET_CONTENT_SUCCESS,o.ChannelContentManagerComponent.GLOBALEVENT_GET_CONTENT_ERROR,o.ChannelContentManagerComponent.GLOBALEVENT_DISPLAY_CHANNEL_BUTTON_CLICKED,o.ChannelContentManagerComponent.GLOBALEVENT_DISPLAY_CHANNEL_ANIMATION_FINISHED,o.ChannelContentManagerComponent.GLOBALEVENT_REMOVE_CONTENT),c.superclass.init.call(this,e,t)},getContentManagerController:function(){return this._setContentManagerController()},_setContentManagerController:function(){return this._contentManagerController instanceof s||(this._contentManagerController=new s({autoLoad:this.autoLoad,_isLastPage:"true"===i.Config.get("isLastPage","true"),urlRoutesDelete:{note:"ChannelDeletePost/Delete",picture:"ChannelDeletePost/Delete",video:"ChannelDeletePost/Delete"},urlRoutesEdit:{note:"ChannelNote/Edit",picture:"ChannelImage/Edit",video:"ChannelVideo/Edit"},items:{ContentManagerView:{component:this._setContentManagerView(),listeners:i.object([[o.ContentManagerView.EVENT_CONTENT_REPLACED,"onContentReplaced"]])},ContentManagerModel:{component:this._setContentManagerModel(),listeners:i.object([[o.ContentManagerModel.EVENT_GET_CONTENT_SUCCESS,"onGetContentSuccess"],[o.ContentManagerModel.EVENT_GET_CONTENT_ERROR,"onGetContentError"]])}}}),this._contentManagerController.on({"content-replaced":this.onContentReplaced,"get-content-success":this.onGetContentSuccess,"get-content-error":this.onGetContentError,scope:this})),this._contentManagerController},onOpenOverlayLogin:function(e){i.fireEvent(LikeController.EVENT_OPEN_OVERLAY_LOGIN,e)},_setContentManagerView:function(){return this._contentManagerView instanceof r||(this._contentManagerView=new r(this.element,{channelInnerContentId:"channel_wall_block"})),this._contentManagerView},_setContentManagerModel:function(){return this._contentManagerModel instanceof a||(this._contentManagerModel=new a(this.element,{deleteContentRoute:"ChannelDeletePost/Delete"})),this._contentManagerModel},onSubscriptionSuccess:function(){this.removeContent(),this.getZeroPage()},onContentReplaced:function(){i.fireEvent(o.ChannelContentManagerComponent.GLOBALEVENT_CONTENT_REPLACED,{scope:this})},onGetContentSuccess:function(e){i.fireEvent(o.ChannelContentManagerComponent.GLOBALEVENT_GET_CONTENT_SUCCESS,{scope:this,content:e.content,contentRendered:e.contentRendered,showMore:e.showMore,channelSubscription:e.channelSubscription})},onGetContentError:function(){i.fireEvent(o.ChannelContentManagerComponent.GLOBALEVENT_GET_CONTENT_ERROR)},onWallContentReplaced:function(){this._contentManagerController.unbind(),this._contentManagerController.bindElements()},onCheckMyWallClicked:function(){this.getContentManagerController().scrollToChannelWall()},removeContent:function(e){this.getContentManagerController().removeContent(e)},hideLoader:function(){this.getContentManagerController().hideLoader()},showLoader:function(){this.getContentManagerController().showLoader()},onCloseChat:function(e){e.scope.name===o.ChatModalComponent.NAME&&(this.removeContent(),i.fireEvent(o.ChannelContentManagerComponent.GLOBALEVENT_REMOVE_CONTENT,{scope:this}))},getChannelPageByModelName:function(e){this.getContentManagerController().getChannelPageByModelName(e)},onFreeChatModelChange:function(e){if(!this._hasLoadedContent&&l.isChatPage())return void(this._hasLoadedContent=!0);i.fireEvent(o.ChannelContentManagerComponent.GLOBALEVENT_REMOVE_CONTENT,{scope:this})},getZeroPage:function(){this.getContentManagerController().getZeroPage()},activateCommentWriting:function(){this.getCommentManagerController&&this.getCommentManagerController().activateCommentWriting(!0)},abortAjax:function(){this._contentManagerModel.abortAjax()},onLikeSuccess:function(e){this.getContentManagerController().ContentManagerView.refreshLikeCounter(e)},bind:function(){c.superclass.bind.call(this),i.on([{element:i.Broadcaster,event:o.SubscriptionPaymentComponent.GLOBALEVENT_SUBSCRIPTION_SUCCESS,handler:this.onSubscriptionSuccess},{element:i.Broadcaster,event:o.IsotopeLayoutComponent.GLOBAL_EVENT_WALL_CONTENT_REPLACED,handler:this.onWallContentReplaced},{element:i.Broadcaster,event:o.FlashExternal.GLOBALEVENT_ON_CHECK_MY_WALL_CLICKED,handler:this.onCheckMyWallClicked},{element:i.Broadcaster,event:o.ModalComponent.GLOBALEVENT_MODAL_CLOSED,handler:this.onCloseChat},{element:i.Broadcaster,event:o.FlashExternal.GLOBALEVENT_GET_PERFORMER_DETAILS,handler:this.onFreeChatModelChange},{element:i.Broadcaster,event:o.PhotoViewerComponent.GLOBALEVENT_LIKE_SUCCESS,handler:this.onLikeSuccess}],this)},unbind:function(){c.superclass.unbind.call(this),this._contentManagerView&&this._contentManagerView.unbind(),this._contentManagerModel&&this._contentManagerModel.unbind(),this._contentManagerController&&this._contentManagerController.unbind()}})},function(e,t,n){var i=n(0),o=n(2),s=n(166),r=n(3),a=n(121),l=function(e,t){l.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(l,s,{name:"ContentManagerView",animateDuration:.2,hiddenCls:"hidden",activeCls:"active",channelBlockContainerId:"channel_block_container",channelInnerContentId:"channel_inner_content",channelWallBlockId:"channel_wall_block",channelOverlayCls:"channel_overlay",contentFilterCls:"content_filter",contentIdDataType:"data-type-id",contentLikesSelector:".likes span",joinChannelButtonClass:"join_channel_button",_DropDownView:void 0,_selectedFilter:void 0,init:function(e,t){l.superclass.init.call(this,e,t),this.addEvents(o.ContentManagerView.EVENT_CONTENT_REPLACED,o.ContentManagerView.EVENT_CONTENT_FILTER_CLICKED,o.ContentManagerView.GLOBALEVENT_SUBSCRIBE_BUTTON_CLICK),this.collectElements()},collectElements:function(){this.body=Ext.getBody(),this._channelWallBlockEl=Ext.get(this.channelWallBlockId),this._channelBlockContainerEl=Ext.get(this.channelBlockContainerId),this._contentFilterItems=this.element.select("."+this.contentFilterCls)},replaceContent:function(e){return this._newContent=e,this._animateContent({type:o.ContentManagerView.ANIMATION_TYPE_HIDE,callback:this._hideContentCallback}),this},removeContent:function(e){this.showLoader(!e),this._channelBlockContainerEl&&(this._channelBlockContainerEl.addClass(this.hiddenCls),this._channelWallBlockEl.dom.innerHTML="")},showChannelContainer:function(){this._channelBlockContainerEl.removeClass(this.hiddenCls)},getLikedContentCounter:function(e){return this.select("article["+this.contentIdDataType+"="+e+"] "+this.contentLikesSelector).item(0)},refreshLikeCounter:function(e){var t,n=this.getLikedContentCounter(e.documentId);n&&(t=parseInt(n.dom.innerHTML,10),n.dom.innerHTML=e.likeState?++t:--t)},getChannelInnerContent:function(){return this.channelInnerContentEl||(this.channelInnerContentEl=Ext.get(this.channelInnerContentId)),this.channelInnerContentEl},_animateContent:function(e){TweenLite.to(this.element.dom,this.animateDuration||0,{alpha:e.type===o.ContentManagerView.ANIMATION_TYPE_HIDE?0:1,onCompleteScope:this,onComplete:e.callback})},_hideContentCallback:function(){this._overwriteContent(),this._animateContent({type:o.ContentManagerView.ANIMATION_TYPE_SHOW,callback:this._showContentCallback})},_showContentCallback:function(){this.fireEvent(o.ContentManagerView.EVENT_CONTENT_REPLACED,{scope:this})},_overwriteContent:function(){var e=this._newContent;return delete this._newContent,Ext.DomHelper.overwrite(this.element.dom,e,!0)},scrollToChannelWall:function(){r.isChatPage()?this.scrollToElement(this._channelWallBlockEl):this.scrollToModalWall()},scrollToWallPosition:function(e){this.body.hasClass(this.channelOverlayCls)?this.chatBlockEl.dom.scrollTop=e:this.body.dom.scrollTop=e},getWallPosition:function(){return this.body.hasClass(this.channelOverlayCls)?this.chatBlockEl.dom.scrollTop:this.body.dom.scrollTop},render:function(e,t){return this.showLoader(!1),t||(this.element.select(this._channelWallBlockEl.dom.children).remove(),Ext.DomHelper.append(this.getChannelInnerContent(),e)),this._subscribeButton=this._channelBlockContainerEl.select("."+this.joinChannelButtonClass),this._subscribeButton.getCount()&&this._subscribeButton.item(0).data("subscription-status")!==o.SubscriptionComponent.SUBSCRIPTION_STATUS_SUBSCRIBED&&a.getInstance().addNewButton(this._subscribeButton,this,i.Config.get("performerNick")),this},getZeroPageFromNoscriptTag:function(){var e=this.element.select("#"+this.channelBlockInnerId+" noscript").item(0),t=!1;return e&&(t=e.dom.innerText||e.dom.innerHTML,e.remove()),t},onContentFilterClick:function(e,t){e.preventDefault();var n=t.getAttribute("data-content"),s=i.Config.get("performerNick"),r=Ext.get(t);r.hasClass(this.activeCls)||(this._selectedFilter===n?this._selectedFilter=void 0:this._selectedFilter=n,this.setContentFilter(r),this.fireEvent(o.ContentManagerView.EVENT_CONTENT_FILTER_CLICKED,{scope:this,modelName:s,selectedFilter:this._selectedFilter}))},setContentFilter:function(e){e.hasClass(this.activeCls)?e.removeClass(this.activeCls):(this._contentFilterItems.removeClass(this.activeCls),e.addClass(this.activeCls))},bind:function(){l.superclass.bind.call(this),i.on([{element:this.element,event:"click",handler:this.onContentFilterClick,options:{delegate:".content_filter"}}],this)}})},function(e,t,n){var i=n(0),o=n(2),s=n(701),r=function(e,t){r.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(r,i.Model,{name:"SubscriptionModel",_collection:{},init:function(){r.superclass.init.call(this),this.addEvents(o.SubscriptionModel.EVENT_STATUS_CHANGE)},disableSubscription:function(){return this._isSubscriptionEnabled=!1,this},enableSubscription:function(){return this._isSubscriptionEnabled=!0,this},setSubscriptionStatus:function(e,t){this.getSubModel({performerName:e}).setStatus(t)},getSubModel:function(e){return i.isUndefined(this._collection[e.performerName])&&(this._collection[e.performerName]=new s(e)),this._collection[e.performerName]},removeSubModel:function(e){this._collection=i.without(this._collection,this._collection[e])}})},,,,,function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.loadPage=t.loadInOverlay=void 0;var o=n(4),s=i(o),r=n(760),a=i(r),l=n(763),c=i(l),h=n(765),u=i(h);t.loadInOverlay=function(e){return function(t){return s.default.createElement(c.default,{load:e,preloader:s.default.createElement(a.default,null,s.default.createElement(u.default,null))},function(e){return e?s.default.createElement(a.default,null,s.default.createElement(e,t)):null})}},t.loadPage=function(e){return function(t){return s.default.createElement(c.default,{load:e},function(e){return s.default.createElement(e,t)})}}},function(e,t,n){var i=n(0),o=n(2),s=n(15),r=n(3),a=(n(86),n(725)),l=function(e,t){l.superclass.constructor.call(this,e,t)};l.failureNotice={blackoutId:"blackout",blackout:'<div style="background:#000;opacity:.85;width:100%;height:100%;position:fixed;top:0;left:0;z-index:1000000" id="{id}" class="{removeClass}">&nbsp;</div>',cssClass:"request_failure",id:"request_failure_id",errorMsg:i.translate("Connection error. Please try again later!"),closeLinkId:"close_error",closeLinkCls:"close_error",template:'<div class="{cssClass} {removeClass}" id="{id}" style="position:absolute;height:30px; top:{top}px;left:{left}px;z-index:1000001"><span class="error_icon">&nbsp;</span>{errorMsg}<a id="{closeLinkId}" class="{closeLinkCls}" href="#">&nbsp;</a></div>',removeSelectorClass:"remove_this",closeError:function(e,t,n){if(e.preventDefault(),n&&n.callback)try{n.callback.call(n.scope||this)}catch(e){}try{Ext.select("."+this.removeSelectorClass).remove()}catch(e){}}},e.exports=Ext.extend(l,i.Component,{name:"form",errorNodeClass:"warning_tag",errorNodes:null,generalErrorCls:"error_message",generalErrorTextCls:"error_text",useModalForGeneralErrors:!0,errorTemplate:"{errorMsg}",rules:{},_remoteRules:{},fields:{},cssFieldSelectorClass:"validate",selectInputCls:"select",radioBoxCls:"radio_replacement",disabledClassName:"disabled",fieldsCollected:[],validationDelay:1e3,hasError:!1,submitSel:"input[type=submit]",submitButtons:void 0,loaderSel:"loader_button",loaderEl:void 0,hintedInputSel:"input[alt], select[alt], textarea[alt]",protipCls:"protip",hintContainerId:"hint_node",hintShowDuration:.3,hintHideDuration:0,errorHideDuration:.3,showHints:!0,showErrorsOnEdit:!0,showErrorsOnBlur:!0,showErrorsOnSubmit:!0,showErrorsPos:"right",handleToken:!0,submitOnSubmit:!0,disableSubmitOnInit:!1,disableSubmitOnSubmit:!1,submitDisabled:!1,decorator:!1,tokenFieldName:"form_token",formErrorSel:"form_error",hasCaptcha:!1,captchaConfig:{containerId:"captcha_block",captchaImg:"captchaimg",captchaRefreshBtnId:"refresh_captcha",captchaUrl:"/en/captcha/text/",captchaId:"captcha_id",captchaInputId:"captcha"},isBackConnNeeded:!1,backConnRequestId:0,checkBoxItems:{},radioBoxItems:{},checkedAllBox:!1,isDisabledOnEnter:!1,cancelButtonSel:"cancel_btn",cancelButtonEl:void 0,fadeInCls:"fade_in",isAjax:!1,ajaxUrl:void 0,isFormDisabled:!1,requestParams:void 0,_isExistingUsername:!1,captchaHintCls:"captchahint",enableSubmitDelay:1e3,init:function(e,t){this.element.un("submit"),this.fieldsCollected=[],this.collectFields(),this.setupErrors(),this.submitButtons=this.element.select(this.submitSel),this.cancelButtonEl=this.element.select("."+this.cancelButtonSel).item(0),i.addEvents(o.Form.GLOBALEVENT_BACKCONN_REQUEST,o.Form.GLOBALEVENT_BACKCONN_REQUEST_COMPLETE,o.Form.GLOBALEVENT_BACKCONN_REQUEST_ERROR),this.allFields=this.getAllFields(),this.initFormLoader(),this.hasCaptcha&&(this.captcha=new i.Captcha(this.captchaConfig.captchaImg,this.captchaConfig),this.captchaContainer=Ext.get(this.captchaConfig.containerId),s.registerCommand("showCaptcha",this.onShowCaptchaCallback,this)),this.isAjax&&!0===this.disableSubmitOnInit&&this.setSubmitEnabled(!1),l.superclass.init.call(this,e,t),!0===this.decorator&&this.addPlugin(o.FormDecorator.NAME,{component:a}),this.loadFunctions()},initFormLoader:function(){this.loaderSel&&(this.loaderEl=this.element.select("."+this.loaderSel).item(0),this.loaderEl&&(this.loaderEl.setStyle("width",this.submitButtons.elements[0].offsetWidth+"px"),this.loaderEl.setStyle("padding",0)))},loadFunctions:function(){this.getDefaultCheckedBox(this.checkBoxItems),this.getDefaultCheckedBox(this.radioBoxItems)},getDefaultCheckedBox:function(e){var t;for(var n in e)if(e.hasOwnProperty(n)){var i=Ext.get(n);null!==i&&(t=Ext.get(e[n].hiddenInputId),e[n].defaultValue=t.dom.value,e[n].isSetActiveClass=i.hasClass(e[n].activeClass))}},onInputFocus:function(e,t){this.errorNodes&&this.errorNodes.each(function(){var e=Ext.get(this.findParent("div"));e&&e.setStyle("display","none"),this.child("."+this.generalErrorTextCls).dom.innerHTML=""}),this.hideError(Ext.get(e.target.name)),this.placeHolders[e.target.name]&&(e.target.placeholder=""),this.fireEvent("inputFocus",e,e.target,t)},onInputBlur:function(e,t){this.placeHolders[e.target.name]&&(e.target.placeholder=this.placeHolders[e.target.name]),this.fireEvent("inputBlur",e,e.target,t)},onInputChange:function(e,t){this.fireEvent("inputChange",e,e.target,t)},onShowCaptchaCallback:function(){this.captchaContainer.setStyle("display","block"),setTimeout(i.bind(function(){this.captchaContainer.addClass(this.fadeInCls)},this),0),this.fireEvent("showCaptcha",this)},collectFields:function(){var e=[];this.fieldRules={},this.placeHolders={},this.getFields().each(function(t){var n=t.dom.className.replace(/.*\[|\]/gi,"").replace(/'/gi,""),i=n.split(", ");e.push([t.dom.name,i]),this.fieldRules[t.dom.name]={},this.placeHolders[t.dom.name]=t.dom.placeholder;for(var o=0;o<i.length;o++){var s=i[o],r=s.split(/=/);this.fieldRules[t.dom.name][r[0]]=r.length>=2?r[1]:void 0}},this);for(var t=0;t<e.length;t++)for(var n=0;n<e[t][1].length;n++){var i=e[t][1][n],o=e[t][0];if(this.rules[o]&&"undefined"!==this.rules[o]||(this.rules[o]={}),i.match(/=/)){var s=i.split("=");this.collectRulesFromFields(o,s)}else this.collectFieldsWithoutRules(o,i)}},collectRulesFromFields:function(e,t){if("remote"===t[0])this.registerRemoteEvents(e,t[1]);else{var n=this.rules[e][t[0]];n&&!i.isUndefined(n)||(n={}),n.value=t[1],this.fieldsCollected.push([e,t[0],t[1]])}},collectFieldsWithoutRules:function(e,t){var n=this.rules[e][t];n&&!i.isUndefined(n)||(n={}),n.value="",this.fieldsCollected.push([e,t,""])},getFields:function(){return this.element.select("input[class*="+this.cssFieldSelectorClass+"], select[class*="+this.cssFieldSelectorClass+"], textarea[class*="+this.cssFieldSelectorClass+"]")},getAllFields:function(){return this.element.select("input, select, textarea")},setSubmitEnabled:function(e){if(this.submitButtons.set({disabled:!e||null},!1),e?this.submitButtons.removeClass(this.disabledClassName):this.submitButtons.addClass(this.disabledClassName),this.loaderEl)if(!0===e)this.submitButtons.setStyle("display","block"),this.loaderEl.setStyle("display","none");else{var t=this.submitButtons.elements[0].offsetWidth+"px";this.submitButtons.setStyle("display","none"),this.loaderEl.setStyle("display","block"),this.loaderEl.setStyle("width",t)}this.submitDisabled=!e},disableForm:function(e){this.isFormDisabled=e;var t=this.element.select('input[type="submit"]').item(0);e&&!t.hasClass("disabled")?t.addClass("disabled"):t.removeClass("disabled")},setupErrors:function(){!0===this.showErrorsOnEdit&&this.getFields().on("focus",this.onInputErrorFocus,this).on("blur",this.onInputErrorBlur,this)},onInputErrorFocus:function(e){Ext.get(e.target).parent().select("."+this.formErrorSel).hide(this.errorHideDuration)},onInputErrorBlur:function(e){Ext.fly(e.target).hasClass(this.selectInputCls)||this.checkField(Ext.get(e.target),this.fieldRules[e.target.name],this.showErrorsOnBlur)},getFieldData:function(e){if(this.fields[e]instanceof Object)return this.fields[e]||null},checkField:function(e,t,n){e=Ext.get(e);var o=!0;if(!i.isUndefined(t))for(var s in t)t.hasOwnProperty(s)&&(o=o&&this.checkForFieldErrors(e,t,s,n));return this.fireEvent("validateField",e,o),o},checkForFieldErrors:function(e,t,n,o){var s=t[n];if("remote"!==n){var r=i.Validator[n].call(i.Validator,e.getValue(),s);return!r&&o?this.showError(e.dom,i.translate(n,{value:s})):this.hideError(e),r}},showError:function(e,t){var n=Ext.get(e)||this.element.select("."+this.generalErrorCls).item(0);if(n)if("general"===e||"system"===e||"token"===e){var s=this;this.errorNodes=this.element.select("."+this.generalErrorCls),this.errorNodes.each(function(){Ext.get(this.findParent("div")).setStyle({display:"inline-block",visibility:"visible"});var e=this.child("."+s.generalErrorTextCls);e&&(e.dom.innerHTML=t)})}else i.fireEvent(o.TooltipView.EVENT_SHOW_TOOLTIP,{element:n.dom,attributes:{title:t}})},hideError:function(e){var t=Ext.get(e);if(t){var n=t.findParent("."+this.protipCls);i.fireEvent(o.TooltipView.EVENT_HIDE_TOOLTIP,n)}},hideAllErrors:function(){return i.fireEvent(o.TooltipView.EVENT_HIDE_ALL_TOOLTIP,this.element.dom),this},onDelayedValidate:function(e,t,n){this.currentField=Ext.get(e),i.Validator.remote(this.currentField,this.currentField.dom.value,t,n,!0,this,this.validatorSuccessCallback,this.isBackConnNeeded)},validatorSuccessCallback:function(e,t){this._isExistingUsername=!t.json.success},registerRemoteEvents:function(e,t){this._remoteRules[e]={url:t,iId:null,success:!1},this.objEl=Ext.get(e),this.objEl.on("paste",this.onRemoteInputKeyup,this),"email"!==this.objEl.id&&this.objEl.on("keyup",this.onRemoteInputKeyup,this),this.showErrorsOnBlur&&this.objEl.on("blur",this.onRemoteInputBlur,this)},onRemoteInputBlur:function(e){var t=e.target.name,n=this._remoteRules[t].url;this.onDelayedValidate(t,n,this.element)},onRemoteInputKeyup:function(e){var t=e.target.name,n=this._remoteRules[t].url;(e.getCharCode()<=90&&e.getCharCode()>=48||8===e.getCharCode()||46===e.getCharCode())&&(i.isDefined(this.requestTask)&&(this.requestTask.cancel(),this.requestTask=null),this.requestTask=new Ext.util.DelayedTask(this.onDelayedValidate,this,[t,n,this.element]),this.requestTask.delay(this.validationDelay))},validateAll:function(e){for(var t=!1,n={},o=0;o<this.fieldsCollected.length;o++){var s=this.element.select('input[name="'+this.fieldsCollected[o][0]+'"]').item(0)||this.element.select('textarea[name="'+this.fieldsCollected[o][0]+'"]').item(0);if(!s)return;"TEXTAREA"!==s.dom.tagName&&"INPUT"!==s.dom.tagName||(s.dom.value=r.trim(s.dom.value));var a=s.dom.name,l=this.fieldsCollected[o][1],c=this.fieldsCollected[o][2];if("function"==typeof i.Validator[l]&&"remote"!==l){var h=i.Validator[l].call(i.Validator,s.getValue(),c);h||!1===e||!0===n[a]?s.hasClass(this.selectInputCls)&&(this.hideError(s),n[a]=!1):(this.showError(s.dom,i.translate(l,{value:c})),n[a]=!0)}h||(t=!0),this.isExistingExternalError(s)&&(t=this.isExistingExternalError(s))}return this._isExistingUsername&&(t=!0),this.fireEvent("validate",!t),t},isExistingExternalError:function(){return!1},onSubmitClick:function(e){e.preventDefault(),this.isFormDisabled||this.submitForm(e,e.target)},onSubmitKeyDown:function(e){var t=e.getCharCode();e.target.nodeName&&"INPUT"===e.target.nodeName&&(13!==t||e.shiftKey||!1!==this.isDisabledOnEnter||this.submitDisabled?13===t&&e.shiftKey&&e.preventDefault():this.submitForm(e))},submitForm:function(e){if(e.preventDefault(),this.hasError=this.validateAll(this.showErrorsOnSubmit),!this.submitOnSubmit||this.isFormDisabled)return e.preventDefault(),this.fireEvent("before-submit",{scope:this}),!this.hasError;this.hasError?this.fireEvent("validationError",this.element):(this.setSubmitEnabled(!this.disableSubmitOnSubmit),this.fireEvent("submit",this.element),this.isAjax?this.submit.call(this,e,e.target):this.element.dom.submit())},submit:function(){this.isAjax?this.sendSubmitRequest():this.element.dom.submit()},sendSubmitRequest:function(){var e=this.prepareDataForSubmit();s.request({url:e.ajaxUrl,method:this.element.dom.method.toUpperCase(),form:e.form,params:e.params,type:"json",scope:this,xDomainCallback:function(e){i.fireEvent(o.Ajax.GLOBALEVENT_XDOMAIN_RESPONSE,e)},success:function(t,n){i.isFunction(e.config.success)&&(i.fireEvent(o.TooltipView.EVENT_HIDE_ALL_TOOLTIP),this.requestSuccess(t,n,e.config,e.formId))},error:function(e,t){i.fireEvent(o.TooltipView.EVENT_HIDE_ALL_TOOLTIP),this.requestError(e,t)},failure:function(e,t,n){i.fireEvent(o.TooltipView.EVENT_HIDE_ALL_TOOLTIP),this.requestFailure(e,t,n)}})},prepareDataForSubmit:function(){var e,t={};for(var n in this.requestParams)this.requestParams.hasOwnProperty(n)&&(e=this.element.dom[this.requestParams[n]],i.isString(this.requestParams[n])&&e&&(t[this.requestParams[n]]=e.value));return{form:i.isObject(this.requestParams)?null:this.element,ajaxUrl:this.ajaxUrl?i.getUrl(this.ajaxUrl,{},{},""):this.element.dom.action,formId:this.element.dom.id,config:this.originalConfig,params:t}},requestSuccess:function(e,t,n,o){this.fireEvent("submitSuccess",this,e,t),new Ext.util.DelayedTask(function(){this.setSubmitEnabled(!0)},this).delay(1e3),i.isUndefined(n)?"function"==typeof this.originalConfig.success&&this.originalConfig.success.call(this.scope,this.element.dom.id,e,t):n.success.call(this.scope,o||this.element.dom.id,e,t),this.changeToken(e),this.loadFunctions()},requestError:function(e,t){if(i.isUndefined(e.json.errors)){var n=new i.Template(this.errorTemplate),o=n.applyTemplate({errorMsg:"invalid response from server"});this.showError("general",o)}this.hasCaptcha&&e.json.data&&e.json.data.captchaId&&this.refreshCaptcha(e),this.onError.call(this,e.json||{},e.json.errors||{});var s=!0;return i.isFunction(this.originalConfig.error)&&(s=this.originalConfig.error.call(this.scope,e,t,this,e.errors)),this.fireEvent("submitError",this,e,t),new Ext.util.DelayedTask(function(){this.setSubmitEnabled(!0)},this).delay(this.enableSubmitDelay),this.changeToken(e),s},requestFailure:function(e){return this.fireEvent("showfailure",e),l.failureNotice.show("Server error!"),new Ext.util.DelayedTask(function(){this.setSubmitEnabled(!0)},this).delay(this.enableSubmitDelay),!1},xDomainCallback:function(e,t){this.hideAllErrors(),e.json.success?(this.requestSuccess(e,t),i.fireEvent("backconn-request-complete",e,t)):(this.requestError(e,t),i.fireEvent("backconn-request-error",this))},resetForm:function(){this.element.dom.reset(),this.fireEvent("reset",this)},refreshCaptcha:function(e){var t=Ext.fly(this.captchaConfig.captchaId);t&&(t.dom.value=e.json.data.captchaId,this.captcha.fillCaptcha())},changeToken:function(e){var t=e.json[this.tokenFieldName];!0!==this.handleToken||i.isUndefined(t)||Ext.select("form[name='"+this.element.dom.name+"'] input[name='"+this.tokenFieldName+"']").each(function(){this.dom.value=t})},onError:function(e){if(i.isObject(e.errors))for(var t in e.errors){if(!e.errors.hasOwnProperty(t))return;switch(typeof e.errors[t]){case"object":if(i.isArray(e.errors[t]))for(var n in e.errors)!0===this.showErrorsOnSubmit&&this.showError(t,e.errors[n]);break;case"string":!0===this.showErrorsOnSubmit&&this.showError(t,e.errors[t])}}},onCheckBoxClick:function(e){e.preventDefault(),e.stopPropagation();var t=Ext.get(e.target).findParent("a").id;this.setCheckedBox(t,this.checkBoxItems)},onRadioBoxClick:function(e){e.preventDefault(),e.stopPropagation();var t=Ext.get(e.target).findParent("a").id;this.setCheckedBox(t,this.radioBoxItems)},setCheckedBox:function(e,t){var n,i,o;for(var s in t)n=Ext.get(s),i=t[s].activeClass,o=Ext.get(t[s].hiddenInputId),s===e?n.hasClass(i)?n.hasClass(this.radioBoxCls)||(n.removeClass(i),o.dom.value=t[s].unCheckedValue,o.dom.checked=!1):(n.addClass(i),o.dom.value=t[s].onCheckedValue,o.dom.checked=!0):n.hasClass(this.radioBoxCls)&&t[e].hiddenInputId===t[s].hiddenInputId&&(n.removeClass(i),o.dom.checked=!1)},onCancelBtnClick:function(){this.setDefaultCheckedBox(this.checkBoxItems),this.setDefaultCheckedBox(this.radioBoxItems)},setDefaultCheckedBox:function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=Ext.get(t),i=Ext.get(e[t].hiddenInputId);i.dom.value=e[t].defaultValue,!0===e[t].isSetActiveClass?(n.addClass(e[t].activeClass),i.dom.checked=!0):(n.removeClass(e[t].activeClass),i.dom.checked=!1)}},onRemoteResponseValidator:function(e){var t=e.json.errors;if(i.isString())this.fireEvent("showerror",this.currentField.dom,t),this.showError(this.currentField.dom,t);else if(i.isObject(t))for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];this.fireEvent("showerror",this.currentField.dom,o),this.showError(this.currentField.dom,o)}},bind:function(){this.submitButtons.on("click",this.onSubmitClick,this),this.cancelButtonEl&&this.cancelButtonEl.on("click",this.onCancelBtnClick,this);for(var e in this.checkBoxItems)this.checkBoxItems.hasOwnProperty(e)&&Ext.fly(e).on("click",this.onCheckBoxClick,this);for(var t in this.radioBoxItems)this.radioBoxItems.hasOwnProperty(t)&&Ext.fly(t).on("click",this.onRadioBoxClick,this);this.element.on("keydown",this.onSubmitKeyDown,this),this.allFields.on("focus",this.onInputFocus,this).on("blur",this.onInputBlur,this).on("change",this.onInputChange,this),i.Broadcaster.on(o.Ajax.GLOBALEVENT_REMOTE_RESPONSE,this.onRemoteResponseValidator,this)},unbind:function(){this.submitButtons.un("click",this.onSubmitClick,this),this.cancelButtonEl&&this.cancelButtonEl.un("click",this.onCancelBtnClick,this);for(var e in this.checkBoxItems)this.checkBoxItems.hasOwnProperty(e)&&Ext.fly(e).un("click",this.onCheckBoxClick,this);for(var t in this.radioBoxItems)this.radioBoxItems.hasOwnProperty(t)&&Ext.fly(t).un("click",this.onRadioBoxClick,this);this.allFields.un("focus",this.onInputFocus,this).un("blur",this.onInputBlur,this).un("change",this.onInputChange,this),this.getFields().un("focus",this.onInputErrorFocus,this).un("blur",this.onInputErrorBlur,this),void 0!==this.objEl&&(this.objEl.un("paste",this.onRemoteInputKeyup,this),this.objEl.un("keyup",this.onRemoteInputKeyup,this),this.objEl.un("blur",this.onRemoteInputBlur,this)),this.element.un("keydown",this.onSubmitKeyDown,this),this.hideAllErrors(),l.superclass.unbind.call(this)}})},function(e,t,n){var i=n(0),o=n(2),s=function(e){if(s.prototype.instance)throw"You should use the getInstance method";s.superclass.constructor.call(this,e)};s.getInstance=function(){return s.prototype.instance instanceof s||(s.prototype.instance=new s),s.prototype.instance},e.exports=Ext.extend(s,i.Model,{name:"MessagesCounterStore",modelMessagesRoute:"PerformerMessageRefresh/Init",store:{messages:{}},_unreadMessagesRequestDone:!1,listeners:{},activeThreadId:-1,init:function(){s.superclass.init.call(this),!this._unreadMessagesRequestDone&&this.getInitialThreadUnreadMessagesCount(),!this._unreadMessagesRequestDone&&this.bind()},getStore:function(){return this.store},getInitialThreadUnreadMessagesCount:function(){var e=i.getUrl(this.modelMessagesRoute);this.fetch({url:e,success:i.bind(this._updateModelMessagesByThreadId,this),error:i.bind(this._updateModelMessagesByThreadIdError,this)})},on:function(e,t,n){this.listeners[e]||(this.listeners[e]={}),this.listeners[e][n]=t},off:function(e,t,n){this.listeners[e]&&delete this.listeners[e][n]},_updateModelMessagesByThreadId:function(e){var t=i.getPath(e,"json.data"),n=this;i.map(t,function(e,t){n.store.messages[t]=parseInt(e)}),this._unreadMessagesRequestDone=!0,this.fireCallbacks("change")},_updateModelMessagesByThreadIdError:function(e){console.log("Technical Error Please try again later!",e)},fireCallbacks:function(e){var t=this.getUnreadThreadsCounter(),n=e?this.listeners[e]:i.values(this.listeners);i.map(n,function(e,n){e(t)})},updateStoreByThreadId:function(e){if(e!=this.activeThreadId)return i.isUndefined(this.store.messages[e])?this.store.messages[e]=1:this.store.messages[e]++,this.fireCallbacks("change"),this.getUnreadThreadsCounter()},resetThreadUnreadCounterById:function(e){parseInt(this.store.messages[e])>0&&(this.store.messages[e]=0,this.fireCallbacks("change"))},removeThreadById:function(e){void 0!==this.store.messages[e]&&(delete this.store.messages[e],e==this.activeThreadId&&(this.activeThreadId=-1),this.fireCallbacks("change"))},setActiveThreadId:function(e){this.activeThreadId=e},resetActiveThread:function(){this.activeThreadId=-1},getUnreadThreadsCounter:function(){var e=i.pick(this.store.messages,function(e){return e>0});return Object.keys(e).length},getTotalThreadsCounter:function(){return Object.keys(this.store.messages).length},getUnreadMessageCountByThreadId:function(e){return this.store.messages[e]},onModalClose:function(e){e.scope.name===o.MessagesModalComponent.NAME&&this.resetActiveThread()},bind:function(){i.on([{element:i.Broadcaster,event:o.ModalComponent.GLOBALEVENT_MODAL_CLOSED,handler:this.onModalClose}],this)}})},function(e,t,n){var i=n(0),o=n(23),s=n(2),r=n(289),a=n(235),l=n(726),c=n(727),h=n(728),u=n(40);e.exports=function(){var e=null,t=null,d=function(){return i.Config.set("memberAppletVersion",3),e||(e=new r("chatblock",{controllerClassName:a,viewClassName:l})),e},E=function(){return new Promise(function(e,o){n.e(42).then(function(){n(89).default.instance.appletReady.then(function(){var o=n(807);i.Config.set("memberAppletVersion",s.HTML5ChatPageComponent.APPLET_VERSION),t||(t=new o("chatblock",{controllerClassName:c,viewClassName:h})),e(t)})}.bind(null,n)).catch(n.oe)})};return{getComponent:function(){return new Promise(function(e,t){u.isHtml5Default()||!0===i.Config.get("forceHTML5Chat")?E().then(e):o.getFlashPluginStatus(function(n){switch(n){case s.Flash.PLUGIN_ENABLED:e(d());break;case s.Flash.PLUGIN_BLOCKED:case s.Flash.PLUGIN_NOT_FOUND:E().then(e);break;default:t(new Error("Get flash plugin status failed."))}})})}}}()},function(e,t,n){var i=n(88),o=function(e){o.superclass.constructor.call(this,e)};e.exports=Ext.extend(o,i,{name:"ChatAppletTemplate",tpl:'<object id="{chatAppletId}" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" data="{memberAppletUrl}" type="application/x-shockwave-flash" width="1" height="1"><param name="movie" value="{memberAppletUrl}" /><param name="quality" value="high" /><param name="allowScriptAccess" value="always" /><param name="allowNetworking" value="all" /><param name="wmode" value="window" /><param name="allowFullScreen" value="true" /><param name="allowFullScreenInteractive" value="true" /><param name="FlashVars" value="{memberAppletFlashvarsQS}" /></object>',_setTemplateParams:function(e){return e}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}var o=n(540),s=i(o),r=n(4),a=i(r),l=n(78),c=i(l),h=n(0),u=n(2),d=n(3),E=n(14),p=n(11),_=n(693),m=n(696),C=n(262),f=n(121),g=n(719),T=n(36).default,S=n(49).default,v=function e(t,n){e.superclass.constructor.call(this,t,n)};Ext.extend(v,h.Component,{name:u.ModelContentComponent.NAME,_biopageContainerId:"biopage",flashPlayerIdOnOverlay:"flash_player",htmlVideoPlayerSel:"#channel_video_container video",overlaidHeaderClass:"overlaid",orderDropDownId:"channel_order_dropdown",scheduledShowEl:"scheduled_show_block",needChannelDisplayWall:!0,_isStreamReady:!1,_currentPageType:void 0,_maskElement:void 0,_refreshContentByOrderCmp:void 0,_hasChannel:!0,isVideoContentOpened:!1,chatContainerId:"freechat_container",disabledBioList:["JasminChannel"],chatComponent:null,delayedLoadTimeout:5e3,_isFirstLoad:!0,scheduledShowReqInProgress:!1,init:function(e,t){h.addEvents(u.ModelContentComponent.GLOBALEVENT_INIT_MODEL_WITHOUT_BIO),v.superclass.init.call(this,e,t),this.chatContainerEl=Ext.get(this.chatContainerId),this.scheduledShowBlock=document.getElementById(this.scheduledShowEl),this._setChannelContentManagerComponent().showLoader(),this._isDisabledBio()?this._setChannelContentManagerComponent().hideLoader():d.isHtml5ChatPage()?this.loadContent():this.loadContentWithDelay()},loadContentWithDelay:function(){var e=this;this.delayedLoadContentTimeout&&clearTimeout(this.delayedRecommenderModelContentTimeout),this.delayedLoadContentTimeout=setTimeout(function(){e.loadContent()},this.delayedLoadTimeout)},loadContent:function(){if(this._isStreamReady=!0,!this.scheduledShowReqInProgress&&this.loadScheduledShows(),d.isFlashChatPage()?this._hasChannel=h.Config.get("memberAppletFlashvars").has_channel:this._hasChannel=h.Config.get("HTMLAppletVars").has_channel,!1!==this._hasChannel&&!0===h.Config.get("isSiteChannelEnabled"))this._currentPageType=u.ModelContentComponent.PAGE_CONTENT_TYPE_CHANNEL,this._initWall();else{if(this._isDisabledBio())return;this.getBiopageContentManagerComponent().getContent(),this._currentPageType=u.ModelContentComponent.PAGE_CONTENT_TYPE_BIO}},loadScheduledShows:function(){var e=this,t=h.Config.get("performerNick");null===this.scheduledShowBlock||this.scheduledShowReqInProgress||(this.scheduledShowReqInProgress=!0,S.getScheduledShowsByPerformerNick(t).then(function(t){S.addToWall(t),e.scheduledShowReqInProgress=!1}).catch(function(e){console.warn(e)}))},_sendGoogleAnalyticsEvent:function(e){T.trackGenericEvent({eventAction:T.CONST.ACTION.CHAT_CONTENT,eventLabel:e?"withWall":"withoutWall"})},openPaymentModal:function(){h.Config.get("isOnPrivate")?window.open(h.getUrl("Credit/Index"),"_blank"):p.navigate("payment",{trigger:!0,preventNavigateBack:!1})},renderScheduledShow:function(){if(null!==this.scheduledShowBlock&&!this.chatComponent.getIsMinimized()){var e=S.getWallData(),t=Object.assign({},{translate:h.translate,language:h.Config.get("language"),performerName:h.Config.get("performerNick"),openPaymentModal:this.openPaymentModal.bind(this),shows:e.shows,currentServerTime:e.currentServerTime,currentClientTime:e.currentClientTime,isOverlay:!!p.getActiveModal()});c.default.render(a.default.createElement(s.default,t),this.scheduledShowBlock)}},_setIsotopeLayoutComponent:function(){return this._isotopeLayoutComponent instanceof _||(this._isotopeLayoutComponent=new _(this.element,{containerId:"channel_inner_content"})),this._isotopeLayoutComponent},setOrderComponent:function(){return this._refreshContentByOrderCmp&&this._refreshContentByOrderCmp.destroy(),Ext.get(this.orderDropDownId)&&(this._refreshContentByOrderCmp=new m(this.orderDropDownId,{})),this._refreshContentByOrderCmp},_initWall:function(){this._hasChannel=!0,this._setChannelContentManagerComponent().getZeroPage(),this.isChannelEnabledAndFreechatIsVisible()&&(this.chatContainerEl.removeClass("centered"),this._setIsotopeLayoutComponent())},_initBio:function(){if(this.destroyBiopageContentManagerComponent(),this._hasChannel=!1,this._isDisabledBio())return void h.fireEvent(u.ModelContentComponent.GLOBALEVENT_INIT_MODEL_WITHOUT_BIO,this);this._setBiopageContentManagerComponent().getContent()},isChannelEnabledAndFreechatIsVisible:function(){return h.Config.get("isSiteChannelEnabled")},onModalClosed:function(e){e.scope.name===u.ChatModalComponent.NAME&&(this._biopageContentManagerComponent&&this._biopageContentManagerComponent.removeContent(),this.destroyChannelContentManagerComponent(),this.destroyIsotopeLayoutComponent(),this.destroyModelContentComponents(),this._perfName=null)},onBecomePremiumMemberClick:function(){this._startPaymentProcess()},_startPaymentProcess:function(){p.navigate("payment",{trigger:!0,preventNavigateBack:!1,replace:!1})},_setChannelContentManagerComponent:function(){return this._channelContentManagerComponent instanceof C||(this._channelContentManagerComponent=new C(this.element,{needChannelDisplayWall:this.needChannelDisplayWall,channelType:this.channelType,autoLoad:!1,isRefreshOverlayOnLogin:!0})),this._channelContentManagerComponent},onGetContentSuccess:function(e){e.channelSubscription&&f.getInstance().startPendingState(e.channelSubscription),this.setOrderComponent(),this.savePerformerName(),this.changeFreeChatTitle();var t=e.scope instanceof C;this._sendGoogleAnalyticsEvent(t)},onGetChannelContentError:function(){this._isDisabledBio()||(this._currentPageType=u.ModelContentComponent.PAGE_CONTENT_TYPE_BIO,this.getBiopageContentManagerComponent().getContent())},getBiopageContentManagerComponent:function(){return this._setBiopageContentManagerComponent()},savePerformerName:function(){this._perfName=h.Config.get("performerNick")},changeFreeChatTitle:function(){this._freechatTitleEl&&(this._seoText=this._perfName,this._freechatTitleEl.dom.innerHTML=this._seoText)},getNextModel:function(){d.isChatPage()||this._setBiopageContentManagerComponent().removeContent(),this.changeFreeChatTitle(),h.fireEvent(u.ModelContentComponent.GLOBALEVENT_GET_NEXT_MODEL,{performerId:this._perfName})},onNextModel:function(){if(this._isFirstLoad&&d.isChatPage())return void(this._isFirstLoad=!1);this._isDisabledBio()||this._setChannelContentManagerComponent().showLoader();var e=this;this.delayedRecommenderModelContentTimeout&&clearTimeout(this.delayedRecommenderModelContentTimeout),this.delayedRecommenderModelContentTimeout=setTimeout(function(){e.onInitWall()},this.delayedLoadTimeout)},_setBiopageContentManagerComponent:function(){return this._biopageContentManagerComponent instanceof g||(this._biopageContentManagerComponent=new g(this.element,{containerId:"inner_container",isOverlay:!d.isChatPage()})),this._biopageContentManagerComponent},_isDisabledBio:function(){var e=h.Config.get("performerNick");return-1!==this.disabledBioList.indexOf(e)},onAppletReady:function(){d.isChatPage()&&(this._isStreamReady=!0)},onAppletStreamReady:function(){var e=this._perfName;this._updatePerformerData(),this._perfName===e&&this._isotopeLayoutComponent||this.loadContent(),this._isStreamReady=!0,this._clearTimeouts()},onInitWall:function(){if(this._isFirstLoad)return void(this._isFirstLoad=!1);var e=this._perfName;if(this._isStreamReady=!0,this._updatePerformerData(),this._isDisabledBio())return void this._setChannelContentManagerComponent().hideLoader();e!==this._perfName&&(d.isChatPage()?this.loadContent():this.initOverlayModelContentComponents(this._hasChannel))},initOverlayModelContentComponents:function(e){e?this._initWall():this._initBio()},_updatePerformerData:function(){var e=d.getAppletVars();this._perfName=e.performerid||e.performer_id,this._hasChannel=!!e.haschannel||!!e.has_channel},onFreeChatModelChange:function(){this._updatePerformerData();var e=this._hasChannel&&h.Config.get("isSiteChannelEnabled");this._isStreamReady?this.destroyModelContentComponents():this._setChannelContentManagerComponent().removeContent(!e),this._isStreamReady=!1},onHistoryChange:function(e){e!==this._perfName&&this.destroyModelContentComponents()},destroyModelContentComponents:function(){this._clearTimeouts(),this._setChannelContentManagerComponent().removeContent(),this.destroyChannelContentManagerComponent(),this.destroyIsotopeLayoutComponent(),this.destroyBiopageContentManagerComponent(),this.destroyScheduledShows()},_clearTimeouts:function(){this.delayedLoadContentTimeout&&(clearTimeout(this.delayedLoadContentTimeout),delete this.delayedLoadContentTimeout),this.delayedRecommenderModelContentTimeout&&(clearTimeout(this.delayedRecommenderModelContentTimeout),delete this.delayedRecommenderModelContentTimeout)},initModelContentComponents:function(){if(this._hasChannel||d.isChatPage())if(this._hasChannel)this._currentPageType=u.ModelContentComponent.PAGE_CONTENT_TYPE_CHANNEL,this._initWall();else{if(this._isDisabledBio())return;Ext.getBody().hasClass("layout-channel")||(this._currentPageType=u.ModelContentComponent.PAGE_CONTENT_TYPE_BIO,this.getBiopageContentManagerComponent().getContent())}},destroyChannelContentManagerComponent:function(){this._channelContentManagerComponent&&(this._channelContentManagerComponent.abortAjax(),this._channelContentManagerComponent.unbind(),delete this._channelContentManagerComponent)},destroyBiopageContentManagerComponent:function(){this._biopageContentManagerComponent&&(this._biopageContentManagerComponent.removeContent(),this._biopageContentManagerComponent.abortAjax(),this._biopageContentManagerComponent.unbind(),delete this._biopageContentManagerComponent)},destroyIsotopeLayoutComponent:function(){this._isotopeLayoutComponent instanceof _&&(this._isotopeLayoutComponent.unbind(),delete this._isotopeLayoutComponent)},destroyScheduledShows:function(){c.default.unmountComponentAtNode(this.scheduledShowBlock),S.setDefaultWallStore()},onIsotopeContentReplace:function(){this.destroyIsotopeLayoutComponent(),this._setIsotopeLayoutComponent()},reInitModelContentComponents:function(){!this.chatComponent||!d.isChatPage()&&this.chatComponent.getIsMinimized()||(this.destroyModelContentComponents(),this.initModelContentComponents(h.Config.get("performerHasChannel")),this.loadScheduledShows())},reInitBioPageContentComponents:function(){this._initBio()},onLoggedIn:function(){this.reInitModelContentComponents()},onAppletLoggedIn:function(){this._hasChannel||this.reInitBioPageContentComponents()},onAfterSignupSuccess:function(){this.reInitModelContentComponents()},onSubscriptionChange:function(){d.isChatAppletOnPage()&&this.reloadContent()},reloadContent:function(){this.destroyIsotopeLayoutComponent(),this._setChannelContentManagerComponent().removeContent(),this._setIsotopeLayoutComponent(),this._setChannelContentManagerComponent().getZeroPage()},onDropDownMenuItemClick:function(e){this._isotopeLayoutComponent.sortLayout(e)},activateCommentWriting:function(){this._channelContentManagerComponent&&this._channelContentManagerComponent.activateCommentWriting()},onMemberAppletSubscribe:function(e){E.isLoggedIn()&&p.navigate("subscribe/"+e.modelName,!0)},onRecommenderClick:function(){this._isFirstLoad=!1,this._perfName=null},onHtml5ListPagePlayerStopped:function(){this.destroyModelContentComponents()},bind:function(){v.superclass.bind.call(this),S.subscribe(this.renderScheduledShow.bind(this)),h.on([{element:h.Broadcaster,event:u.ChatPageComponentAbstract.GLOBALEVENT_APPLET_RECOMMENDER_CLICK,handler:this.onRecommenderClick},{element:h.Broadcaster,event:u.PhotoViewerComponent.GLOBALEVENT_BECOME_PREMIUM_MEMBER_CLICK,handler:this.onBecomePremiumMemberClick},{element:h.Broadcaster,event:u.ChannelOrderDropdownComponent.EVENT_DROPDOWN_MENU_ITEM_CLICK,handler:this.onDropDownMenuItemClick},{element:h.Broadcaster,event:u.BasicController.GLOBALEVENT_AFTER_SIGNUP_SUCCESS,handler:this.onAfterSignupSuccess},{element:h.Broadcaster,event:u.BasicController.GLOBALEVENT_LOGGED_IN,handler:this.onLoggedIn},{element:h.Broadcaster,event:u.FlashExternal.GLOBALEVENT_GET_NEXT_MODEL,handler:this.onNextModel},{element:h.Broadcaster,event:u.ChatPageComponentAbstract.GLOBALEVENT_SET_MODEL_FROM_HISTORY,handler:this.getNextModel},{element:h.Broadcaster,event:u.FlashExternal.GLOBALEVENT_GET_PERFORMER_DETAILS,handler:this.onFreeChatModelChange},{element:h.Broadcaster,event:u.ChatPageComponentAbstract.GLOBALEVENT_HISTORY_CHANGE,handler:this.onHistoryChange},{element:h.Broadcaster,event:u.ChannelContentManagerComponent.GLOBALEVENT_GET_CONTENT_SUCCESS,handler:this.onGetContentSuccess},{element:h.Broadcaster,event:u.ChannelContentManagerComponent.GLOBALEVENT_GET_CONTENT_ERROR,handler:this.onGetChannelContentError},{element:h.Broadcaster,event:u.FlashExternal.GLOBALEVENT_APPLET_STREAM_READY,handler:this.onAppletStreamReady},{element:h.Broadcaster,event:u.IsotopeLayoutComponent.GLOBAL_EVENT_WALL_CONTENT_REPLACED,handler:this.onIsotopeContentReplace},{element:h.Broadcaster,event:u.FlashExternal.GLOBALEVENT_APPLET_LOGIN,handler:this.onAppletLoggedIn},{element:h.Broadcaster,event:u.FlashExternal.GLOBALEVENT_APPLET_READY,handler:this.onAppletReady},{element:h.Broadcaster,event:u.FlashExternal.GLOBALEVENT_APPLET_SUBSCRIBE,handler:this.onMemberAppletSubscribe},{element:h.Broadcaster,event:u.SubscriptionComponent.GLOBALEVENT_SUBSCRIPTION_CHANGE,handler:this.onSubscriptionChange},{element:h.Broadcaster,event:u.FlashExternal.GLOBALEVENT_APPLET_CHANNEL_SUBSCRIPTION_CHANGE,handler:this.onSubscriptionChange},{element:h.Broadcaster,event:u.ModalComponent.GLOBALEVENT_MODAL_CLOSED,handler:this.onModalClosed},{element:h.Broadcaster,event:u.ListPagePlayerController.GLOBALEVENT_HTML5_PLAYER_STOPPED,handler:this.onHtml5ListPagePlayerStopped}],this)},unbind:function(){v.superclass.unbind.call(this),S.unsubscribe(this.renderScheduledShow.bind(this))}}),e.exports=v},function(e,t,n){var i=n(0),o=n(2),s=n(76),r=function(){if(r._instance)throw new Error("This is a singleton class. Please use .getInstance() method instead of new.");this._bindEvents()};r.getInstance=function(){return r._instance||(r._instance=new r)},e.exports=Ext.extend(r,i.Component,{onStatusChange:function(e){this.fireEvent(o.StatusUpdaterComponent.PERFORMER_STATUS_CHANGES_EVENT,e.header)},_bindEvents:function(){this.addEvents(i.keys(o.StatusUpdaterComponent.PERFORMER_STATUS_CHANGES_EVENT)),i.on([{element:s.getClient(),event:o.StatusUpdaterComponent.PERFORMER_STATUS_CHANGES_EVENT_JAWS,handler:i.bind(this.onStatusChange,this)}],this)}})},function(e,t,n){var i=n(0),o=n(2),s=n(3),r=function(e){r.superclass.constructor.call(this,e)};e.exports=Ext.extend(r,i.View,{name:"ModalView",modalBackgroundId:"overlay",modalShowCls:"overlay_show",showCls:"show",showLoaderCls:"show_loader",disableCloseCls:"disable_close",hideOverlayContentCls:"overlay_content_hide",showLoaderTimeoutDelay:200,_modalDisplayed:!1,debounceWait:200,init:function(){this.getContainerElements(),r.superclass.init.call(this),this.addEvents(o.ModalView.MODAL_BACKGROUND_CLICK,o.ModalView.MODAL_CLOSE_BTN_CLICK,o.ModalView.MODAL_ESC_KEY_PRESSED,o.ModalView.MODAL_BEFORE_DISPLAYED,o.ModalView.MODAL_DISPLAYED,o.ModalView.MODAL_SHOW_LOADER),this.autoRender||this.template||(this.model.fetch({success:i.bind(this._onGetModalSuccess,this),error:i.bind(this._onGetModalError,this)}),this.showLoader()),this._showContainers()},getContainerElements:function(){this._modalBackgroundEl=Ext.get(this.modalBackgroundId),this._modalContainerEl=Ext.get(this.containerId),this._bodyEl=Ext.getBody()},render:function(){this.autoRender||(this.element=s.createElementFromHtmlString(this.model.getContent(),this.isFullContentAppend)),r.superclass.render.call(this),this._afterRender()},_afterRender:function(){this._appendModal(),this._bindModalCloseBtnClickEvent(),this._sendDisplayedEvent()},_sendDisplayedEvent:function(){this.fireEvent(o.ModalView.MODAL_DISPLAYED,this),this._modalDisplayed=!0},_appendModal:function(){this.containerId&&this._modalContainerEl&&(this._modalContainerEl.addClass(this.hideOverlayContentCls),this._modalContainerEl.appendChild(this.element),this.fireEvent(o.ModalView.MODAL_BEFORE_DISPLAYED,this),this.element.addClass(this.showCls),this._modalContainerEl.removeClass(this.hideOverlayContentCls),this.hideLoader())},_onGetModalSuccess:function(){this.render()},_onGetModalError:function(e){console.warn("Get modal content error: ",e),this._hideContainers()},_showContainers:function(){this._modalBackgroundEl.addClass(this.showCls),this._modalContainerEl.addClass(this.showCls),this._bodyEl.addClass(this.modalShowCls)},showLoader:function(){i.delay(i.bind(function(e){this.fireEvent(o.ModalView.MODAL_SHOW_LOADER),this._modalDisplayed||this._modalContainerEl.addClass(e)},this),this.showLoaderTimeoutDelay,this.showLoaderCls)},hideLoader:function(){this._modalContainerEl.removeClass(this.showLoaderCls)},_hideContainers:function(){this._modalBackgroundEl.removeClass(this.showCls),this._modalContainerEl.removeClass(this.showCls),this._bodyEl.removeClass(this.modalShowCls)},destroy:function(){this._hideContainers(),r.superclass.destroy.call(this)},_bindModalCloseBtnClickEvent:function(){i.on([{element:this.element,event:"click",handler:i.debounce(this.onModalCloseBtnClick,this.debounceWait,!0),scope:this,options:{delegate:"."+this.modalCloseBtnCls}}],this)},onModalCloseBtnClick:function(e){e.preventDefault(),this.fireEvent(o.ModalView.MODAL_CLOSE_BTN_CLICK)},onModalBackgroundClick:function(){this._modalDisplayed&&this.fireEvent(o.ModalView.MODAL_BACKGROUND_CLICK)},onEscKeyUp:function(e){this._modalDisplayed&&e.keyCode===o.ModalView.ESC_KEY_CODE&&!this.model.getIsOnFullScreen()&&this.fireEvent(o.ModalView.MODAL_ESC_KEY_PRESSED)},onFullScreenChange:function(){this.model.setIsOnFullScreen(i.Util.isFullScreen())},isClosable:function(){return!this._modalContainerEl.hasClass(this.disableCloseCls)},bind:function(){r.superclass.bind.call(this);var e=i.debounce(this.onFullScreenChange,this.debounceWait,!1);i.on([{element:Ext.fly(document),event:"keyup",handler:i.debounce(this.onEscKeyUp,this.debounceWait,!0)},{element:this._modalContainerEl,event:"click",handler:i.debounce(this.onModalBackgroundClick,this.debounceWait,!0),options:{target:this._modalContainerEl.dom}},{element:Ext.fly(window),event:"webkitfullscreenchange",handler:e},{element:Ext.fly(window),event:"mozfullscreenchange",handler:e},{element:Ext.fly(window),event:"fullscreenchange",handler:e},{element:Ext.fly(window),event:"MSFullscreenChange",handler:e}],this)}})},function(e,t,n){var i=n(0).Model,o=function(e,t){o.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(o,i,{name:"ModalModel",_isOnFullScreen:!1,setIsOnFullScreen:function(e){this._isOnFullScreen=e},getIsOnFullScreen:function(){return this._isOnFullScreen}})},function(e,t,n){var i=n(88),o=function(e){o.superclass.constructor.call(this,e)};e.exports=Ext.extend(o,i,{name:"AutoSuggestNoResultTemplate",tpl:'<ul class="auto_suggest"><li class="no_suggestion"><span class="icon">&nbsp;</span><span>{noResultText}</span></li></ul>',_setTemplateParams:function(e){return{noResultText:e.noResultText}}})},function(e,t,n){var i=n(0),o=n(15),s=function(e,t,n){return new Promise(function(o,s){i.Storage.getGroup("URLCache")||i.Storage.setGroup("URLCache");var r=i.Storage.get(e,!1,"URLCache")||{},a={};a[t]={url:n,time:Date.now()},a=Object.assign(a,r),i.Storage.set(e,a,"URLCache")?o():s(new Error("Store in localStorage has failed."))})},r=function(e,t){var n=i.Storage.get(e,!1,"URLCache");return n&&n[t]?Date.now()-n[t].time>=432e5?(delete n[t],i.Storage.set(e,n,"URLCache"),null):n[t]||null:null};e.exports={getPerformerProfilePicture:function(e,t){return new Promise(function(n,a){var l=r(e,t);null!==l?n(l.url,e):o.request({method:"GET",type:"JSON",url:i.getUrl("PerformerProfilePicture/Index",{performerNick:e,imageSize:t}),scope:this,success:function(o){var r=i.getPath(o,"json.data.url");s(e,t,r),n(r,e)},error:a,failure:a})})}}},function(e,t,n){var i=n(0),o=n(730),s=function(e,t){s.constructor.call(this,e,t),this.init(Ext.getBody(),{})};s.EVENT_FIRE_ACTION="fire-action",s.getInstance=function(){return s.prototype.instance instanceof s||(s.prototype.instance=new s),s.prototype.instance},Ext.extend(s,o,{name:"StorageAction",groupId:"storage-action",init:function(e,t){s.superclass.init.call(this,e,t),i.Storage.getGroup(this.groupId)||i.Storage.setGroup(this.groupId)},store:function(e,t){return void 0===t&&console.warn("Unable to store undefined params."),i.Storage.set(e,t,this.groupId)},registerAction:function(e){if(s.superclass.registerAction.call(this,e),this._storedActions=i.Storage.getGroup(this.groupId),this._storedActions)for(var t in this._storedActions)this.setPotencialActions(t),this.params=this._storedActions[t],this.fireAction(t)&&(delete this._storedActions[t],e.removable&&i.Storage.remove(t,this.groupId));this._storedAction=i.Storage.get(e.name,!1,this.groupId)},deleteAction:function(e){return s.superclass.deleteAction.call(this,e),i.Storage.remove(e,this.groupId)},bind:function(){s.superclass.bind.call(this)},unbind:function(){s.superclass.unbind.call(this)}}),e.exports=s.getInstance()},function(e,t,n){var i=n(0),o=n(2),s=n(179),r=n(180),a=function(e,t){a.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(a,i.Component,{name:"UpdaterComponentAbstract",controllerClassName:s,modelClassName:r,updaterModelAttributes:{},init:function(e,t){this._setController(),a.superclass.init.call(this,e,t)},_setModel:function(){return this._model instanceof this.modelClassName||(this._model=new this.modelClassName(this.updaterModelAttributes)),this._model},_setController:function(){var e=this.controllerClassName;return this._controller instanceof e||(this._controller=new e({items:Ext.apply({},{model:{component:this._setModel(),listeners:{"get-new-content-success":"onGetNewContentSuccess"}}},this.updaterControllerItems)}),i.on([{element:this._controller,event:o.UpdaterControllerAbstract.EVENT_GET_NEW_CONTENT_SUCCESS,handler:this.onGetNewContentSuccess}],this)),this._controller},onGetNewContentSuccess:function(e){i.fireEvent(o[this.name].GLOBALEVENT_POLL_DONE,e.json.data)}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.init=void 0;var o=n(4),s=i(o),r=n(78),a=i(r),l=n(177),c=n(265),h=i(c),u=n(269),d=n(288),E=i(d),p=n(769),_=i(p),m=(0,h.default)(),C=function(){return s.default.createElement(l.Router,{history:m},s.default.createElement("div",null,s.default.createElement(l.Route,{exact:!0,path:"/:lang/member/auth/setting/:activeTab?",render:(0,u.loadPage)(_.default)}),s.default.createElement(E.default,null)))};C.navigate=function(e,t){m.push(e)},C.openModal=function(e){window.location.hash!==d.HASH_PREFIX+e&&(window.location.hash=d.HASH_PREFIX+e)},t.default=C;t.init=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&a.default.render(s.default.createElement(C,null),document.getElementById("app"))}},function(e,t,n){var i=n(0),o=n(2),s=function(e,t){s.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(s,i.Controller,{name:"ModalController",init:function(e,t){s.superclass.init.call(this,e,t),this.addEvents(o.ModalController.MODAL_BACKGROUND_CLICK,o.ModalController.MODAL_ESC_KEY_PRESSED,o.ModalController.MODAL_DISPLAYED,o.ModalController.MODAL_BEFORE_DISPLAYED,o.ModalController.MODAL_CLOSE_BTN_CLICK,o.ModalController.MODAL_SHOW_LOADER)},onModalCloseBtnClick:function(){this.fireEvent(o.ModalController.MODAL_CLOSE_BTN_CLICK)},onModalBackgroundClick:function(){this.fireEvent(o.ModalController.MODAL_BACKGROUND_CLICK)},onModalEscKeyPressed:function(){this.fireEvent(o.ModalController.MODAL_ESC_KEY_PRESSED)},onModalDisplayed:function(){this.fireEvent(o.ModalController.MODAL_DISPLAYED,this)},onModalBeforeDisplayed:function(){this.fireEvent(o.ModalController.MODAL_BEFORE_DISPLAYED,this)},onModalShowLoader:function(){this.fireEvent(o.ModalController.MODAL_SHOW_LOADER,this)},getModelAttributes:function(){return this.ModalModel.attributes}})},function(e,t,n){var i=n(0),o=n(2),s=(n(173),n(11)),r=n(3),a=n(14),l=n(232),c=n(234),h=n(538),u=(n(235),n(23),n(274)),d=n(275),E=function(e,t){E.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(E,i.Component,{name:o.ChatPageComponentAbstract.NAME,controllerClassName:l,viewClassName:c,modelClassName:h,privateEndContainerId:"freechat_container",applet:null,init:function(e,t){E.superclass.init.call(this,e,t),this._addGlobalEvents(),this._setChatController(),i.fireEvent(o.ModelContentComponent.OPEN_FREECHAT_STANDALONE,{modelName:i.Config.get("performerNick")})},_addGlobalEvents:function(){i.addEvents(o.ChatPageComponentAbstract.GLOBALEVENT_PRIVATE_START,o.ChatPageComponentAbstract.GLOBALEVENT_PRIVATE_END,o.ChatPageComponentAbstract.GLOBALEVENT_PRIVATE_TEASER_LEFT,o.ChatPageComponentAbstract.GLOBALEVENT_APPLET_GET_CREDITS_CLICK,o.ChatPageComponentAbstract.GLOBALEVENT_APPLET_RESIZE,o.ChatPageComponentAbstract.GLOBALEVENT_MODEL_CHANGE,o.ChatPageComponentAbstract.GLOBALEVENT_APPLET_LOAD_READY,o.ChatPageComponentAbstract.GLOBALEVENT_APPLET_RECOMMENDER_CLICK,o.ChatPageComponentAbstract.GLOBALEVENT_SET_MODEL_FROM_HISTORY,o.ChatPageComponentAbstract.GLOBALEVENT_OPEN_CHAT,o.ChatPageComponentAbstract.GLOBALEVENT_ESC_KEYPRESS,o.ChatPageComponentAbstract.GLOBALEVENT_CLOSE_CHAT,o.ChatPageComponentAbstract.GLOBALEVENT_WINDOW_RESIZE,o.ChatPageComponentAbstract.GLOBALEVENT_HISTORY_CHANGE)},setApplet:function(){throw"You must override this method"},_setModelContentComponent:function(){return this.modelContentComponent instanceof u||(this.modelContentComponent=new u(this.element,{chatComponent:this})),this.modelContentComponent},_setChatController:function(){var e=this.controllerClassName;return this._chatController instanceof e||(this._chatController=new e({items:{IndexBroadcaster:{component:i.Broadcaster,listeners:i.object([[o.ContentManagerController.GLOBALEVENT_COMMENTS_LINK_CLICK,"onChannelWallContentClick"],[o.FlashExternal.GLOBALEVENT_LAYOUT_MODE_CHANGE,"onAppletLayoutModeChange"],[o.FlashExternal.GLOBALEVENT_PRIVATE_START,"onPrivateStartClick"],[o.FlashExternal.GLOBALEVENT_PRIVATE_END,"onPrivateEnd"],[o.FlashExternal.GLOBALEVENT_PEEK_END,"onPrivateEnd"],[o.DropDownControllerAbstract.GLOBALEVENT_DROPDOWN_MENU_BACKGROUND_SHOW,"onDropDownMenuOpen"],[o.DropDownControllerAbstract.GLOBALEVENT_DROPDOWN_MENU_BACKGROUND_HIDE,"onDropDownMenuHide"],[o.FlashExternal.GLOBALEVENT_EXIT_FULLSCREEN,"onExitFullScreen"],[o.FlashExternal.GLOBALEVENT_UPDATE_SCROLL_POSITION,"onUpdateScrollPosition"],[o.ModalComponent.GLOBALEVENT_MODAL_CLOSED,"onAfterOverlayClose"],[o.AppletResize.GLOBALEVENT_APPLET_SHOW,"onAppletShow"],[o.AppletResize.GLOBALEVENT_APPLET_HIDE,"onAppletHide"],[o.FlashExternal.GLOBALEVENT_GET_PERFORMER_DETAILS,"onGetPerformerDetails"],[o.FlashExternal.GLOBALEVENT_VIP_SHOW_STARTED,"onVipShowStarted"]])},model:{component:this._setChatModel(),listeners:i.object([[o.ChatPageModel.EVENT_MAX_APPLET_SIZE_CHANGE,"onMaxAppletSizeChange"],[o.ChatPageModel.EVENT_LAYOUT_MODE_CHANGE,"onLayoutModeChange"]])},view:{component:this._setChatView(),listeners:i.object([[o.FlashChatPageViewAbstract.EVENT_WINDOW_RESIZE,"onWindowResize"],[o.FlashChatPageViewAbstract.EVENT_APPLET_MINIMIZE,"onAppletMinimize"]])}}}),i.on([{element:this._chatController,event:o.ChatPageControllerAbstract.EVENT_MODEL_CHANGE,handler:this.onModelChange},{element:this._chatController,event:o.FlashChatPageControllerAbstract.EVENT_APPLET_RESIZE,handler:this.onAppletResize},{element:this._chatController,event:o.FlashChatPageControllerAbstract.EVENT_WINDOW_RESIZE,handler:this.onWindowResize},{element:this._chatController,event:o.ChatPageController.HISTORY_CHANGE,handler:this.onHistoryChange}],this)),this._chatController},_setChatView:function(){throw"You must override this method"},_setChatModel:function(){var e=this.modelClassName,t=i.Config.get("performerNick");return this._chatModel instanceof e||(this._chatModel=new e({performerName:t}),this._chatModel.setCurrentModelName(t)),this._chatModel},getChatModel:function(){return this._setChatModel()},onWindowResize:function(){i.fireEvent(o.ChatPageComponentAbstract.GLOBALEVENT_WINDOW_RESIZE,{scope:this})},onPrivateStartClick:function(){i.fireEvent(o.ChatPageComponentAbstract.GLOBALEVENT_PRIVATE_START,{scope:this,currentModelName:this._chatModel.getCurrentModelName()})},onPeekEnd:function(){i.fireEvent(o.ChatPageComponentAbstract.GLOBALEVENT_PRIVATE_END,{scope:this,currentModelName:this._chatModel.getCurrentModelName()})},onPrivateEnd:function(e){throw"You must override this method."},setPrivateEnd:function(e){throw"You must override this method."},getPrivateEndContainer:function(e,t){var i=this.privateEndContainerId;return new Promise(function(o){n.e(14).then(function(){var s=n(811);o(new s(i,{isHTML5Version:t,modelData:e,items:{}}))}.bind(null,n)).catch(n.oe)})},onPrivateEndContentReady:function(){throw"You must override this method"},onPrivateEndClose:function(){if(r.isChatPage()){var e={category:i.getMeta("category")};window.location.href=i.getUrl(i.Config.get("listPageRoutes").listPage,e,{},"")}else this._destroyPrivateEndContainer(),this.closeApplet()},onPrivateEndRecommenderClick:function(){this._destroyPrivateEndContainer(),this._chatView.showHTML5Applet()},_destroyPrivateEndContainer:function(){this._chatModel.setIsPrivateEndDisplayed(!1),this._privateEndContainer&&(this._privateEndContainer.destroy(),delete this._privateEndContainer)},onPrivateTeaserLeft:function(e){i.fireEvent(o.ChatPageComponentAbstract.GLOBALEVENT_PRIVATE_TEASER_LEFT,{scope:this,privateTeaserLeft:e})},onFirstBillComplete:function(){this.modelContentComponent&&this.modelContentComponent.activateCommentWriting()},onGetCreditsClick:function(){var e=function(e){return e.name===o.ChatModalComponent.NAME};void 0==a.getUserType()?s.navigate("signup",{trigger:!0,preventNavigateBack:!1}):s.navigate("payment",{trigger:!0,preventNavigateBack:r.isChatPage(),replace:!1,keepActiveModal:e,lockActiveModal:e})},onModelChange:function(e){this._destroyPrivateEndContainer(),i.fireEvent(o.ChatPageComponentAbstract.GLOBALEVENT_MODEL_CHANGE,{scope:this,modelData:e.modelData}),i.fireEvent(o.ChatPageComponentAbstract.GLOBALEVENT_APPLET_LOAD_READY,{scope:this,modelData:e.modelData}),i.fireEvent(o.ChatPageComponentAbstract.GLOBALEVENT_APPLET_RECOMMENDER_CLICK,{scope:this,modelName:e.modelData.performerId,firstModelName:e.flashVars.performerid,modelData:e.modelData})},onAppletResize:function(){i.fireEvent(o.ChatPageComponentAbstract.GLOBALEVENT_APPLET_RESIZE,this)},onHistoryChange:function(e){i.fireEvent(o.ChatPageComponentAbstract.GLOBALEVENT_HISTORY_CHANGE,e)},onCloseApplet:function(){this.closeApplet()},onCloseChatModal:function(e){e.scope.name===o.ChatModalComponent.NAME&&this.closeChatModal()},openChatModal:function(e){this._chatController.openChatModal(e)},lockChatModal:function(){this._chatController.lockChatModal()},closeChatModal:function(){i.Config.set("isChatOpenInOverlay",!1),this._destroyPrivateEndContainer(),this._chatController.closeChatModal()},closeApplet:function(){this._chatController.closeApplet()},getIsOnPrivate:function(){return this._chatModel.getIsOnPrivate()},getIsMinimized:function(){return this._chatModel.getIsMinimized()},onMuteChatApplet:function(){this._chatController.muteChatApplet()},onUnMuteChatApplet:function(){this._chatController.unMuteChatApplet()},onAppletReady:function(){this._chatModel&&this._chatModel.setAppletReady(!0)},onStatusChange:function(){throw"onStatusChange method must be implemented"},onSubscriptionChange:function(){throw"onSubscriptionChange method must be implemented"},bind:function(){E.superclass.bind.call(this),i.on([{element:i.Broadcaster,event:o.FlashExternal.GLOBALEVENT_APPLET_READY,handler:this.onAppletReady},{element:i.Broadcaster,event:o.FlashExternal.GLOBALEVENT_PRIVATE_START,handler:this.onPrivateStartClick},{element:i.Broadcaster,event:o.FlashExternal.GLOBALEVENT_PRIVATE_END,handler:this.onPrivateEnd},{element:i.Broadcaster,event:o.FlashExternal.GLOBALEVENT_PEEK_END,handler:this.onPeekEnd},{element:i.Broadcaster,event:o.FlashExternal.GLOBALEVENT_PRIVATE_TEASER_LEFT,handler:this.onPrivateTeaserLeft},{element:i.Broadcaster,event:o.FlashExternal.GLOBALEVENT_APPLET_GET_CREDITS_CLICK,handler:this.onGetCreditsClick},{element:i.Broadcaster,event:o.FlashExternal.GLOBALEVENT_CLOSE_POPUP,handler:this.onCloseApplet},{element:i.Broadcaster,event:o.ModalComponent.GLOBALEVENT_MODAL_CLOSED,handler:this.onCloseChatModal},{element:i.Broadcaster,event:o.PhotoViewerComponent.GLOBALEVENT_VIDEO_PLAY_STARTED,handler:this.onMuteChatApplet},{element:i.Broadcaster,event:o.GalleryController.GLOBALEVENT_VIDEO_PLAYER_START,handler:this.onMuteChatApplet},{element:i.Broadcaster,event:o.GalleryController.GLOBALEVENT_VIDEO_PLAYER_STOP,handler:this.onUnMuteChatApplet},{element:i.Broadcaster,event:o.PhotoViewerComponent.GLOBALEVENT_VIDEO_PLAY_STOPPED,handler:this.onUnMuteChatApplet},{element:i.Broadcaster,event:o.FirstBillController.GLOBALEVENT_FIRSTBILL_COMPLETE,handler:this.onFirstBillComplete},{element:d.getInstance(),event:o.StatusUpdaterComponent.PERFORMER_STATUS_CHANGES_EVENT,handler:this.onStatusChange},{element:i.Broadcaster,event:o.SubscriptionComponent.GLOBALEVENT_SUBSCRIPTION_CHANGE,handler:this.onSubscriptionChange}],this)}})},function(e,t,n){var i=n(0),o=n(2),s=n(77),r=(n(11),n(14),n(91).default),a=function(e,t){a.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(a,i.Controller,{name:"ChatPageControllerAbstract",init:function(e,t){var n;a.superclass.init.call(this,e,t),this._isFirstPerfShown=this.model.isChatPage,n=this._getNormalizeAppletVars(),this._saveToHistory(n)},onPrivateStartClick:function(){this.model.setIsOnPrivate(!0)},onPrivateEnd:function(){this.model.setIsOnPrivate(!1)},registerHistory:function(){this.nextPerformerHistoryEntry="next-performer",i.History.registerActions(this.nextPerformerHistoryEntry,this.nextPerformerHistoryEntry,this.setNextModel,this),i.History.registerComponent(this,{state:this.nextPerformerHistoryEntry}),this.replaceState()},_saveToHistory:function(e){var t=e.p_id||e.pid,n=e.performer_id||e.performerid,i=e.status;r.instance.add({nick:n,id:t,status:i})},_getNormalizeAppletVars:function(){return i.Config.get("memberAppletFlashvars")?i.Config.get("memberAppletFlashvars"):i.Config.get("HTMLAppletVars")},replaceState:function(){throw"This method must be implemented."},setNextModel:function(e){if(!i.Config.get("isOnPrivate")){var t={performerId:e.name};this.model.getCurrentModelName()!==e.name&&(this.onGetPerformerDetails(t,!0),this.fireEvent(o.ChatPageController.HISTORY_CHANGE,e.name))}},getModelData:function(e){var t={};return"string"==typeof e?(t.performerId=e,t):e},onGetPerformerDetails:function(e){var t=this.getModelData(e),n=t.performerId;i.Config.set("performerChannelType",t.channelType),this._callPerformerDetailsService(n),this.model.setCurrentModelName(n),this._setPerformerNameConfig(n);var s=this._getNormalizeAppletVars();this.fireEvent(o.ChatPageControllerAbstract.EVENT_MODEL_CHANGE,{modelData:t,flashVars:s,isFirstPerfShown:this._isFirstPerfShown}),this._isFirstPerfShown=!0},_callPerformerDetailsService:function(e){s.get(e).then(i.bind(this.onPerformerDetailsReady,this)).catch(i.bind(function(){s.get(e).then(i.bind(this.onPerformerDetailsReady,this)).catch(function(e){console.error(e)})},this))},_setPerformerNameConfig:function(e){i.Config.set("performerNick",e)},onPerformerDetailsReady:function(e){var t=i.getPath(e,"json.data");this._performerData=e.responseText,this._refreshFlashVars(t),this._saveToHistory(t),this.setPerformerDetailsOnApplet()},_refreshFlashVars:function(e){i.Config.set("memberAppletFlashvars",e)},setPerformerDetailsOnApplet:function(){throw"You must implement setPerformerDetailsOnApplet method"},redirectToHTML5Page:function(){Ext.isIE||window.top.document.location.replace(i.getUrl("ChatHtml5/Performer",{performerId:i.Config.get("performerNick")},{}))}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ToolTip=t.Button=void 0;var o=n(687),s=i(o),r=n(689),a=i(r);t.Button=s.default,t.ToolTip=a.default},function(e,t,n){var i=n(0),o=n(729),s=function(e){s.superclass.constructor.call(this,e)};e.exports=Ext.extend(s,i.View,{name:"BreadCrumbView",breadcrumbBlockClass:"submenu_left",init:function(){s.superclass.init.call(this),this._breadCrumbEl=this.select("."+this.breadcrumbBlockClass).item(0),this._breadCrumbsTpl=new o},update:function(e){this._breadCrumbEl.html(this._breadCrumbsTpl.render(e))}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.HASH_PREFIX=void 0;var o=n(4),s=i(o),r=n(177),a=n(78),l=(i(a),n(269)),c=n(768),h=i(c),u=t.HASH_PREFIX="#!",d=function(e){var t=e.location;return s.default.createElement(r.Switch,{location:t},s.default.createElement(r.Route,{path:"settings/:activeTab?",render:(0,l.loadInOverlay)(h.default)}))},E=function(){return s.default.createElement(r.Route,{render:function(e){var t=e.location;if(t.hash&&0===t.hash.indexOf(u)){var n=Object.assign({},t,{hash:"",pathname:t.hash.replace(u,""),state:{origin:t.pathname,modal:!0}});return s.default.createElement(d,{location:n})}return null}})};t.default=E},function(e,t,n){var i=n(0),o=n(2),s=n(284),r=n(234),a=n(232),l=n(3),c=function(e,t){c.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(c,s,{name:o.FlashChatPageComponent.NAME,flashObjectId:"chatapplet",freeChatId:"freechat",controllerClassName:a,viewClassName:r,init:function(e,t){c.superclass.init.call(this,e,t),i.Config.set("appletType",o.appletType.FLASH),i.fireEvent(o.ModelContentComponent.OPEN_FREECHAT_STANDALONE,{modelName:i.Config.get("performerNick")}),(Ext.isChrome||Ext.isSafari||Ext.isEdge)&&"visible"!==document.visibilityState?Ext.fly(document).on(o.BrowserEvents.VISIBILITY_CHANGE,this.setApplet,this,{single:!0}):this.setApplet()},_setChatView:function(){var e=this.viewClassName;return this._chatView instanceof e||(this._chatView=new e({id:"freechat",model:this._setChatModel()})),this._chatView},setApplet:function(){this.element.select("object#"+this.flashObjectId).item(0)||this.embeddingMemberApplet(),this.saveMemberApplet(),l.isChatPage()&&this._setModelContentComponent()},embeddingMemberApplet:function(){var e=this.collectMemberAppletData();Ext.isIE11?this.embeddingMemberAppletInIE(e):this.embeddingMemberAppletInModernBrowsers(e)},embeddingMemberAppletInIE:function(e){Ext.fly(this.flashObjectId)&&Ext.fly(this.flashObjectId).remove(),Ext.DomHelper.append(this.freeChatId,'<object id="'+this.flashObjectId+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" data="'+e.memberAppletUrl+'" type="application/x-shockwave-flash"><param name="movie" value="'+e.memberAppletUrl+'" /><param name="quality" value="high" /><param name="allowScriptAccess" value="always" /><param name="allowNetworking" value="all" /><param name="wmode" value="direct" /><param name="allowFullScreen" value="true" /><param name="allowFullScreenInteractive" value="true" /><param name="FlashVars" value="'+e.memberAppletFlashvarsQS+'" /></object>')},embeddingMemberAppletInModernBrowsers:function(e){swfobject.embedSWF(e.memberAppletUrl,this.flashObjectId,"1140","600","9.0.0","expressInstall.swf",e.memberAppletFlashvars,e.memberAppletParams,e.memberAppletAttributes)},collectMemberAppletData:function(){var e={};return e.memberAppletUrl=i.Config.get(Ext.isIE11?"memberAppletUrl":"memberAppletContainerUrl"),e.memberAppletParams=i.Config.get("memberAppletParams"),e.memberAppletFlashvars=i.Config.get("memberAppletFlashvars"),e.memberAppletFlashvarsQS=i.Config.get("memberAppletFlashvarsQS"),e.memberAppletAttributes=i.Config.get("memberAppletAttributes"),e},saveMemberApplet:function(){this.applet=i.getFlashMovieObject(this.flashObjectId)},sendEscPressToApplet:function(){this._chatModel.isPrivateEndDisplayed()||this._chatController.callFunctionOnApplet("onEscPressed")},setPrivateEnd:function(e){e=Ext.apply(this._chatController.getAppletFlashvars(),e),this.getPrivateEndContainer(e,!1).then(i.bind(function(e){this._privateEndContainer=e,i.on([{element:this._privateEndContainer,event:o.PrivateEndContainer.EVENT_CLOSE,handler:this.onPrivateEndClose},{element:this._privateEndContainer,event:o.PrivateEndContainer.EVENT_BACK_TO_PRIVATE,handler:this.onBackToPrivate},{element:this._privateEndContainer,event:o.PrivateEndContainer.EVENT_PRIVATE_END_CONTENT_READY,handler:this.onPrivateEndContentReady},{element:this._privateEndContainer,event:o.PrivateEndContainer.GLOBALEVENT_PRIVATE_END_RECOMMENDER_CLICK,handler:this.onPrivateEndRecommenderClick}],this)},this)),this._chatController.getAppletContainer().blur()},onPrivateEndContentReady:function(){this._chatView.minimizeApplet(),this._chatController.getAppletContainer().setLayoutToNormal(),this._chatController.setLayoutMode(o.FlashChatPageControllerAbstract.LAYOUT_MODE_NORMAL)},onPrivateEnd:function(e){3===i.Config.get("memberAppletVersion")&&(i.fireEvent(o.ChatPageComponentAbstract.GLOBALEVENT_PRIVATE_END,{scope:this,currentModelName:this._chatModel.getCurrentModelName()}),this._chatModel.isPrivateEndDisplayed()||(this._chatModel.setIsPrivateEndDisplayed(!0),new Promise(function(e){e()}).then(i.bind(function(){this.setPrivateEnd(e)},this).bind(null,n)).catch(n.oe)))},onBackToPrivate:function(){this._destroyPrivateEndContainer(),this._chatController.resizeFlashApplet();try{this._chatController.backToPrivate()}catch(e){console.error("Go back to private failed. Reason: ",e)}},onSubscriptionChange:function(){this._chatController.callFunctionOnApplet("subscriptionChanged")},onStatusChange:function(e){this.applet&&i.isFunction(this.applet.updateRecommender)&&this.applet.updateRecommender({success:!0,data:e})}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(4),c=i(l),h=n(48),u=i(h),d=n(90),E=i(d),p=n(178),_=i(p),m=n(291),C=i(m),f=n(691),g=i(f),T=n(49),S=i(T),v=function(e){function t(e){o(this,t);var n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={status:e.show.status},n}return r(t,e),a(t,[{key:"componentDidMount",value:function(){S.default.subscribe(this.onShowStarted.bind(this))}},{key:"componentWillUnmount",value:function(){this._inProgressShowTimer&&(clearTimeout(this._inProgressShowTimer),delete this._inProgressShowTimer),S.default.unsubscribe(this.onShowStarted.bind(this))}},{key:"onShowStarted",value:function(e){var t=this;e.type===T.ACTION.SHOW_STARTED&&this.props.show.id.toString()===e.showId&&this.setState({status:T.SHOW_STATUS.STARTED},function(){t.startShowInProgressTimer()})}},{key:"timeEndCallback",value:function(){var e=this;this.setState({status:T.SHOW_STATUS.PENDING},function(){S.default.setShowStatusIsPending(e.props.show.id)})}},{key:"startShowInProgressTimer",value:function(){var e=this;this._inProgressShowTimer=setTimeout(function(){S.default.remove(e.props.show.id)},E.default.duration(this.props.show.duration,"milliseconds"))}},{key:"render",value:function(){var e="BookShow_"+this.props.show.id,t=this.props.show.status===T.SHOW_STATUS.CANCELED,n=E.default.duration(this.props.show.duration,"minutes"),i=(0,E.default)(this.props.show.scheduledStartAt,"YYYY-MM-DD HH:mm:ss"),o={startingDate:i.format("MM.DD.YY"),startingTime:"en"===this.props.language?i.format("h:mm a"):i.format("HH:mm"),duration:n.minutes()},s="full"===this.props.appletSize?"contentWide":"content",r=this.state.status===T.SHOW_STATUS.STARTED&&"en"!==this.props.language||"ru"===this.props.language,a=t?"":c.default.createElement("div",{styleName:"showPrice"},(0,_.default)("{amount} credits",{amount:this.props.show.price}));return c.default.createElement("div",{styleName:s},c.default.createElement("div",{styleName:"details"},c.default.createElement("span",{styleName:"detailsType"},this.props.show.status===T.SHOW_STATUS.STARTED?(0,_.default)("Ongoing Show"):(0,_.default)("Scheduled Show")),c.default.createElement("div",{styleName:"detailsTitle"},this.props.show.title),c.default.createElement("div",{styleName:"detailsWrapper"},c.default.createElement("div",{styleName:"detailsItem"},c.default.createElement("div",{styleName:"detailsLabel"},(0,_.default)("Date")),c.default.createElement("div",{styleName:"detailsValue"},o.startingDate)),c.default.createElement("div",{styleName:"detailsItem"},c.default.createElement("div",{styleName:"detailsLabel"},(0,_.default)("Time")),c.default.createElement("div",{styleName:"detailsValue"},o.startingTime)),c.default.createElement("div",{styleName:"detailsItem"},c.default.createElement("div",{styleName:"detailsLabel"},(0,_.default)("Duration")),c.default.createElement("div",{styleName:"detailsValue"},o.duration," min")))),c.default.createElement("div",{styleName:"separator"}),c.default.createElement("div",{styleName:"bookActions"},c.default.createElement(C.default,{key:e,group:this.props.group,show:this.props.show,smallText:r,openPaymentModal:this.props.openPaymentModal,tooltipContainer:this.props.tooltipContainer,isOverlay:this.props.isOverlay}),a))}}]),t}(l.Component);t.default=(0,u.default)(v,g.default,{allowMultiple:!0})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),c=n(4),h=i(c),u=n(49),d=i(u),E=n(16),p=i(E),_=n(14),m=i(_),C=n(11),f=i(C),g=n(178),T=i(g),S=n(36),v=i(S),A=n(286),N={NO_CREDITS:"low_member_balance",NOT_MEMBER:"not_member",BOOKING_CLOSED:"booking_closed"},I=function(e){function t(e){o(this,t);var n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={showGeneralErrorToolTip:!1,showAuthTooltip:!1,showNoCreditsTooltip:!1,showBookingClosedTooltip:!1},n.subscribeUserToShow=n.subscribeUserToShow.bind(n),n.showGeneralErrorToolTip=n.showGeneralErrorToolTip.bind(n),n.showAuthToolTip=n.showAuthToolTip.bind(n),n.showNoCreditsToolTip=n.showNoCreditsToolTip.bind(n),n.showBookingClosedToolTip=n.showBookingClosedToolTip.bind(n),n.hideTooltips=n.hideTooltips.bind(n),n.onOutsideOfToolTipClick=n.onOutsideOfToolTipClick.bind(n),n._openPaymentModal=n._openPaymentModal.bind(n),n}return r(t,e),l(t,[{key:"componentDidMount",value:function(){this.addEvents()}},{key:"componentWillUnmount",value:function(){this.removeEvents()}},{key:"_openPaymentModal",value:function(){this.hideTooltips(),this.props.openPaymentModal()}},{key:"isUserLoggedIn",value:function(e){m.default.isLoggedIn()?e():this.showAuthToolTip()}},{key:"subscribeUserToShow",value:function(){var e=this;this.isUserLoggedIn(function(){d.default.subscribeScheduleShow(e.props.show.id).then(function(t){var n={PrivateEnd:"private end",CalendarTicket:"calendar",WallTicket:"wall"};v.default.trackGenericEvent({eventCategory:v.default.CONST.PAGE.SCHEDULED_SHOW,eventAction:v.default.CONST.ACTION.SCHEDULED_SHOW_BOOKED,eventLabel:n[e.props.group]}),d.default.buyTicketSuccess(t)}).catch(function(t){d.default.buyTicketFailed(id),e.handleBookError(t)})})}},{key:"handleBookError",value:function(e){switch(e.data.reason){case N.NOT_MEMBER:case N.NO_CREDITS:this.showNoCreditsToolTip();break;case N.BOOKING_CLOSED:this.showBookingClosedToolTip();break;default:this.showGeneralErrorToolTip()}}},{key:"showGeneralErrorToolTip",value:function(){this.setState({showGeneralErrorToolTip:!0})}},{key:"showAuthToolTip",value:function(){this.setState({showAuthTooltip:!0})}},{key:"showNoCreditsToolTip",value:function(){this.setState({showNoCreditsTooltip:!0})}},{key:"showBookingClosedToolTip",value:function(){this.setState({showBookingClosedTooltip:!0})}},{key:"hideTooltips",value:function(){this.setState({showGeneralErrorToolTip:!1,showAuthTooltip:!1,showNoCreditsTooltip:!1,showBookingClosedTooltip:!1})}},{key:"onOutsideOfToolTipClick",value:function(e){(this.state.showBookingClosedTooltip||this.state.showNoCreditsTooltip||this.state.showAuthTooltip)&&document.querySelector(".ToolTipPortal")&&!document.querySelector(".ToolTipPortal").contains(e.target)&&this.hideTooltips()}},{key:"addEvents",value:function(){window.addEventListener("mousedown",this.onOutsideOfToolTipClick)}},{key:"removeEvents",value:function(){window.removeEventListener("mousedown",this.onOutsideOfToolTipClick)}},{key:"getButtonTypeAndValue",value:function(){var e={text:"",type:""};return this.props.show.status===u.SHOW_STATUS.CANCELED?(e.text=(0,T.default)("Canceled"),e.type="danger"):this.props.show.isUserSubscribed?(e.text=(0,T.default)("Booked"),e.type="green"):this.props.show.status===u.SHOW_STATUS.STARTED||this.props.show.status===u.SHOW_STATUS.PENDING?(e.text=(0,T.default)("Join My Show"),e.type="primary"):(e.text=(0,T.default)("Get Ticket"),e.type="primary"),e}},{key:"_openLoginModal",value:function(e){e.preventDefault(),this.hideTooltips(),f.default.navigate("login",{trigger:!0,preventNavigateBack:!1})}},{key:"_openSignupModal",value:function(){this.hideTooltips(),f.default.navigate("signup",{trigger:!0,preventNavigateBack:!1})}},{key:"render",value:function(){var e=this.props.group+"_bookShowBtn_"+this.props.show.id,t=this.getButtonTypeAndValue(),n={key:"_bookShowBtn",type:this.props.type||t.type,value:t.text,smallText:this.props.smallText||!1,loading:this.props.show.isRequestInProgress||!1,disabled:this.props.disabled||this.props.show.isUserSubscribed||this.props.show.status===u.SHOW_STATUS.CANCELED};return h.default.createElement("div",null,h.default.createElement(A.Button,a({},n,{id:e,onClick:this.subscribeUserToShow})),this.state.showAuthTooltip&&h.default.createElement(A.ToolTip,{active:!0,position:"bottom",arrow:"center",parent:"#"+e,container:this.props.tooltipContainer,isOverlay:this.props.isOverlay,width:200},h.default.createElement("div",null,(0,T.default)("Become a Premium Member so you can get this ticket.")),h.default.createElement(A.Button,{onClick:this._openSignupModal.bind(this),value:(0,T.default)("Sign up")}),h.default.createElement("div",null,h.default.createElement("a",{href:"#",onClick:this._openLoginModal.bind(this)},(0,T.default)("or log in")))),this.state.showNoCreditsTooltip&&h.default.createElement(A.ToolTip,{active:!0,position:"bottom",arrow:"center",parent:"#"+e,container:this.props.tooltipContainer,isOverlay:this.props.isOverlay,width:200},h.default.createElement("div",null,(0,T.default)("You don't have enough credits to get a ticket for the Scheduled Show")),h.default.createElement(A.Button,{onClick:this._openPaymentModal,value:(0,T.default)("Buy Credits")})),this.state.showBookingClosedTooltip&&h.default.createElement(A.ToolTip,{active:!0,position:"bottom",arrow:"center",parent:"#"+e,container:this.props.tooltipContainer,isOverlay:this.props.isOverlay,width:200},h.default.createElement("div",null,(0,T.default)("The current show was canceled by the performer. Sorry for the inconvenience."))),this.state.showGeneralErrorToolTip&&h.default.createElement(A.ToolTip,{active:!0,position:"bottom",arrow:"center",parent:"#"+e,container:this.props.tooltipContainer,isOverlay:this.props.isOverlay,width:200},(0,T.default)("System error please try again later!")))}}]),t}(h.default.Component);I.propTypes={openPaymentModal:p.default.func.isRequired,show:p.default.object.isRequired},t.default=I},function(e,t,n){n(293),e.exports=n(476)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var i=n(477),o=n(480),s=n(181);n(788)(),Ext.isIE&&(window.Promise=i),window.JSM||(window.JSM={}),window.JSM.window={},window.JSM.FlashExternal=s,domReady(function(){o.run()})},,,,function(e,t,n){var i=n(0),o=n(500),s=n(731),r=(n(785),n(151),n(786)),a=n(282),l=function(){function e(){var e={},t=null,l=!1,c=function(){if(!i.isObject(r))throw"Invalid router configuration";return t=new i.Router(r,i.I18n)};return{run:function(){if(a.init(i.Storage.get("new-settings-enabled")),!l){l=!0,i.each(window._JSMConfig,function(t,n){e[n]=t}),delete window._JSMConfig;var t=e.language;i.Config.set(e.applicationConfig),i.Config.set("language",t),i.Application.setLayouts(s),i.Application.setPages(o),i.Application.setRouter(c()),n(787)("./"+t+".json").then(function(t){i.I18n.setTranslationTable(e.language,t),i.I18n.setLanguage(e.language)}).catch(function(e){console.error(e)}),i.Application.run()}},getRouter:function(){return t},getLayout:function(){return i.Application.getLayout()},getConfig:function(){return e}}}var t=null;return{getInstance:function(){return t||(t=e()),t}}}();window.Application=l.getInstance(),e.exports=l.getInstance(),"object"!=typeof console&&(console={info:function(){},log:function(){},error:function(){},dir:function(){},warn:function(){},group:function(){},groupEnd:function(){}})},,,,,,,,,,,,,,,,,,,,function(e,t,n){var i=n(2),o=n(0);e.exports={setIndexPage:function(e){o.Config.set("PageType",e)},getPage:function(e,t){var o=null;switch(this.setIndexPage(e),e){case i.PageId.INDEX_INDEX:n.e(2).then(function(){o=n(808),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.AUTH_LOGIN:n.e(36).then(function(){o=n(836),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.AUTH_SIGNUP:n.e(30).then(function(){o=n(837),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.AUTH_SIGNUP_SUCCESS:n.e(61).then(function(){o=n(838),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.AUTH_FORGOT_PASSWORD:n.e(64).then(function(){o=n(839),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.AUTH_CHECK_NEW_PASSWORD:n.e(65).then(function(){o=n(840),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.CHAT_PERFORMER:n.e(63).then(function(){o=n(841),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.AWARDS_INDEX:n.e(8).then(function(){o=n(842),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.FAVORITE_INDEX:n.e(7).then(function(){o=n(843),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.HISTORY_LISTPAGE_INDEX:n.e(6).then(function(){o=n(844),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.SNAPSHOT_LISTPAGE_INDEX:n.e(4).then(function(){o=n(845),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.MESSAGESCENTER_INDEX:n.e(0).then(function(){o=n(846),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.MESSAGESCENTER_DIRECT_MESSAGE:n.e(1).then(function(){o=n(847),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.MEDIASTATICPAGE_INDEX:n.e(34).then(function(){o=n(848),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.STATICPAGE_CONTACT_US:n.e(28).then(function(){o=n(849),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.STATICPAGE_FAQ:n.e(55).then(function(){o=n(850),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.STATICPAGE_DMCA:n.e(40).then(function(){o=n(851),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.SETTING_INDEX:n.e(22).then(function(){o=n(852),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.STATICPAGE_TERMS_AND_CONDITIONS:n.e(59).then(function(){o=n(853),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.STATICPAGE_FLASH_HELP:n.e(33).then(function(){o=n(854),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.STATICPAGE_POLICY:n.e(46).then(function(){o=n(855),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.STATICPAGE_JOB_OFFER:n.e(60).then(function(){o=n(856),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.JASMIN_LIVECAMS_LISTPAGE_LIVECAMS:n.e(5).then(function(){o=n(857),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.JASMIN_LANDING:n.e(13).then(function(){o=n(858),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.CHANNEL_LISTPAGE_INDEX:n.e(10).then(function(){o=n(859),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.MY_CHANNELS_LISTPAGE_INDEX:n.e(12).then(function(){o=n(860),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.ERROR_PAGE_404:n.e(50).then(function(){o=n(861),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.ERROR_PAGE_500:n.e(49).then(function(){o=n(862),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.FIRSTBILL_STANDALONE_INDEX:n.e(62).then(function(){o=n(863),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.SETTING_VALIDATE_PASSWORD:n.e(20).then(function(){o=n(864),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.SETTING_VALIDATE_EMAIL:n.e(21).then(function(){o=n(865),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.HTML5_CHAT_PERFORMER:n.e(38).then(function(){o=n(866),t(o)}.bind(null,n)).catch(n.oe);break;case i.PageId.SCHEDULED_SHOWS:n.e(11).then(function(){o=n(867),t(o)}.bind(null,n)).catch(n.oe);break;default:t(null)}}}},function(e,t,n){var i=n(0),o=n(150),s=function(e){e||(e={}),e.routes&&(this.routes=e.routes),this._bindRoutes(),this.init.apply(this,arguments)},r=/\((.*?)\)/g,a=/(\(\?)?:\w+/g,l=/\*\w+/g,c=/[\-{}\[\]+?.,\\\^$|#\s]/g;e.exports=Ext.extend(s,i.Component,{init:function(){},route:function(e,t,n){i.isRegExp(e)||(e=this._routeToRegExp(e)),i.isFunction(t)&&(n=t,t=""),n||(n=this[t]);var s=this;return o.route(e,function(i,o){var r=s._extractParameters(e,i);r.push(o),!1!==s.execute(n,r,t)&&Ext.apply(s,["route:"+t].concat(r)),s.afterRouteCallbackExecute(t)}),this},execute:function(e,t,n){e&&e.apply(this,t)},navigate:function(e,t){return o.navigate(e,t),this},_bindRoutes:function(){if(this.routes){this.routes=i.result(this,"routes");for(var e,t=i.keys(this.routes);null!=(e=t.pop());)this.route(e,this.routes[e])}},_routeToRegExp:function(e){return e=e.replace(c,"\\$&").replace(r,"(?:$1)?").replace(a,function(e,t){return t?e:"([^/?]+)"}).replace(l,"([^?]*?)"),new RegExp("^"+e+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(e,t){var n=e.exec(t).slice(1);return i.map(n,function(e,t){return t===n.length-1?e||null:e?decodeURIComponent(e):null})}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=t.API={onSetFixSize:function(){},onSetFluidSize:function(){},onSubscribe:function(e){},onCloseChat:function(e){},onNotifyAppletReady:function(e){},onNotifyStreamReady:function(){},onNotifyShowWallorBioPage:function(){},onNotifyChannelSubscriptionStatusChanged:function(){},onSwitchToPerformer:function(e){},onNotifyStartPrivate:function(){},onNotifyEndPrivate:function(e){},onNotifyEndPeek:function(){},onSetFavorite:function(e){},onNotifyPrivateTeasersLeft:function(e){},onNotifyAppletLoginSuccess:function(e){},onSendOfflineMessage:function(e){},onShowQuickBuy:function(e){},onShowOverlaySignup:function(){},onShowOverlayLogin:function(){},onUseFlash:function(){},onShowGallery:function(e){},onShowScheduledCalendar:function(){},onBookScheduledShow:function(e){},onScheduledShowIdChanged:function(e){},onInternalSwipeEnabledChange:function(e){},onError:function(e){},onAnalyticsEvent:function(e,t){},onOutOfContent:function(e){},onShowAutoplayTutorial:function(){}};t.AdapterAPI=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign(e,i,t)}},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});t.createSingleton=function(e){var t=null;return function(e){function n(){i(this,n);for(var e=arguments.length,s=Array(e),r=0;r<e;r++)s[r]=arguments[r];var a=o(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,s));if(t){var l;return l=t,o(a,l)}return t=a,a}return s(n,e),n}(e)}},,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},,,,,,,function(e,t,n){var i=n(0),o=n(88),s=function(e){s.superclass.constructor.call(this,e)};e.exports=Ext.extend(s,o,{name:"EnableChromeFlashPluginModalTemplate",tpl:'<div><div id="enable_flash_plugin_message" class="chrome_type"><a href="#" class="close_button"><span>&nbsp;</span></a><div class="enable_flash_plugin"><p class="title">{mainTitle}</p><span class="message">{message}</span><p class="link_wrap">{needHelp} <a href="{moreinfoLink}" target="_blank">{moreinfo}</a></p></div></div></div>',_setTemplateParams:function(){return{mainTitle:i.translate("Please enable Flash!"),message:i.translate("For a full user experience please enable Flash"),needHelp:i.translate("Need more help?"),moreinfo:i.translate("Click here"),moreinfoLink:"https://support.google.com/chrome/answer/142064"}},render:function(){return this._tpl=new Ext.Template(this.tpl),this._tpl.applyTemplate(this._setTemplateParams())}})},function(e,t,n){var i=n(0),o=n(2),s=n(539),r=function(e,t){r.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(r,s,{name:"FlashChatPageModel",minimumMemberAppletWidth:320,minimumMemberAppletHeight:240,appletRecommenderMinWidth:270,appletButtonRowFixHeight:50,appletLayoutMinWidth:{normal:1144,full:1448},appletLayoutMaxWidth:{normal:1448,full:2560},appletLayoutMaxHeight:{normal:690,full:1440},_isDropDownOpened:!1,_appletMaxWidth:0,_appletMaxHeight:0,_layoutMode:"normal",_isMinimized:!1,_appletWidth:0,_appletHeight:0,init:function(e,t){this.addEvents(o.ChatPageModel.EVENT_MAX_APPLET_SIZE_CHANGE,o.ChatPageModel.EVENT_APPLET_SIZE_CHANGE,o.ChatPageModel.EVENT_LAYOUT_MODE_CHANGE),r.superclass.init.call(this,e,t)},setIsDropDownOpened:function(e){this._isDropDownOpened=e},getIsDropDownOpened:function(){return this._isDropDownOpened},setAppletMaxWidth:function(e){this._appletMaxWidth=e},getAppletMaxWidth:function(){return this._appletMaxWidth},setAppletMaxHeight:function(e){this._appletMaxHeight=e},setAppletHeight:function(e){this._appletHeight=e},setAppletWidth:function(e){this._appletWidth=e},setAppletMaxSize:function(e,t){e===this._appletMaxWidth&&t===this._appletMaxHeight||(this._appletMaxWidth=e,this._appletMaxHeight=t,this.fireEvent(o.ChatPageModel.EVENT_MAX_APPLET_SIZE_CHANGE,{scope:this}))},getAppletMaxHeight:function(){return this._appletMaxHeight},setAppletSize:function(e,t){e===this._appletWidth&&t===this._appletHeight||(this._appletWidth=e,this._appletHeight=t,this.fireEvent(o.ChatPageModel.EVENT_APPLET_SIZE_CHANGE,{scope:this}))},getAppletSize:function(){return{width:this._appletWidth,height:this._appletHeight}},isCurrentLayoutMode:function(e){return this._layoutMode===e},getLayoutMode:function(){return this._layoutMode},setLayoutMode:function(e){i.isDefined(e)&&e!==this._layoutMode&&(this._layoutMode=e,this.fireEvent(o.ChatPageModel.EVENT_LAYOUT_MODE_CHANGE,{scope:this}))},setIsMinimized:function(e){this._isMinimized=e},getIsMinimized:function(){return this._isMinimized}})},function(e,t,n){var i=n(0),o=n(2),s=function(e,t){s.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(s,i.Model,{name:o.ChatPageModel.NAME,isChatPage:!0,_isOnPrivate:!1,_isChatLocked:!1,_currentModelName:null,_isPrivateEndDisplayed:!1,setIsOnPrivate:function(e){i.Config.set("isOnPrivate",e),this._isOnPrivate=e},getIsOnPrivate:function(){return this._isOnPrivate},getIsLocked:function(){return this._isChatLocked},setCurrentModelName:function(e){this._currentModelName=e},getCurrentModelName:function(){return this._currentModelName},setIsLocked:function(e){this._isChatLocked=e},setIsPrivateEndDisplayed:function(e){this._isPrivateEndDisplayed=e},isPrivateEndDisplayed:function(){return this._isPrivateEndDisplayed},setAppletReady:function(e){i.Config.set(o.ChatPageModel.MEMBERAPPLET_READY_STATE,e)},isAppletReady:function(){return i.Config.get(o.ChatPageModel.MEMBERAPPLET_READY_STATE)}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(4),c=i(l),h=n(16),u=i(h),d=n(544),E=i(d),p=n(237),_=i(p),m=n(545),C=i(m),f=n(680),g=i(f),T=n(49),S=i(T),v=function(e){function t(e){o(this,t);var n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={selectedItem:0},n.onSlideChange=n.onSlideChange.bind(n),n}return r(t,e),a(t,[{key:"componentWillReceiveProps",value:function(){var e=S.default.getWallData();this.setState({selectedItem:e.showSelected})}},{key:"onSlideChange",value:function(e){S.default.setSelectedShow(e)}},{key:"render",value:function(){var e=this,t=Object.assign({},_.default,E.default),n=this.props.isOverlay?"#chatblock":null;return 0===this.props.shows.allIds.length?null:c.default.createElement(C.default,{infiniteLoop:!0,styles:t,onChange:this.onSlideChange,selectedItem:this.state.selectedItem,showIndicators:this.props.shows.allIds.length>1},this.props.shows.allIds.map(function(t){return c.default.createElement(g.default,{key:"wallticket_"+t,language:e.props.language,translate:e.props.translate,show:e.props.shows.byId[t],appletSize:e.props.appletSize,openPaymentModal:e.props.openPaymentModal,currentServerTime:e.props.currentServerTime,currentClientTime:e.props.currentClientTime,tooltipContainer:n,isOverlay:e.props.isOverlay})}))}}]),t}(l.Component);v.propTypes={language:u.default.string.isRequired,translate:u.default.func.isRequired,shows:u.default.object.isRequired,currentServerTime:u.default.string.isRequired,performerName:u.default.string.isRequired},t.default=v},,,,function(e,t){e.exports={"arrow-prev":"_3eMJ_FW8iZRG","arrow-next":"_2lJInrKG3uFj",container:"_35BQ2hBMi-II",hasContent:"_1p154ByzcxT8",wrapper:"_3y9JawimmF12",swiper:"_1MM1wdp24hSX",slider:"wBHitvai9nxe","arrow-prev-disabled":"_1J3DPmO_UGVd","arrow-next-disabled":"_2HFqMHFPdopb",dots:"_1k04LvXWg0lD"}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),h=n(237),u=i(h),d=n(4),E=i(d),p=n(0),_=i(p),m=n(78),C=i(m),f=n(16),g=i(f),T=n(48),S=i(T),v=n(678),A=i(v),N=function(e,t,n){if(!/(pt|px|em|rem|vw|vh|%|auto)$/.test(e[t]))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Validation failed. It needs to be a size unit like pt, px, em, rem, vw, %")},I=function(){},L=function(e){function t(e){o(this,t);var n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.updateSizesBound=n.updateSizes.bind(n),n.state={initialized:!1,selectedItem:e.selectedItem,hasMount:!1,isMouseEntered:!1},n}return r(t,e),c(t,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentWillReceiveProps",value:function(e){e.selectedItem!==this.state.selectedItem&&(this.updateSizes(),this.moveTo(e.selectedItem)),e.autoPlay!==this.props.autoPlay&&(e.autoPlay?this.setupAutoPlay():this.destroyAutoPlay())}},{key:"componentDidUpdate",value:function(e){e.children||!this.props.children||this.state.initialized||this.setupCarousel()}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){this.bindEvents(),this.props.autoPlay&&this.setupAutoPlay(),this.setState({initialized:!0});var e=this.getInitialImage();e?e.addEventListener("load",this.setMountState.bind(this)):this.setMountState()}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay(),this.setState({initialized:!1}))}},{key:"setupAutoPlay",value:function(){this.autoPlay();var e=this.refs.carouselWrapper;this.props.stopOnHover&&e&&(e.addEventListener("mouseenter",this.stopOnHover.bind(this)),e.addEventListener("mouseleave",this.startOnLeave.bind(this)))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var e=this.refs.carouselWrapper;this.props.stopOnHover&&e&&(e.removeEventListener("mouseenter",this.stopOnHover.bind(this)),e.removeEventListener("mouseleave",this.startOnLeave.bind(this)))}},{key:"bindEvents",value:function(){window.addEventListener("resize",this.updateSizesBound),window.addEventListener("DOMContentLoaded",this.updateSizesBound)}},{key:"unbindEvents",value:function(){window.removeEventListener("resize",this.updateSizesBound),window.removeEventListener("DOMContentLoaded",this.updateSizesBound);var e=this.getInitialImage();e&&e.removeEventListener("load",this.setMountState.bind(this))}},{key:"autoPlay",value:function(){var e=this;this.props.autoPlay&&(clearTimeout(this.timer),this.timer=setTimeout(function(){e.increment()},this.props.interval))}},{key:"clearAutoPlay",value:function(){this.props.autoPlay&&clearTimeout(this.timer)}},{key:"resetAutoPlay",value:function(){this.clearAutoPlay(),this.autoPlay()}},{key:"stopOnHover",value:function(){this.setState({isMouseEntered:!0}),this.clearAutoPlay()}},{key:"startOnLeave",value:function(){this.setState({isMouseEntered:!1}),this.autoPlay()}},{key:"updateSizes",value:function(){if(this.state.initialized&&Object.keys(this.refs).length>0){var e=this.refs.item0,t=e.clientWidth;this.setState({itemSize:t,wrapperSize:t*this.props.children.length})}}},{key:"setMountState",value:function(){this.setState({hasMount:!0}),this.updateSizes()}},{key:"handleClickItem",value:function(e,t){if(this.state.cancelClick)return void this.setState({cancelClick:!1});this.props.onClickItem(e,t),e!==this.state.selectedItem&&this.setState({selectedItem:e})}},{key:"handleOnChange",value:function(e,t){this.props.onChange(e,t)}},{key:"onSwipeStart",value:function(){this.setState({swiping:!0}),this.clearAutoPlay()}},{key:"onSwipeEnd",value:function(){this.resetPosition(),this.setState({swiping:!1}),this.autoPlay()}},{key:"onSwipeMove",value:function(e){var t=100*-this.state.selectedItem,n=100*-(this.props.children.length-1),i=e.x,o=i;0===t&&i>0&&(o=0),t===n&&i<0&&(o=0);var s=t+100/(this.state.itemSize/o)+"%";this.setPosition(s);var r=Math.abs(i)>this.props.swipeScrollTolerance;return r&&!this.state.cancelClick&&this.setState({cancelClick:!0}),r}},{key:"resetPosition",value:function(){var e=100*-this.state.selectedItem+"%";this.setPosition(e)}},{key:"CSSTranslate",value:function(e){return"translate3d("+[e,0,0].join(",")+")"}},{key:"setPosition",value:function(e){var t=C.default.findDOMNode(this.refs.itemList);["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(n){t.style[n]=this.CSSTranslate(e)})}},{key:"decrement",value:function(e){this.moveTo(this.state.selectedItem-("Number"==typeof e?e:1))}},{key:"increment",value:function(e){this.moveTo(this.state.selectedItem+("Number"==typeof e?e:1))}},{key:"moveTo",value:function(e){var t=this.props.children.length-1;e<0&&(e=this.props.infiniteLoop?t:0),e>t&&(e=this.props.infiniteLoop?0:t),this.selectItem({selectedItem:e}),this.props.autoPlay&&!1===this.state.isMouseEntered&&this.resetAutoPlay()}},{key:"changeItem",value:function(e){var t=e.target.value;this.selectItem({selectedItem:t})}},{key:"selectItem",value:function(e){this.setState(e),this.handleOnChange(e.selectedItem,this.props.children[e.selectedItem])}},{key:"getInitialImage",value:function(){var e=this.props.selectedItem,t=this.refs["item"+e],n=t&&t.getElementsByTagName("img");return n&&n[e]}},{key:"getVariableImageHeight",value:function(e){var t=this.refs["item"+e],n=t&&t.getElementsByTagName("img");if(this.state.hasMount&&n.length>0){var i=function(){var e=n[0];e.complete||function(){var t=function t(){this.forceUpdate(),e.removeEventListener("load",t)};e.addEventListener("load",t)}();var t=e.clientHeight;return{v:t>0?t:null}}();if("object"===(void 0===i?"undefined":l(i)))return i.v}return null}},{key:"renderItems",value:function(){var e=this;return E.default.Children.map(this.props.children,function(t,n){var i=(e.state.hasMount,n===e.state.selectedItem?"slide-selected":"slide");return E.default.createElement("li",{ref:"item"+n,key:"itemKey"+n,styleName:i,onClick:e.handleClickItem.bind(e,n,t)},t)})}},{key:"renderControls",value:function(){var e=this;return this.props.showIndicators?E.default.createElement("ul",{styleName:"dots"},E.default.Children.map(this.props.children,function(t,n){var i=n===e.state.selectedItem?"dot-selected":"dot";return E.default.createElement("li",{styleName:i,onClick:e.changeItem.bind(e),value:n,key:n})})):null}},{key:"render",value:function(){if(!this.props.children||0===this.props.children.length)return null;var e=this.props.children.length,t=this.props.showArrows&&e>1,n=t&&(this.state.selectedItem>0||this.props.infiniteLoop),i=t&&(this.state.selectedItem<e-1||this.props.infiniteLoop),o=100*-this.state.selectedItem+"%",s=this.CSSTranslate(o),r=this.props.transitionTime+"ms",l={WebkitTransform:s,MozTransform:s,MsTransform:s,OTransform:s,transform:s,msTransform:s,WebkitTransitionDuration:r,MozTransitionDuration:r,MsTransitionDuration:r,OTransitionDuration:r,transitionDuration:r,msTransitionDuration:r};this.state.swiping||(l=_.default.extend(l,{WebkitTransitionDuration:r,MozTransitionDuration:r,MsTransitionDuration:r,OTransitionDuration:r,transitionDuration:r,msTransitionDuration:r}));var c={selectedItem:this.state.selectedItem,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:l,tolerance:this.props.swipeScrollTolerance,ref:"itemList"},h={};this.props.height;if(c.onSwipeLeft=this.increment,c.onSwipeRight=this.decrement,this.props.dynamicHeight){var u=this.getVariableImageHeight(this.state.selectedItem);c.style.height=u||"auto",h.height=u||"auto"}var d={prev:n?"arrow-prev":"arrow-prev-disabled",next:i?"arrow-next":"arrow-next-disabled"},p=this.props.children.length>0?"container hasContent":"container",m=this.state.swiping?"swiper-animated":"swiper";return E.default.createElement("div",{styleName:p},E.default.createElement("div",{styleName:"wrapper",style:{width:this.props.width}},E.default.createElement("button",{type:"button",styleName:d.prev,onClick:this.decrement.bind(this)}),E.default.createElement("div",{styleName:"slider",style:h,ref:"itemsWrapper"},E.default.createElement(A.default,a({tagName:"ul",styleName:m},c,{allowMouseEvents:this.props.emulateTouch}),this.renderItems())),E.default.createElement("button",{type:"button",styleName:d.next,onClick:this.increment.bind(this)}),this.renderControls()))}}]),t}(E.default.Component);L.displayName="Carousel",L.propTypes={className:g.default.string,children:g.default.node,showArrows:g.default.bool,showIndicators:g.default.bool,infiniteLoop:g.default.bool,selectedItem:g.default.number,onClickItem:g.default.func.isRequired,onChange:g.default.func.isRequired,width:N,height:N,autoPlay:g.default.bool,stopOnHover:g.default.bool,interval:g.default.number,transitionTime:g.default.number,swipeScrollTolerance:g.default.number,dynamicHeight:g.default.bool,emulateTouch:g.default.bool},L.defaultProps={showIndicators:!0,showArrows:!0,infiniteLoop:!1,selectedItem:0,width:"100%",height:"auto",useKeyboardArrows:!1,autoPlay:!1,stopOnHover:!0,interval:3e3,transitionTime:350,dynamicHeight:!1,emulateTouch:!1,onClickItem:I,onChange:I},t.default=(0,S.default)(L,u.default,{allowMultiple:!0})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(4),c=i(l),h=n(48),u=i(h),d=n(122),E=i(d),p=n(90),_=i(p),m=n(681),C=i(m),f=n(290),g=i(f),T=n(692),S=i(T),v=n(49),A=i(v),N=function(e){function t(e){o(this,t);var n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={status:e.show.status},n}return r(t,e),a(t,[{key:"componentDidMount",value:function(){A.default.subscribe(this.onShowStarted.bind(this))}},{key:"componentWillUnmount",value:function(){A.default.unsubscribe(this.onShowStarted.bind(this))}},{key:"onShowStarted",value:function(e){e.type===v.ACTION.SHOW_STARTED&&this.props.show.id.toString()===e.showId.toString()&&this.setState({status:v.SHOW_STATUS.STARTED})}},{key:"timeEndCallback",value:function(){var e=this;this.props.show.status!==v.SHOW_STATUS.STARTED&&this.setState({status:v.SHOW_STATUS.PENDING},function(){A.default.setShowStatusIsPending(e.props.show.id)})}},{key:"render",value:function(){var e=this.props.show.status===v.SHOW_STATUS.CANCELED,t=(0,_.default)(this.props.show.scheduledStartAt,"YYYY-MM-DD HH:mm:ss"),n={fadeOut:this.state.status===v.SHOW_STATUS.STARTED},i=(0,E.default)("timer",n),o=this.state.status===v.SHOW_STATUS.STARTED?this.props.translate("Ongoing show"):e?this.props.translate("Canceled"):this.props.translate("My next show"),s=this.state.status===v.SHOW_STATUS.PENDING?this.props.translate("Show Starts Soon"):this.props.translate("Show Starts In"),r="full"===this.props.appletSize?"contentWide":"content";return c.default.createElement("div",{styleName:r},c.default.createElement("div",{styleName:"left"},c.default.createElement("div",{styleName:"info"},c.default.createElement("div",{styleName:"title"},c.default.createElement("span",{styleName:"preTitle"},o,":")," ",this.props.show.title),c.default.createElement("div",{styleName:"description"},this.props.show.description)),c.default.createElement("div",{styleName:i},!e&&c.default.createElement("div",{styleName:"timerLabel"},s),!e&&c.default.createElement(C.default,{isBlinking:this.state.status===v.SHOW_STATUS.PENDING,key:"countdown_"+this.props.show.id,showId:this.props.show.id,currentServerTime:this.props.currentServerTime,currentClientTime:this.props.currentClientTime,startTime:t,isAppletWide:"full"===this.props.appletSize,translate:this.props.translate,timeEndCallback:this.timeEndCallback.bind(this)}))),c.default.createElement("div",{styleName:"right"},c.default.createElement("span",{styleName:"patternCircle"}),c.default.createElement("div",{styleName:"patternDotsTop"},c.default.createElement("span",{styleName:"patternDot"}),c.default.createElement("span",{styleName:"patternDot"}),c.default.createElement("span",{styleName:"patternDot"})),c.default.createElement("div",{styleName:"patternDotsBottom"},c.default.createElement("span",{styleName:"patternDot"}),c.default.createElement("span",{styleName:"patternDot"}),c.default.createElement("span",{styleName:"patternDot"})),c.default.createElement(g.default,{key:"wallticket_"+this.props.show.id,group:"WallTicket",language:this.props.language,translate:this.props.translate,show:this.props.show,appletSize:this.props.appletSize,openPaymentModal:this.props.openPaymentModal,currentServerTime:this.props.currentServerTime,currentClientTime:this.props.currentClientTime,tooltipContainer:this.props.tooltipContainer,isOverlay:this.props.isOverlay})))}}]),t}(l.Component);t.default=(0,u.default)(N,S.default,{allowMultiple:!0})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(4),c=i(l),h=n(48),u=i(h),d=n(682),E=i(d),p=n(90),_=i(p),m=n(16),C=i(m),f=n(683),g=i(f),T=n(122),S=i(T),v="YYYY-MM-DD HH:mm:ss",A=function(e){var t=_.default.duration(e,"milliseconds");return{days:t.asDays()<10?"0"+Math.floor(t.asDays()):Math.floor(t.asDays()),hours:t.hours()<10?"0"+t.hours():t.hours(),minutes:t.minutes()<10?"0"+t.minutes():t.minutes(),seconds:t.seconds()<10?"0"+t.seconds():t.seconds(),showSeconds:Math.floor(t.asDays())<1}},N=function(e){function t(e){o(this,t);var n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.passedTimeSinceOriginalCurrentClientTime=Math.abs(n.props.currentClientTime.diff(_.default.now())),n.interval=1e3,n.serverTime=(0,_.default)(n.props.currentServerTime,v).add(n.passedTimeSinceOriginalCurrentClientTime),n.timeRemaining=n.props.startTime.diff(n.serverTime),n.clientStartTime=(0,_.default)().add(n.timeRemaining),n.timeoutId=!1,n.state={timeRemaining:n.timeRemaining<0?0:n.timeRemaining},n}return r(t,e),a(t,[{key:"componentDidMount",value:function(){this.timeRemaining=this.state.timeRemaining,this.tick()}},{key:"componentWillUnmount",value:function(){this.clearTimer()}},{key:"tick",value:function(){var e=this;this.timeoutId=this.props.setTimeout(function(){e.timeRemaining=e.clientStartTime.diff(_.default.now()),e.timeRemaining<=0?(e.timeRemaining=0,e.setState({timeRemaining:e.timeRemaining},function(){e.props.timeEndCallback(),e.clearTimer()})):e.setState({timeRemaining:e.timeRemaining},e.tick)},this.interval)}},{key:"clearTimer",value:function(){this.props.clearTimeout(this.timeoutId),this.timeoutId=!1}},{key:"render",value:function(){var e=this,t=A(this.state.timeRemaining),n=t.showSeconds?{hours:"hrs",minutes:"mins",seconds:"sec"}:{days:"days",hours:"hrs",minutes:"mins"},i={wrapperWide:this.props.isAppletWide,wrapper:!this.props.isAppletWide,blinking:this.props.isBlinking},o=(0,S.default)(i),s=Object.keys(n);return c.default.createElement("div",{styleName:o},s.map(function(i,o){return c.default.createElement("div",{key:i},c.default.createElement("div",{styleName:"unit"},c.default.createElement("div",{styleName:"unitInfo"},c.default.createElement("span",{styleName:"unitValue"},t[i]),c.default.createElement("span",{styleName:"unitLabel"},e.props.translate(n[i])))),o+1<s.length?c.default.createElement("span",{styleName:"dots"},":"):null)}))}}]),t}(l.Component);N.propTypes={startTime:C.default.object,timeEndCallback:C.default.func},N.defaultProps={},t.default=(0,g.default)((0,u.default)(N,E.default,{allowMultiple:!0}))},function(e,t){e.exports={wrapper:"_1fFsLBdnxPig",wrapperWide:"h8UMpW_eeD-x",dots:"_2WcEmY7XJJrv",unitValue:"_3Bl-is0e9HBf",unit:"_1GlaJtdEASvv",unitInfo:"_1sNXft6v_Gkt",unitLabel:"_2Z8kfuUzpvlE",blinking:"GZAXQp84YR14","blink-animation":"_10rUp3DvBz7z"}},,,,,function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.type||"primary",n={disabled:e.disabled,loading:e.loading,smallText:e.smallText},i=(0,d.default)(t,n),o={id:e.id,tabIndex:"-1",styleName:i,onClick:function(){e.disabled||e.loading||!e.onClick||e.onClick()}};return r.default.createElement("button",o,e.loading?r.default.createElement("span",{styleName:"loader"}):e.value)}Object.defineProperty(t,"__esModule",{value:!0});var s=n(4),r=i(s),a=n(48),l=i(a),c=n(688),h=i(c),u=n(122),d=i(u);t.default=(0,l.default)(o,h.default,{allowMultiple:!0})},function(e,t){e.exports={button:"_1lg6tyiqIGqK",green:"_3Hu4eT-07EJd",primary:"_UVVekdZJ1fH",loading:"_2WzkEz8GDFPN",loader:"mtVBBRWKo9be",smallText:"tuvHAgP0Q4aU",spinner:"_1W-mHrJNi8EU",disabled:"_67dLd9y-kXZ5",danger:"_hHkPszMNY9_ _1lg6tyiqIGqK"}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),h=n(4),u=i(h),d=n(16),E=i(d),p=n(78),_=i(p),m=n(48),C=i(m),f=n(690),g=i(f),T=function(e){function t(e){s(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={hover:!1,transition:"opacity",width:0,height:0},n.margin=15,n.defaultArrowStyle={color:"rgba(0,0,0,.6)",borderColor:"rgba(0,0,0,.6)"},n.updateSize=n.updateSize.bind(n),n}return a(t,e),c(t,[{key:"bindEvents",value:function(){window.addEventListener("resize",this.updateSize)}},{key:"unbindEvents",value:function(){window.removeEventListener("resize",this.updateSize)}},{key:"getGlobalStyle",value:function(){if(!this.props.parentEl)return{display:"none"};var e=l({width:this.props.width?this.props.width+"px":"auto",opacity:this.state.hover||this.props.active?1:0,visibility:this.state.hover||this.props.active?"visible":"hidden"},this.getStyle(this.props.position,this.props.arrow));return this.mergeStyle(e,this.props.style.style)}},{key:"getBaseArrowStyle",value:function(){return{position:"absolute",content:'""'}}},{key:"getArrowStyle",value:function(){var e=this.getBaseArrowStyle(),t=this.getBaseArrowStyle();e.zIndex=60,t.zIndex=55;var n=Object.assign(this.defaultArrowStyle,this.props.style.arrowStyle),i=n.borderColor?n.borderColor:"transparent",s="10px solid "+n.color,r="8px solid transparent",a="11px solid "+i,l="9px solid transparent",c=this.props,h=c.position,u=c.arrow;"left"===h||"right"===h?(e.top="50%",e.borderTop=r,e.borderBottom=r,e.marginTop=-7,t.borderTop=l,t.borderBottom=l,t.top="50%",t.marginTop=-8,"left"===h?(e.right=-10,e.borderLeft=s,t.right=-11,t.borderLeft=a):(e.left=-10,e.borderRight=s,t.left=-11,t.borderRight=a),"top"===u&&(e.top=this.margin,t.top=this.margin),"bottom"===u&&(e.top=null,e.bottom=this.margin-7,t.top=null,t.bottom=this.margin-8)):(e.left=Math.round(this.state.width/2-8),e.borderLeft=r,e.borderRight=r,e.marginLeft=0,t.left=e.left-1,t.borderLeft=l,t.borderRight=l,t.marginLeft=0,"top"===h?(e.bottom=-10,e.borderTop=s,t.bottom=-11,t.borderTop=a):(e.top=-10,e.borderBottom=s,t.top=-11,t.borderBottom=a),"right"===u&&(e.left=null,e.right=this.margin+1-8,t.left=null,t.right=this.margin-8),"left"===u&&(e.left=this.margin+1-8,t.left=this.margin-8));var d=this.props.style.arrowStyle,E=(d.color,d.borderColor,o(d,["color","borderColor"]));return{fgStyle:this.mergeStyle(e,E),bgStyle:this.mergeStyle(t,E)}}},{key:"mergeStyle",value:function(e,t){if(t){var n=(t.position,t.top,t.left,t.right,t.bottom,t.marginLeft,t.marginRight,o(t,["position","top","left","right","bottom","marginLeft","marginRight"]));return l({},e,n)}return e}},{key:"getStyle",value:function(e,t){var n=this,i=this.props.parentEl,o=i.getBoundingClientRect(),s=void 0,r=void 0;if(this.props.container&&this.props.isOverlay){var a=document.querySelector(this.props.container);s=a.scrollTop,r=a.scrollLeft}else s=void 0!==window.scrollY?window.scrollY:window.pageYOffset,r=void 0!==window.scrollX?window.scrollX:window.pageXOffset;var l=s+o.top,c=r+o.left,h={},u={left:function(){h.top=l+i.offsetHeight/2-n.state.height/2,h.left=c-n.state.width-n.margin},right:function(){h.top=l+i.offsetHeight/2-n.state.height/2,h.left=c+i.offsetWidth+n.margin},top:function(){h.left=c-n.state.width/2+i.offsetWidth/2,h.top=l-n.state.height-n.margin},bottom:function(){h.left=c-n.state.width/2+i.offsetWidth/2,h.top=l+i.offsetHeight+n.margin}},d={left:function(){h.left=c+i.offsetWidth/2-n.margin},right:function(){h.left=c-n.state.width+i.offsetWidth/2+n.margin},top:function(){h.top=l+i.offsetHeight/2-n.margin},bottom:function(){h.top=l+i.offsetHeight/2-n.state.height+n.margin}};return A(u,e),A(d,t),h}},{key:"checkWindowPosition",value:function(e,t){if(("top"===this.props.position||"bottom"===this.props.position)&&e.left<0){if(this.props.parentEl){var n=this.state.width,i=t.bgStyle.right;i||(i=n/2-9);var o=Math.round(i-e.left+this.margin);t=l({},t,{bgStyle:l({},t.bgStyle,{right:o,left:null}),fgStyle:l({},t.fgStyle,{right:o+1,left:null})})}e.left=this.margin}return{style:e,arrowStyle:t}}},{key:"componentWillUnmount",value:function(){this.unbindEvents()}},{key:"componentDidMount",value:function(){this.bindEvents(),this.updateSize()}},{key:"componentWillReceiveProps",value:function(){var e=this;this.setState({transition:this.state.hover||this.props.active?"all":"opacity"},function(){e.updateSize()})}},{key:"updateSize",value:function(){var e=_.default.findDOMNode(this);this.setState({width:e.offsetWidth,height:e.offsetHeight})}},{key:"render",value:function(){var e=this.checkWindowPosition(this.getGlobalStyle(),this.getArrowStyle()),t=e.style,n=e.arrowStyle;return u.default.createElement("div",{styleName:"container",style:t},this.props.arrow?u.default.createElement("div",null,u.default.createElement("span",{style:n.fgStyle}),u.default.createElement("span",{style:n.bgStyle})):null,this.props.children)}}]),t}(u.default.Component);T=(0,C.default)(T,g.default),T.propTypes={active:E.default.bool,position:E.default.oneOf(["top","right","bottom","left"]),arrow:E.default.oneOf([null,"center","top","right","bottom","left"]),style:E.default.object},T.defaultProps={active:!1,position:"right",arrow:null,style:{style:{},arrowStyle:{}}};var S={},v=function(e){function t(e){return s(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),c(t,[{key:"componentDidMount",value:function(){this.props.active&&this.renderPortal(this.props)}},{key:"componentWillReceiveProps",value:function(e){var t=this;if((S[this.props.group]||e.active)&&(this.props.active||e.active)){var n=l({},e),i=l({},e);S[this.props.group]&&S[this.props.group].timeout&&clearTimeout(S[this.props.group].timeout),this.props.active&&!n.active&&(i.active=!0,S[this.props.group].timeout=setTimeout(function(){n.active=!1,t.renderPortal(n)},this.props.tooltipTimeout)),this.renderPortal(i)}}},{key:"componentWillUnmount",value:function(){S[this.props.group]&&(_.default.unmountComponentAtNode(S[this.props.group].node),S[this.props.group].node.remove(),clearTimeout(S[this.props.group].timeout),delete S[this.props.group])}},{key:"createPortal",value:function(){S[this.props.group]={node:document.createElement("div"),timeout:!1},S[this.props.group].node.className="ToolTipPortal",(this.props.container?document.querySelector(this.props.container):document.body).appendChild(S[this.props.group].node)}},{key:"renderPortal",value:function(e){S[this.props.group]||this.createPortal();var t=e.parent,n=o(e,["parent"]),i="string"==typeof t?document.querySelector(t):t;(0,p.unstable_renderSubtreeIntoContainer)(this,u.default.createElement(T,l({parentEl:i},n)),S[this.props.group].node)}},{key:"render",value:function(){return null}}],[{key:"shouldComponentUpdate",value:function(){return!1}}]),t}(u.default.Component);v.propTypes={parent:E.default.oneOfType([E.default.string,E.default.object]).isRequired,active:E.default.bool,group:E.default.string,tooltipTimeout:E.default.number,width:E.default.number,height:E.default.number},v.defaultProps={active:!1,group:"main",tooltipTimeout:500};var A=function(e,t){Object.prototype.hasOwnProperty.call(e,t)&&e[t]()};t.default=v},function(e,t){e.exports={container:"Xo10yrdVMZGF"}},function(e,t){e.exports={content:"_1uQoSsvxsnEq",contentWide:"euLJmjYGfYQ4",right:"Z63sKLdgk10L",title:"_17OPEhX4kdB6",description:"EL5z90Kf22sX",separator:"TU_suNP_NfLo",details:"_36EXVGx9CZ5p",detailsType:"_1T_XfsZoatEc",detailsTitle:"_2WJimPc1kDz3",detailsWrapper:"_2q6fE84MYlLs",detailsItem:"_2Ibym7A1iJBb",detailsLabel:"_3s6JoOK8YPYG",detailsValue:"_3_ZEM7wIyURb",showPrice:"_3PedXc901csr",bookActions:"_2QAKaaLQL35U"}},function(e,t){e.exports={content:"_1nSagoFaTy2c",contentWide:"_3rKAWzuoWREA",left:"_38HW8L4m60-Q",right:"_38VyjHgD219w",title:"_25LzAvcNCMRc",description:"wyUUcRg4Fn47",info:"_3hOkvTvJeM1o",patternDotsBottom:"_10-MSg1wreiD",patternDotsTop:"_1OYCo1plPYIH",patternCircle:"_3R7V-j2np8bW",patternDot:"_3TMHMAjqiK9r",timer:"_1oK06e_DEw4g",timerLabel:"_1Tw2JzxttSlu",timerCountdown:"sf0-pVy79nrn",preTitle:"_9xqaMbNre1RT",fadeOut:"_2ME3Ojf6_22F"}},function(e,t,n){var i=n(0),o=n(2),s=n(694),r=n(695),a=function(e,t){a.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(a,i.Component,{name:o.IsotopeLayoutComponent.NAME,itemSelector:"article",containerId:void 0,resizeTimer:void 0,resizeDelay:300,init:function(e,t){a.superclass.init.call(this,e,t),this._setIsotopeLayoutController()},insertContent:function(e,t,n){e&&this.getIsotopeLayoutController().insertContent(e,t,n)},prependContent:function(e){e&&this.getIsotopeLayoutController().prependContent(e)},removeContent:function(e){this.getIsotopeLayoutController().removeContent(e)},setLayout:function(){this.getIsotopeLayoutController().setLayout()},_setIsotopeLayoutController:function(){return this._isotopeLayoutController instanceof s||(this._isotopeLayoutController=new s({containerId:this.containerId,itemSelector:this.itemSelector,items:{IsotopeLayoutView:{component:this._setIsotopeLayoutView(),listeners:{"prepend-finished":"onPrependFinished"}}}}),this._isotopeLayoutController.on(o.IsotopeLayoutController.EVENT_CONTENT_REPLACED,this.onContentReplaced,this)),this._isotopeLayoutController},getIsotopeLayoutController:function(){return this._setIsotopeLayoutController()},onContentReplaced:function(){i.fireEvent(o.IsotopeLayoutComponent.GLOBAL_EVENT_WALL_CONTENT_REPLACED,{scope:this})},_setIsotopeLayoutView:function(){return this._isotopeLayoutView instanceof r||(this._isotopeLayoutView=new r(this.element,{containerId:this.containerId,itemSelector:this.itemSelector})),this._isotopeLayoutView},onChannelGetContentSuccess:function(e){this.insertContent(e.content,e.contentRendered,e.showMore)},onRemoveContent:function(){this.removeContent()},_reLayout:function(){this.getIsotopeLayoutController().reLayout()},sortLayout:function(e){this.getIsotopeLayoutController().sortLayout(e)},_resizeContainer:function(){this.resizeTimer instanceof Ext.util.DelayedTask?this.resizeTimer.cancel():this.resizeTimer=new Ext.util.DelayedTask(function(){this.getIsotopeLayoutController().resizeContainer()},this),this.resizeTimer.delay(this.resizeDelay)},onDataLayerChange:function(){this._reLayout()},bind:function(){a.superclass.bind.call(this),i.on([{element:i.Broadcaster,event:o.ChannelContentManagerComponent.GLOBALEVENT_GET_CONTENT_SUCCESS,handler:this.onChannelGetContentSuccess},{element:i.Broadcaster,event:o.ChannelContentManagerComponent.GLOBALEVENT_REMOVE_CONTENT,handler:this.onRemoveContent},{element:Ext.fly(window),event:"resize",handler:i.debounce(this._resizeContainer,300)},{element:i.Broadcaster,event:o.ChatPageComponentAbstract.GLOBALEVENT_APPLET_RESIZE,handler:this._resizeContainer},{element:i.Broadcaster,event:o.HTML5ChatPageView.GLOBALEVENT_SIZE_TYPE_CHANGE,handler:this._resizeContainer}],this)},unbind:function(){a.superclass.unbind.call(this),this._isotopeLayoutController.un(o.IsotopeLayoutController.EVENT_CONTENT_REPLACED,this.onContentReplaced,this),this._isotopeLayoutController.unbind(),delete this._isotopeLayoutController}})},function(e,t,n){var i=n(0),o=n(2),s=function(e,t){s.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(s,i.Controller,{name:"IsotopeLayoutController",itemSelector:"article",containerId:void 0,init:function(e,t){s.superclass.init.call(this,e,t),this.addEvents(o.IsotopeLayoutController.EVENT_CONTENT_REPLACED)},insertContent:function(e,t,n){e&&this.IsotopeLayoutView.insertContent(e,t,n)},prependContent:function(e){e&&this.IsotopeLayoutView.prependContent(e)},onPrependFinished:function(){this.fireEvent(o.IsotopeLayoutController.EVENT_CONTENT_REPLACED,{scope:this})},setLayout:function(){this.containerId&&this.IsotopeLayoutView.setLayout()},sortLayout:function(e){this.IsotopeLayoutView.sortLayout(e)},reLayout:function(){this.containerId&&this.IsotopeLayoutView.reLayout()},resizeContainer:function(){this.IsotopeLayoutView.resizeContainer()},removeContent:function(e){this.IsotopeLayoutView.removeContent(e)},unbind:function(){s.superclass.unbind.call(this),delete this.IsotopeLayoutView}})},function(e,t,n){var i=n(0),o=n(2),s=n(166),r=n(23),a=function(e,t){a.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(a,s,{name:"IsotopeLayoutView",containerId:void 0,leftShadowClass:"permanent_content_shadow_mask",postTagName:"article",actionAttribute:"data-action",_isLayoutSet:!1,_firstLayoutComplete:!0,flashResizeTriggerWidth:1465,flashResizeTriggerHeight:771,wallMarginInFullScreen:50,orderTypeCookieName:"channelWallOrderType",cookieExpiration:2592e3,sortPrefix:"sort_",appletFullLayout:"full",sortBy:{default:"default",proportional:"proportional"},gridClasses:{3:"grid3",4:"grid4",5:"grid5"},init:function(e,t){a.superclass.init.call(this,e,t),this.addEvents(o.IsotopeLayoutView.EVENT_PREPEND_FINISHED),this.gridValues=[];for(var n in this.gridClasses)this.gridClasses.hasOwnProperty(n)&&this.gridValues.push(this.gridClasses[n]);this.resizeContainer()},setLayout:function(){if(this.containerId&&!this._isLayoutSet){var e=this,t=$("#"+e.containerId);t.isotope({itemSelector:"article",layoutMode:"masonry",animationEngine:"css",transitionDuration:".3s",containerStyle:{position:"relative",opacity:1},packery:{columnWidth:".grid-sizer"},getSortData:{number:"[data-isotopesort] parseInt"}}),e.onLayoutComplete(),t.isotope("on","layoutComplete",function(){e.element.select(e.postTagName).each(function(){var t=this.getLeft(!0)<=0,n=this.child("."+e.leftShadowClass);n&&n.setStyle("display",t?"none":"block")})}),this._isLayoutSet=!0}},reLayout:function(){$("#"+this.containerId).isotope("layout")},isWindowOverFlashResizeTrigger:function(){return this.isAppletIsFullSized?$(window).width()>=this.flashResizeTriggerWidth:$(window).width()>=this.flashResizeTriggerWidth&&$(window).height()>=this.flashResizeTriggerHeight},getChatBlock:function(e){return this.chatBlock&&!e||(this.chatBlock=$("#chatblock")),this.chatBlock},isAppletIsFullSized:function(){return this.getChatBlock()&&this.getChatBlock().hasClass(this.appletFullLayout)},resizeContainer:function(){var e=$("#freechat"),t=$("#channel_block_container"),n=3;if(r.getAppletType()!==o.appletType.HTML5&&4!==i.Config.get("memberAppletVersion")||(e=$("#chatblock").find(".member_client").eq(0)),e.width()<=100&&(e=$("#private_end_container")),e.length&&t.length){var s=e.width();if(this.isWindowOverFlashResizeTrigger()&&(n=4),this.isAppletIsFullSized()){var a=$(window).width();a<=o.IsotopeLayoutView.SMALL_WINDOW_SIZE?n=3:a<=o.IsotopeLayoutView.MEDIUM_WINDOW_SIZE?n=4:this.isWindowOverFlashResizeTrigger()&&(n=5),s-=this.wallMarginInFullScreen}t.removeClass(this.gridValues.join(" ")).addClass(this.gridClasses[n]).css({width:Math.floor(s/n)*n}),this.reLayout()}},getItemByType:function(e){var t,n,i,o=this,s=[],r=[],a=[],l=[],c=[],h=[],u=[],d=[],E=[],p=[],_=$("#"+this.containerId).isotope("getItemElements");return $(_).each(function(){var e=$(this).data("type"),t=$(this).find(".exclusive_content").eq(0).length,n=$(this).find(".montage_holder").eq(0).length;if($(this).attr("data-isotopesort")||$(this).attr("data-isotopesort",0),t?(r.push(this),i=o.getBlockOrientation(this),"portrait"===i?E.push(this):p.push(this)):s.push(this),n)h.push(this);else switch(e){case"hit-and-miss":c.push(this);break;case"picture":i=o.getBlockOrientation(this),"portrait"===i?a.push(this):l.push(this);break;case"video":u.push(this);break;case"note":d.push(this)}}),t={picturesPortrait:a,picturesLandscape:l,montages:h,videos:u,notes:d,blurredPortrait:E,blurredLandscape:p,hitAndMiss:c},n={free:s,premium:r},e?n:t},getBlockOrientation:function(e){var t=$(e);return t.height()>t.width()?"portrait":"landscape"},setSortMethod:function(e,t){var n,i,o,s,r=$("#"+this.containerId),a=0,l={picturesPortrait:0,picturesLandscape:0,montages:0,videos:0,notes:0,blurredPortrait:0,blurredLandscape:0,hitAndMiss:0};switch(t){default:case this.sortBy.default:r.find("article").attr("data-isotopesort",0);break;case this.sortBy.proportional:for(o=0,Object.keys(e).forEach(function(t){o+=e[t].length}),s=1;s<=o;s++){var c="";i=0;for(n in e)e.hasOwnProperty(n)&&(a=e[n].length/o*s-l[n])>i&&(i=a,c=n);var h=$(e[c][++l[c]-1]);if(h.attr("data-isotopesort",s),h.attr("data-fix-sort-position")){var u=h.attr("data-fix-sort-position");h.attr("data-isotopesort",u)}}}r.isotope("updateSortData"),r.isotope({sortBy:"number",sortAscending:!0})},insertContent:function(e,t,n){if(this.containerId){this.showLoader(!1);var i=$(e);n||(this._isLayoutSet=!1),t&&!n?(this.setLayout(),$("#"+this.containerId).isotope()):$("#"+this.containerId).isotope("insert",i),this.fireEvent(o.IsotopeLayoutView.EVENT_PREPEND_FINISHED,{scope:this})}},prependContent:function(e){if(this.containerId){var t=$(e),n=this;$("#"+n.containerId).prepend(t[0]).isotope("prepended",t[0]),n.fireEvent(o.IsotopeLayoutView.EVENT_PREPEND_FINISHED,{scope:this})}},removeContent:function(e){var t=e instanceof Ext.Element?e.dom:e;if(this.containerId){var n=$(t);0===n.length&&(n=$("#"+this.containerId).html()),$("#"+this.containerId).isotope("remove",n).isotope("layout").html("")}},sortLayout:function(e){switch(this.getAction(e)){case"sort_proportional":this.sortProportional();break;case"sort_default":this.sortDefault();break;default:console.warn("Action attribute does not exists.")}},getAction:function(e){return e.item.getAttribute(this.actionAttribute)},sortDefault:function(){var e=this.getItemByType();this.setSortMethod(e,this.sortBy.default),i.Cookie.set(this.orderTypeCookieName,this.sortBy.default,this.cookieExpiration,"/")},sortProportional:function(){var e=this.getItemByType();this.setSortMethod(e,this.sortBy.proportional),i.Cookie.set(this.orderTypeCookieName,this.sortBy.proportional,this.cookieExpiration,"/")},onLayoutComplete:function(){var e=this;if(this.element.select(this.postTagName).each(function(){var t=this.getLeft(!0)<=0,n=this.child("."+e.leftShadowClass);n&&n.setStyle("display",t?"none":"block")}),this._firstLayoutComplete){var t=this.getItemByType(),n=i.Cookie.get(this.orderTypeCookieName)||this.sortBy.proportional;this.setSortMethod(t,n),this._firstLayoutComplete=!1,this.reLayout()}}})},function(e,t,n){var i=n(0),o=n(2),s=n(697),r=n(698),a=function(e,t){a.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(a,i.Component,{name:"ChannelOrderDropdownComponent",_ChannelOrderDropdownView:void 0,_ChannelOrderDropdownController:void 0,init:function(e,t){a.superclass.init.call(this,e,t),i.addEvents(o.ChannelOrderDropdownComponent.EVENT_DROPDOWN_MENU_ITEM_CLICK),this._setChannelOrderDropdownView(),this._setChannelOrderDropdownController()},_setChannelOrderDropdownView:function(){this._ChannelOrderDropdownView instanceof s||(this._ChannelOrderDropdownView=new s({element:this.element}))},_setChannelOrderDropdownController:function(){this._ChannelOrderDropdownController instanceof r||(this._ChannelOrderDropdownController=new r({init:function(){},items:{view:{component:this._ChannelOrderDropdownView,listeners:{"dropdown-menu-item-click":"onDropDownMenuItemClick","dropdown-menu-visibility-change":"onDropDownMenuVisibilityChange","dropdown-menu-background-show":"onDropdownMenuBackgroundShow","dropdown-menu-background-hide":"onDropdownMenuBackgroundHide"}}}}),this._ChannelOrderDropdownController.on({"dropdown-menu-item-click":this.onDropDownMenuItemClick,scope:this}))},onDropDownMenuItemClick:function(e){i.fireEvent(o.ChannelOrderDropdownComponent.EVENT_DROPDOWN_MENU_ITEM_CLICK,e)},destroy:function(){this._ChannelOrderDropdownController.destroy(),a.superclass.destroy.call(this)}})},function(e,t,n){var i=n(175),o=function(e){o.superclass.constructor.call(this,e)};e.exports=Ext.extend(o,i,{name:"ChannelOrderDropdownView",isSetMenuTitleToCurrent:!0,getAction:function(e){return e.item.getAttribute(this.actionAttribute)}})},function(e,t,n){var i=n(176),o=function(e,t){o.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(o,i,{name:"ChannelOrderDropdownController"})},function(e,t,n){var i=n(0),o=n(2),s=(n(262),n(11)),r=n(3),a=(n(263),function(e,t){a.superclass.constructor.call(this,e,t)});e.exports=Ext.extend(a,i.Controller,{name:"ContentManagerController",contentBlockId:"channel_inner_content",deleteContentButtonCls:"remove",editContentButtonCls:"montage_edit",mainContentParentNode:"article",dataTypeAttribute:"data-type",dataTypeIdAttribute:"data-type-id",dataTypeTimeAttribute:"data-type-time",confirmButtonCls:"confirm",urlRoutesEdit:{},urlRoutesDelete:{},extendActivatePointWith:100,activatePointRatio:.3,lastItemClass:"last",isLastPage:!0,channelBlockInnerId:"channel_block_inner",pictureContentCls:"picture_content",videoContentCls:"video_content",noteContentCls:"note_content",commentCls:"comments",overlayCommentCtnCls:"overlay_comment_container",scrollContentCls:"scrollContent",pendingStatusClass:"pending_status",autoLoad:!0,chatBlockId:"chatblock",contentPosition:0,_enableLoadContent:!0,_isLastPage:!1,_channelBlockInnerEl:void 0,_commentItems:void 0,_deletedElement:void 0,_tempScrollTop:0,_currentScrollTop:0,_selectedFilter:void 0,_isBeingDestroyed:!1,init:function(e,t){a.superclass.init.call(this,e,t),this.addEvents(o.ContentManagerController.EVENT_CONTENT_REPLACED,o.ContentManagerController.EVENT_GET_CONTENT_SUCCESS),i.addEvents(o.ContentManagerController.GLOBALEVENT_COMMENTS_LINK_CLICK),this.autoLoad&&this._loadZeroPage()},_collectElements:function(){this._channelBlockInnerEl=Ext.get(this.channelBlockInnerId),this._channelBlockInnerEl&&(this._commentItems=this._channelBlockInnerEl.select("."+this.noteContentCls),this._imageContentItems=this._channelBlockInnerEl.select("."+this.pictureContentCls),this._videoContentItems=this._channelBlockInnerEl.select("."+this.videoContentCls)),this._contentBlockEl=Ext.get(this.contentBlockId),this._contentBlockEl&&(this._channelWallItems=this._contentBlockEl.select(this.mainContentParentNode)),this._chatBlockEl=Ext.get(this.chatBlockId)},removeContent:function(e){this.ContentManagerView.removeContent(e)},_getLastElemTimeStamp:function(){var e=this.element.select("."+this.lastItemClass);if(e.getCount())return e=e.item(0),e.removeClass(this.lastItemClass),e.getAttribute(this.dataTypeTimeAttribute)},getNextPage:function(){var e=this._getLastElemTimeStamp();e&&this._enableLoadContent&&(this._enableLoadContent=!1,this.ContentManagerModel.getContent({lastItemTimeStamp:e,showMore:!0,contentType:this._selectedFilter}),this.ContentManagerView.showLoader(!0))},hideLoader:function(){this.ContentManagerView.showLoader(!1)},showLoader:function(){this.ContentManagerView.showLoader(!0)},getActualTimeInSeconds:function(){return Math.floor((new Date).getTime()/1e3)},getZeroPage:function(e,t){var n=this.getActualTimeInSeconds(),o="paying"===i.Config.get("performerChannelType");this._enableLoadContent&&(this._enableLoadContent=!1,this._selectedFilter=t,this.ContentManagerModel.getContent({lastItemTimeStamp:n,performerName:e,showMore:!1,contentType:this._selectedFilter,premiumOnly:o}))},getChannelPageByModelName:function(e){this._isBeingDestroyed||this.getZeroPage(e)},_loadZeroPage:function(){var e=this.ContentManagerView.getZeroPageFromNoscriptTag();e?(i.fireEvent(o.ChannelContentManagerComponent.GLOBALEVENT_GET_CONTENT_SUCCESS,{scope:this,content:e}),e=null):this.getZeroPage()},onGetContentSuccess:function(e){var t=e.response.json.data,n=t.content,i=e.showMore,s=t.channel_subscription;this.ContentManagerView.showChannelContainer(),this.autoLoad||this.ContentManagerView.render(n,i),this.fireEvent(o.ContentManagerController.EVENT_GET_CONTENT_SUCCESS,{scope:this,content:n,contentRendered:!this.autoLoad,showMore:i,channelSubscription:s}),this._enableLoadContent=!0,this._isLastPage=e.response.json.data.isLastPage},onGetContentError:function(){this.fireEvent(o.ContentManagerController.EVENT_GET_CONTENT_ERROR),this._enableLoadContent=!0},onContentReplaced:function(){this.fireEvent(o.ContentManagerController.EVENT_CONTENT_REPLACED,{scope:this})},onWindowScroll:function(){this._isLastPage||(this._currentScrollTop=r.getScrollTop(),this._currentScrollTop>=this._tempScrollTop&&this._currentScrollTop>this._getActivatePoint()&&this.getNextPage(),this._tempScrollTop=this._currentScrollTop)},onWallContentClick:function(e){var t=Ext.fly(e.target).parent(this.mainContentParentNode),n=t.getAttribute("data-type-id"),a=t.getAttribute("data-type"),l=i.Config.get("performerNick");this.contentPosition=this.ContentManagerView.getWallPosition(),i.fireEvent(o.ContentManagerController.GLOBALEVENT_COMMENTS_LINK_CLICK,this),s.navigate("photoviewer/"+l+"/"+a+"/"+n,{trigger:!0,replace:!1,keepActiveModal:!0,lockActiveModal:!0,preventNavigateBack:r.isChatPage()})},_getActivatePoint:function(){return this._contentBlockEl?this._contentBlockEl.getHeight()+this._contentBlockEl.getTop()-window.innerHeight-this.extendActivatePointWith:window.innerHeight},scrollToChannelWall:function(){this.ContentManagerView.scrollToChannelWall()},scrollToWallPosition:function(){this.contentPosition>0&&this.ContentManagerView.scrollToWallPosition(this.contentPosition)},_preventImageSaving:function(e){e.preventDefault()},onContentFilterClicked:function(e){this.getZeroPage(e.modelName,e.selectedFilter)},bindElements:function(){this._collectElements(),this._imageContentItems.on("click",this.onWallContentClick,this,{preventDefault:!0}),this._videoContentItems.on("click",this.onWallContentClick,this,{preventDefault:!0}),this._commentItems.on("click",this.onWallContentClick,this,{preventDefault:!0}),this._chatBlockEl&&this._chatBlockEl.on("scroll",this.onWindowScroll,this),Ext.fly(window).on("scroll",this.onWindowScroll,this),this._channelWallItems.on("contextmenu",this._preventImageSaving,this),this._channelWallItems.on("mousedown",this._preventImageSaving,this),this.ContentManagerView.on(o.ContentManagerView.EVENT_CONTENT_FILTER_CLICKED,this.onContentFilterClicked,this)},setLayout:function(){this.IsotopeLayoutView.setLayout()},bind:function(){a.superclass.bind.call(this),this.autoLoad&&this.bindElements()},unbind:function(){a.superclass.unbind.call(this),this._collectElements(),this._isBeingDestroyed=!0,this._imageContentItems&&this._imageContentItems.un("click",this.onWallContentClick,this),this._videoContentItems&&this._videoContentItems.un("click",this.onWallContentClick,this),this._commentItems&&this._commentItems.un("click",this.onWallContentClick,this),this._chatBlockEl&&this._chatBlockEl.un("scroll",this.onWindowScroll,this),Ext.fly(window).un("scroll",this.onWindowScroll,this),this._channelWallItems&&(this._channelWallItems.un("contextmenu",this._preventImageSaving,this),this._channelWallItems.un("mousedown",this._preventImageSaving,this)),this.ContentManagerView.un(o.ContentManagerView.EVENT_CONTENT_FILTER_CLICKED,this.onContentFilterClicked,this)}})},function(e,t,n){var i=n(0),o=n(2),s=(n(120),function(e,t){s.superclass.constructor.call(this,e,t)});e.exports=Ext.extend(s,i.Controller,{name:"SubscriptionController",init:function(e,t){s.superclass.init.call(this,e,t),this.addEvents(o.SubscriptionController.EVENT_SUBSCRIBE_BUTTON_CLICK)},addNewButton:function(e,t,n){var s=this.model.getSubModel({performerName:n,status:e.data("subscription-status"),unsubscribeEnabled:e.data("subscription-cancellation")||!1}),r=this.view.setNewButtonView(e,t,s);i.on([{element:r,event:o.SubscriptionButtonViewAbstract.EVENT_BUTTON_CLICK,handler:this.onButtonViewClick},{element:r,event:o.SubscriptionButtonViewAbstract.EVENT_BUTTON_LOADER_SHOW,handler:this.onButtonLoaderShow},{element:r,event:o.SubscriptionButtonViewAbstract.EVENT_BUTTON_LOADER_HIDE,handler:this.onButtonLoaderHide},{element:r,event:"unbind",handler:this.onSubViewUnbind}],this)},removeButton:function(e){e.purgeAllListeners()},getButtonByPerformerName:function(e){return this.view.getButtonViewByPerformerName(e)},setSubscriptionStatus:function(e,t){this.model.setSubscriptionStatus(e,t)},enableSubscription:function(){return this.model.enableSubscription(),this},disableSubscription:function(){return this.model.disableSubscription(),this},onButtonViewClick:function(e){this.fireEvent(o.SubscriptionController.EVENT_SUBSCRIBE_BUTTON_CLICK,e)},onButtonLoaderShow:function(e){this.model.disableSubscription()},onButtonLoaderHide:function(e){this.model.enableSubscription()},onSubViewUnbind:function(e){var t=this.view.removeSubView(e,e.model.getPerformerName());i.isUndefined(t)&&this.model.removeSubModel(e.model.getPerformerName())}})},function(e,t,n){var i=n(0),o=n(2),s=function(e,t){s.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(s,i.Model,{name:"SubscriptionButtonModel",performerName:null,_loading:!1,init:function(){s.superclass.init.call(this),this.addEvents(o.SubscriptionButtonModel.EVENT_STATUS_CHANGE)},isUnsubscribeEnabled:function(){return this.attributes.unsubscribeEnabled},getPerformerName:function(){return this.attributes.performerName},getStatus:function(){return this.attributes.status},setStatus:function(e){this.attributes.status=e,this.fireEvent(o.SubscriptionButtonModel.EVENT_STATUS_CHANGE,this)}})},function(e,t,n){var i=n(0),o=n(703),s=n(704),r=n(705),a=function(e){a.superclass.constructor.call(this,e)};e.exports=Ext.extend(a,i.View,{name:"SubscriptionView",_availableSubViews:{_default:o,awards:s,myfanclubs:r},_collection:{},setNewButtonView:function(e,t,n){i.isUndefined(this._collection[n.getPerformerName()])&&(this._collection[n.getPerformerName()]=[]);var o=this._getSubView(e,t,n);return this._collection[n.getPerformerName()].push(o),o},removeSubView:function(e,t){var n=this._collection[t]||[];return n.length&&(this._collection[t]=i.without(n,e)||[]),0===this._collection[t].length&&(this._collection[t]=!1,this._collection=i.compact(this._collection)),this._collection[t]},getButtonViewByPerformerName:function(e){return this._collection[e]},_getViewClass:function(e){return this._availableSubViews[e.data("button-type")]||this._availableSubViews._default},_getSubView:function(e,t,n){var o=this._getViewClass(e);if(i.isUndefined(o))throw new Error("Unavailable block type defined.");return new o({element:e,elementScope:t,model:n})}})},function(e,t,n){var i=(n(0),n(120)),o=function(e){o.superclass.constructor.call(this,e)};e.exports=Ext.extend(o,i,{name:"SubscriptionButtonView"})},function(e,t,n){var i=n(2),o=n(120),s=(n(121),function(e){s.superclass.constructor.call(this,e)});e.exports=Ext.extend(s,o,{name:"AwardsSubscriptionButtonView",onModelStatusChange:function(){this.model.getStatus()===i.SubscriptionComponent.SUBSCRIPTION_STATUS_SUBSCRIBED&&this.element.parent(".message").addClass("isSubscribed"),s.superclass.onModelStatusChange.apply(this,arguments)}})},function(e,t,n){var i=(n(2),n(120)),o=function(e){o.superclass.constructor.call(this,e)};e.exports=Ext.extend(o,i,{name:"MyFanClubsSubscriptionButtonView",getContainer:function(){return this.element}})},function(e,t,n){var i=n(0),o=n(2),s=n(707),r=n(708),a=n(709),l=function(e,t){l.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(l,i.Component,{name:"SubscribeComponent",controllerClass:s,viewClass:r,buttonView:null,buttonModel:null,init:function(e,t){l.superclass.init.call(this,e,t),i.addEvents(o.SubscribeComponent.GLOBALEVENT_SEND_CONFIRMATION_SUCCESS,o.SubscribeComponent.GLOBALEVENT_SUBSCRIBE_START,o.SubscribeComponent.GLOBALEVENT_JOIN_ATTEMPT_INSUFFICIENT_CREDIT,o.SubscribeComponent.GLOBALEVENT_ALREADY_SUBSCRIBED),this.setController()},setController:function(){return this.controller instanceof this.controllerClass||(this.controller=new this.controllerClass({buttonView:this.buttonView,service:a,performerName:this.buttonModel.getPerformerName(),items:{view:{component:new this.viewClass({element:this.element,tooltipContainerEl:this.buttonView.getContainer()}),listeners:{"confirm-button-click":"onConfirmButtonClick","login-button-click":"onLoginButtonClick","signup-button-click":"onSignUpButtonClick"}}}}),i.on([{element:this.controller,event:o[this.controllerClass.prototype.name].EVENT_SUBSCRIBE_START,handler:this.onSubscribeStart},{element:this.controller,event:o[this.controllerClass.prototype.name].EVENT_JOIN_ATTEMPT_INSUFFICIENT_CREDIT,handler:this.onJoinAttemptInsufficientCredit},{element:this.controller,event:o[this.controllerClass.prototype.name].EVENT_ALREADY_SUBSCRIBED,handler:this.onAlreadySubscribed}],this)),this.controller},onJoinAttemptInsufficientCredit:function(){i.fireEvent(o.SubscribeComponent.GLOBALEVENT_JOIN_ATTEMPT_INSUFFICIENT_CREDIT)},onAlreadySubscribed:function(e){i.fireEvent(o.SubscribeComponent.GLOBALEVENT_ALREADY_SUBSCRIBED,e)},onSubscribeStart:function(e){i.fireEvent(o.SubscribeComponent.GLOBALEVENT_SUBSCRIBE_START,{transactionId:e.transactionId,performerName:e.performerName})},destroy:function(){this.controller.destroy(),l.superclass.destroy.call(this)}})},function(e,t,n){var i=n(0),o=n(2),s=n(11),r=n(53),a=n(14),l=function(e){l.superclass.constructor.call(this,e)};e.exports=Ext.extend(l,i.Controller,{name:"SubscribeController",service:null,performerName:null,buttonView:null,init:function(e,t){l.superclass.init.call(this,e,t),this.addEvents(o.SubscribeController.EVENT_SUBSCRIBE_START,o.SubscribeController.EVENT_JOIN_ATTEMPT_INSUFFICIENT_CREDIT,o.SubscribeController.EVENT_ALREADY_SUBSCRIBED),this.buttonView.displayLoader(),a.isLoggedIn()?this.service.getSubscribeType(this.performerName).then(i.bind(this.getSubscriptionTypeDone,this)).catch(i.bind(this._displayFailure,this)):this.service.getLoginTooltip(this.performerName).then(i.bind(this.onGetTooltipSuccess,this)).catch(i.bind(this._displayFailure,this))},getSubscriptionTypeDone:function(e){if(e.json.data.error===o.SubscribeController.SUBSCRIPTION_TYPE_ALREADY_SUBSCRIBED)return this.buttonView.hideLoader(),void this.fireEvent(o.SubscribeController.EVENT_ALREADY_SUBSCRIBED,this.performerName);switch(e.json.data.action){case o.SubscribeController.SUBSCRIPTION_TYPE_FIRSTBILL:if(i.Config.get("isOnPrivate")){var t=r.getFullHash("subscribe/"+i.Config.get("performerNick"));this.view.showGetCreditsTooltip(i.getUrl("Chat/Performer",{performerId:i.Config.get("performerNick")})+t)}else this._openSubscribePaymentModal();this.buttonView.hideLoader();break;case o.SubscribeController.SUBSCRIPTION_TYPE_REBILL:default:this.buttonView.displayLoader(),this.service.getConfirmationTooltip(this.performerName).then(i.bind(this.onGetTooltipSuccess,this)).catch(i.bind(this._displayFailure,this))}},_openSubscribePaymentModal:function(){var e=!0;(!s.getActiveModal()||s.getActiveModal().name!==o.PhotoViewerModalComponent.NAME&&s.getActiveModal().name!==o.GalleryModalComponent.NAME)&&(e={trigger:!0,replace:!1,keepActiveModal:!0,lockActiveModal:!0,preventNavigateBack:!1}),s.navigate("subscribe/"+this.performerName,e)},onGetTooltipSuccess:function(e){this.buttonView.hideLoader(),this.view.renderTooltip(e.json.data.content)},onConfirmButtonClick:function(e){this.buttonView.displayLoader(),this.service.submitJoinChannel(this.performerName,e.token).then(i.bind(this._subscribeStart,this)).catch(i.bind(this._submitFailure,this))},onLoginButtonClick:function(){s.navigate("login",{trigger:!0,preventNavigateBack:!1})},onSignUpButtonClick:function(){s.navigate("signup",{trigger:!0,preventNavigateBack:!1})},_subscribeStart:function(e){this.buttonView.hideLoader(),this.fireEvent(o.SubscribeController.EVENT_SUBSCRIBE_START,{transactionId:e,performerName:this.performerName})},_submitFailure:function(e){e===o.SubscriptionService.ERROR?this.fireEvent(o.SubscribeController.EVENT_JOIN_ATTEMPT_INSUFFICIENT_CREDIT):this._displayFailure()},_displayFailure:function(){this.buttonView.hideLoader(),this.view.showErrorTooltip()},destroy:function(){this.view.removeTooltip(),l.superclass.destroy.call(this)}})},function(e,t,n){var i=n(0),o=n(2),s=n(167),r=function(e){r.superclass.constructor.call(this,e)};e.exports=Ext.extend(r,s,{name:"SubscribeView",confirmButtonClass:"subscribe_button",loginButtonClass:"login_button",signUpButtonClass:"signup_button",tooltipContainerEl:null,init:function(e){r.superclass.init.call(this,e),this.addEvents(o.SubscribeView.EVENT_CONFIRM_BUITON_CLICK,o.SubscribeView.EVENT_LOGIN_BUITON_CLICK,o.SubscribeView.EVENT_SIGNUP_BUITON_CLICK)},onConfirmButtonClick:function(e){var t=e.getTarget("."+this.confirmButtonClass,5,!0).data("token");return e.preventDefault(),this.fireEvent(o.SubscribeView.EVENT_CONFIRM_BUITON_CLICK,{token:t}),this},onLoginButtonClick:function(e){return e.preventDefault(),this.fireEvent(o.SubscribeView.EVENT_LOGIN_BUITON_CLICK,this),this.removeTooltip(),this},onSignUpButtonClick:function(e){return e.preventDefault(),this.fireEvent(o.SubscribeView.EVENT_SIGNUP_BUITON_CLICK,this),this.removeTooltip(),this},showGetCreditsTooltip:function(e){this.renderTooltip('<div class="get_credits_confirmation_tooltip"><a href="javascript:void(0)" class="protip-close close_btn"><span class="icon-close"></span></a><p>'+i.translate("Register your credit card to subscribe.")+'</p><a class="first_button" href="'+e+'" target="_blank">'+i.translate("Buy Credits")+"</a></div>")}})},function(e,t,n){var i=n(0),o=n(2),s=n(15);e.exports=function(){var e=function(e,t){return i.getUrl(e,{},{performerName:t})},t=function(e,t){return new Promise(function(n,i){s.request({method:t||"GET",url:e,scope:this,type:o.Chaos.Connection.TYPE_JSON,success:n,error:i,failure:i})})},n=function(){var e=new Date;return{date:r(e),timezone:e.getTimezoneOffset()/60,timestamp:e.getTime(),language:i.I18n.getLanguage()}},r=function(e){return e.getFullYear()+"."+(e.getMonth()+1)+"."+e.getDate()+"."+e.getHours()+"."+e.getMinutes()+"."+e.getSeconds()};return{getSubscribeType:function(n){return t(e("ChannelSubscriptionRouter/Router",n))},getLoginTooltip:function(n){return t(e("ChannelSubscribeLogin/Open",n))},getConfirmationTooltip:function(n){return t(e("ChannelSubscribeReBill/Open",n))},submitJoinChannel:function(t,r){return new Promise(function(a,l){s.request({method:"POST",url:e("ChannelSubscription/Subscribe",t),type:o.Chaos.Connection.TYPE_JSON,params:Object.assign(n(),{token:r}),scope:this,success:function(e){a(i.getPath(e,"json.data.transactionId"))},error:function(){l(o.SubscriptionService.ERROR)},failure:function(){l(o.SubscriptionService.FAILURE)}})})}}}()},function(e,t,n){var i=n(0),o=n(2),s=n(711),r=n(712),a=n(713),l=function(e,t){l.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(l,i.Component,{name:"SubscribePendingComponent",transactionId:null,performerName:null,init:function(e,t){l.superclass.init.call(this,e,t),this.addEvents(o.SubscribePendingComponent.EVENT_SUBSCRIBE_PENDING,o.SubscribePendingComponent.EVENT_SUBSCRIBED,o.SubscribePendingComponent.EVENT_SUBSCRIBE_FAILED),this.setController()},run:function(){this.controller.getSubscriptionStatus()},setController:function(){this.controller=new s({el:this.element,buttonView:this.buttonView,items:{view:{component:this.setView()},model:{component:this.setModel(),listeners:i.object([[o.SubscribePendingModel.EVENT_SUBSCRIBE_PENDING,"onSubscribePending"],[o.SubscribePendingModel.EVENT_CHANNEL_SUBSCRIBE_FAILED,"onSubscribeFailed"],[o.SubscribePendingModel.EVENT_SUBSCRIBED,"onSubscribed"],[o.SubscribePendingModel.EVENT_CHANNEL_SUBSCRIBE_BLOCKED,"onSubscribeBlocked"]])}}}),i.on([{element:this.controller,event:o.SubscribePendingController.EVENT_SUBSCRIBE_PENDING,handler:this.onSubscribePending},{element:this.controller,event:o.SubscribePendingController.EVENT_SUBSCRIBED,handler:this.onSubscribed},{element:this.controller,event:o.SubscribePendingController.EVENT_SUBSCRIBE_FAILED,handler:this.onSubscribeFailed}],this)},setView:function(){return new r({element:this.element,tooltipContainerEl:this.buttonView.getContainer()})},setModel:function(){return new a({transactionId:this.transactionId})},onSubscribePending:function(){this.fireEvent(o.SubscribePendingComponent.EVENT_SUBSCRIBE_PENDING,{performerName:this.performerName})},onSubscribed:function(){this.fireEvent(o.SubscribePendingComponent.EVENT_SUBSCRIBED,{performerName:this.performerName,buttonView:this.buttonView})},onSubscribeFailed:function(){this.fireEvent(o.SubscribePendingComponent.EVENT_SUBSCRIBE_FAILED,{performerName:this.performerName})}})},function(e,t,n){var i=n(0),o=n(2),s=function(e){s.superclass.constructor.call(this,e)};e.exports=Ext.extend(s,i.Controller,{name:"SubscribePendingController",init:function(e,t){s.superclass.init.call(this,e,t),this.addEvents(o.SubscribePendingController.EVENT_SUBSCRIBED,o.SubscribePendingController.EVENT_SUBSCRIBE_PENDING,o.SubscribePendingController.EVENT_SUBSCRIBE_FAILED)},getSubscriptionStatus:function(){this.model.getSubscriptionStatus()},onSubscribePending:function(){setTimeout(i.bind(function(){this.model.getSubscriptionStatus()},this),1e3),this.model.isPending()||(this.fireEvent(o.SubscribePendingController.EVENT_SUBSCRIBE_PENDING),this.view.renderInProgressTooltip())},onSubscribeFailed:function(){this.fireEvent(o.SubscribePendingController.EVENT_SUBSCRIBE_FAILED),this.view.renderFailedTooltip(),this.buttonView.hideLoader()},onSubscribeBlocked:function(){this.fireEvent(o.SubscribePendingController.EVENT_SUBSCRIBE_FAILED),this.view.renderBlockedTooltip(),this.buttonView.hideLoader()},onSubscribed:function(){this.view.removeTooltip(),this.fireEvent(o.SubscribePendingController.EVENT_SUBSCRIBED)}})},function(e,t,n){var i=n(0),o=n(167),s=function(e){s.superclass.constructor.call(this,e)};e.exports=Ext.extend(s,o,{name:"SubscribePendingView",tooltipContainerEl:null,renderInProgressTooltip:function(){this.renderTooltip("<div>"+i.translate("Transaction is being processed...")+"</div>")},renderFailedTooltip:function(){this.renderTooltip('<div class="join_confirm_block"><a href="javascript:void(0)" class="protip-close close_btn"><span class="icon-close"></span></a><p><i class="icon-alert"></i> '+i.translate("Transaction failed!")+"</p><h3>"+i.translate("Unfortunately your purchase could not be processed this time.")+"</h3></div>","SubscriptionFailed")},renderBlockedTooltip:function(){this.renderTooltip('<div class="join_confirm_block"><a href="javascript:void(0)" class="protip-close close_btn"><span class="icon-close"></span></a><p><i class="icon-alert"></i> '+i.translate("Transaction failed!")+"</p><h3>"+i.translate("Call your bank to allow online purchase or use other non-Turkish payment option.")+"</h3></div>","SubscriptionFailed")}})},function(e,t,n){var i=n(0),o=n(2),s=n(15),r=function(e,t){r.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(r,i.Model,{name:"SubscribePendingModel",_isPending:!1,init:function(){r.superclass.init.call(this),this.addEvents(o.SubscribePendingModel.EVENT_SUBSCRIBE_PENDING,o.SubscribePendingModel.EVENT_SUBSCRIBED,o.SubscribePendingModel.EVENT_CHANNEL_UNSUBSCRIBED,o.SubscribePendingModel.EVENT_CHANNEL_SUBSCRIBE_FAILED,o.SubscribePendingModel.EVENT_CHANNEL_SUBSCRIBE_BLOCKED,o.SubscribePendingModel.EVENT_GET_SUBSCRIPTION_TYPE_DONE,o.SubscribePendingModel.EVENT_GET_LOGIN_TOOLTIP_DONE,o.SubscribePendingModel.EVENT_GET_CONFIRMATION_TOOLTIP_DONE)},isPending:function(){return this._isPending},getSubscriptionStatus:function(){s.request({method:"GET",url:i.getUrl("ChannelSubscriptionStatus/Check",{},{transactionId:this.attributes.transactionId}),type:o.Chaos.Connection.TYPE_JSON,scope:this,success:this._onGetSubscriptionStatusSuccess,error:this._onGetSubscriptionStatusError,failure:this._onGetSubscriptionStatusError})},_onGetSubscriptionStatusSuccess:function(e){switch(i.getPath(e,"json.data.status")){case"failed":this.fireEvent(o.SubscribePendingModel.EVENT_CHANNEL_SUBSCRIBE_FAILED,{response:e,transactionId:this.attributes.transactionId}),this._isPending=!1;break;case"pending":case"in_progress":this.fireEvent(o.SubscribePendingModel.EVENT_SUBSCRIBE_PENDING,{response:e,transactionId:this.attributes.transactionId}),this._isPending=!0;break;case"blocked":this.fireEvent(o.SubscribePendingModel.EVENT_CHANNEL_SUBSCRIBE_BLOCKED,{response:e,transactionId:this.attributes.transactionId}),this._isPending=!1;break;case"success":default:this.fireEvent(o.SubscribePendingModel.EVENT_SUBSCRIBED,{response:e,transactionId:this.attributes.transactionId}),this._isPending=!1}},_onGetSubscriptionStatusError:function(e){this.fireEvent(o.SubscribePendingModel.EVENT_CHANNEL_SUBSCRIBE_FAILED,e),this._isPending=!1}})},function(e,t,n){var i=n(0),o=n(2),s=n(715),r=n(716),a=n(717),l=function(e,t){l.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(l,i.Component,{name:"RenewSubscriptionComponent",controllerClass:s,viewClass:r,modelClass:a,performerId:null,performerName:null,init:function(e,t){l.superclass.init.call(this,e,t),this.setController().getConfirmationTooltip()},setController:function(){return this.controller instanceof this.controllerClass||(this.controller=new this.controllerClass({buttonView:this.buttonView,items:{view:{component:new this.viewClass({id:this.element.id,tooltipContainerEl:this.buttonView.getContainer()}),listeners:{"confirm-button-click":"onConfirmButtonClick"}},model:this.getModelConfig()}}),i.on([{element:this.controller,event:o[this.controllerClass.prototype.name].SEND_CONFIRMATION_SUCCESS,handler:this.onSendConfirmationSuccess}],this)),this.controller},getModelConfig:function(){return{component:new this.modelClass({performerName:this.buttonModel.getPerformerName()},{performerName:this.buttonModel.getPerformerName()}),listeners:{"get-confirmation-tooltip-success":"onGetTooltipSuccess","get-confirmation-tooltip-error":"onGetTooltipError",error:"onGetTooltipError",failure:"onGetTooltipError","send-confirmation-success":"onSendConfirmationSuccess","send-confirmation-error":"onSendConfirmationError"}}},onSendConfirmationSuccess:function(e){i.fireEvent(o.RenewSubscriptionComponent.GLOBALEVENT_SEND_CONFIRMATION_SUCCESS,{performerName:e.performerName})},destroy:function(){this.controller.destroy(),l.superclass.destroy.call(this)}})},function(e,t,n){var i=n(0),o=n(2),s=function(e,t){s.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(s,i.Controller,{name:"RenewSubscriptionController",init:function(e,t){s.superclass.init.call(this,e,t),this.addEvents(o.RenewSubscriptionController.SEND_CONFIRMATION_SUCCESS,o.RenewSubscriptionController.SEND_CONFIRMATION_ERROR)},onConfirmButtonClick:function(){this.buttonView.displayLoader(),this.view.removeTooltip(),this.model.sendConfirmation()},onGetTooltipError:function(){this.buttonView.hideLoader(),this.view.showErrorTooltip()},onSendConfirmationSuccess:function(){this.fireEvent(o.RenewSubscriptionController.SEND_CONFIRMATION_SUCCESS,{performerName:this.model.getPerformerName()}),this.buttonView.hideLoader(),this.view.removeTooltip()},getConfirmationTooltip:function(){return this.buttonView.displayLoader(),this.model.getConfirmationTooltip(),this},onGetTooltipSuccess:function(e){this.view.renderTooltip(e.json.data.content),this.buttonView.hideLoader()},onSendConfirmationError:function(){this.view.showErrorTooltip(),this.buttonView.hideLoader()},destroy:function(){this.view.removeTooltip(),s.superclass.destroy.call(this)}})},function(e,t,n){var i=n(0),o=n(2),s=n(167),r=function(e){r.superclass.constructor.call(this,e)};e.exports=Ext.extend(r,s,{name:"RenewSubscriptionView",confirmButtonClass:"renew_confirm_button",tooltipContainerEl:null,init:function(e){r.superclass.init.call(this,e),this.addEvents(o.RenewSubscriptionView.EVENT_CONFIRM_BUITON_CLICK)},onConfirmButtonClick:function(e){return e.preventDefault(),this.fireEvent(o.RenewSubscriptionView.EVENT_CONFIRM_BUITON_CLICK,this),i.fireEvent(o.TooltipView.EVENT_HIDE_TOOLTIP,this._tooltipContainer),this}})},function(e,t,n){var i=n(0),o=n(2),s=n(15),r=function(e,t){r.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(r,i.Model,{name:"RenewSubscriptionModel",init:function(){r.superclass.init.call(this),this.addEvents(o.RenewSubscriptionModel.EVENT_SEND_CONFIRMATION_SUCCESS,o.RenewSubscriptionModel.EVENT_SEND_CONFIRMATION_ERROR,o.RenewSubscriptionModel.EVENT_GET_CONFIRMATION_TOOLTIP_ERROR)},getPerformerName:function(){return this.attributes.performerName},getConfirmationTooltipUrl:function(){return i.getUrl("ChannelSubscriptionRenew/GetOverlay",{},{performerName:this.attributes.performerName})},getSendConfirmationUrl:function(){return i.getUrl("ChannelSubscriptionRenew/Renew",{},{performerName:this.attributes.performerName})},getConfirmationTooltip:function(){s.request({method:"GET",type:o.Chaos.Connection.TYPE_JSON,scope:this,url:this.getConfirmationTooltipUrl(),success:this.onGetConfirmationTooltipSuccess,error:this.onGetConfirmationTooltipError,failure:this.onGetConfirmationTooltipError})},onGetConfirmationTooltipSuccess:function(e){this.fireEvent("get-confirmation-tooltip-success",e)},onGetConfirmationTooltipError:function(e){this.fireEvent(o.RenewSubscriptionModel.EVENT_GET_CONFIRMATION_TOOLTIP_ERROR,e)},sendConfirmation:function(){s.request({method:"POST",url:this.getSendConfirmationUrl(),type:o.Chaos.Connection.TYPE_JSON,scope:this,success:this.onSendConfirmationSuccess,error:this.onSendConfirmationError,failure:this.onSendConfirmationError})},onSendConfirmationSuccess:function(e){this.fireEvent(o.RenewSubscriptionModel.EVENT_SEND_CONFIRMATION_SUCCESS,e)},onSendConfirmationError:function(){this.fireEvent(o.RenewSubscriptionModel.EVENT_SEND_CONFIRMATION_ERROR)}})},function(e,t,n){var i=n(0),o=n(2),s=n(15),r=function(e,t){r.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(r,i.Component,{name:"ContentManagerModel",getFreeContentUrl:"ChannelFreeOnlyWall/Get",getPremiumContentUrl:"ChannelPremiumOnlyWall/Get",getWallContentUrl:"ChannelWall/Get",nextFreeContentUrl:"ChannelFreeOnlyWall/Next",nextPremiumContentUrl:"ChannelPremiumOnlyWall/Next",nextWallContentUrl:"ChannelWall/Next",freeContent:"free",premiumContent:"premium",init:function(e,t){r.superclass.init.call(this,e,t),this.addEvents(o.ContentManagerModel.EVENT_GET_CONTENT_SUCCESS,o.ContentManagerModel.EVENT_GET_CONTENT_ERROR)},getContent:function(e){return e.performerName||(e.performerName=i.Config.get("performerNick")),this._getContent(e),this},_getContent:function(e){try{var t=this.setContentUrl(e)}catch(e){throw"GetUrl error catched in "+this.name+': "'+e+'"'}this._runningAjax=s.request({url:t,method:"post",type:o.Chaos.Connection.TYPE_JSON,params:e,scope:this,success:this._getContentSuccess,error:this._getContentError,failure:this._getContentError})},setContentUrl:function(e){if(e.showMore)switch(e.contentType){case this.freeContent:return i.getUrl(this.nextFreeContentUrl,e);case this.premiumContent:return i.getUrl(this.nextPremiumContentUrl,e);default:return i.getUrl(this.nextWallContentUrl,e)}switch(e.contentType){case this.freeContent:return i.getUrl(this.getFreeContentUrl,e);case this.premiumContent:return i.getUrl(this.getPremiumContentUrl,e);default:return i.getUrl(this.getWallContentUrl,e)}},abortAjax:function(){this._runningAjax&&this._runningAjax.tId&&(s.abort(this._runningAjax.tId),delete this._runningAjax)},_getContentSuccess:function(e,t){delete this._runningAjax,this.fireEvent(o.ContentManagerModel.EVENT_GET_CONTENT_SUCCESS,{scope:this,response:e,showMore:t.params.showMore})},_getContentError:function(e){delete this._runningAjax,this.fireEvent(o.ContentManagerModel.EVENT_GET_CONTENT_ERROR,{scope:this,response:e})}})},function(e,t,n){var i=n(0),o=n(2),s=n(11),r=n(720),a=n(721),l=n(722),c=n(723),h=n(14),u=n(724),d=function(e,t){d.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(d,i.Component,{name:o.BiopageContentManagerComponent.NAME,containerId:"container",bioPageContainerId:"inner_container",bioOverlayContainerId:"freechat_container",hasBioPage:!0,wallId:"biopage_wall",biopagePerfimgBoxId:"biopage_perfimg_box",biopagePadlockImgId:"members_only_padlock_img",padlockBlockIconCls:"padlock_icon_block",navigationContainerId:"biopage_gallery_navigation_container",hiddenPerfInputId:"perfId",_biopagePerfImgBoxEl:void 0,biopageImageCls:"biopage_thumbnail_image",snapshotBlockIconCls:"snapshot_icon_block",isOverlay:!1,_bioPageThumbnailCarouselView:void 0,getBioPageContentRoute:"ChatBioPage/Get",getBioOverlayContentRoute:"ChatBioPage/GetDetails",biopagePerformerImageContainerId:"biopage_perfimg_container",imageThumbnailCls:"biopage_thumbnail",becomePremiumMemberOverlayTooltipCls:"open_signup_overlay",init:function(e,t){i.addEvents(o.BiopageContentManagerComponent.GLOBALEVENT_GET_CONTENT_SUCCESS,o.BiopageContentManagerComponent.GLOBALEVENT_BIOPAGE_CONTENT_READY),d.superclass.init.call(this,e,t)},getContent:function(){this.getBiopageContentManagerController().getContent()},removeContent:function(){this.getBiopageContentManagerController().removeContent(),this.fireEvent(o.BiopageContentManagerComponent.GET_CONTENT_ERROR)},onContentReady:function(){this.setupModelPage(),i.fireEvent(o.BiopageContentManagerComponent.GLOBALEVENT_BIOPAGE_CONTENT_READY,{scope:this})},setupModelPage:function(){this.wallEl=Ext.get(this.wallId),this.setupBiopage(),this.setPerformerWall(),this.savePerformerName()},resetModelPage:function(){this.removeContent(),this.getContent(),this._setBiopageContentManagerController(),this.reInitPerformerWall()},setPerformerWall:function(){Ext.fly(this.wallId)&&(this.wall=new u(this.wallId,{}))},setupBiopage:function(){this.hasBioPage&&this.wallEl&&(this.onAddBioPageGalleryImageEvents(),i.on(this.wallEl,"click",this.onBecomePremiumMemberOverlayTooltipClick,this,{delegate:"."+this.becomePremiumMemberOverlayTooltipCls}),Ext.fly(this.navigationContainerId)&&this._setBioPageThumbnailCarouselView())},openSignUpOrPayment:function(e){e.preventDefault(),h.isLoggedIn()?s.navigate("payment",{trigger:!0,preventNavigateBack:!1}):s.navigate("signup",{trigger:!0,preventNavigateBack:!1})},reInitPerformerWall:function(){this.wall&&this.wall.destroy(),Ext.fly(this.wallId)&&(this.wall=new u(this.wallId,{}))},onAddBioPageGalleryImageEvents:function(){this._biopageGalleryImageEl=Ext.get(this.biopagePerfimgBoxId),this._biopageGalleryImageEl&&i.on(this._biopageGalleryImageEl,"click",this.onOpenGalleryClick,this,{delegate:"."+this.imageThumbnailCls}),this._biopageGalleryPadlockImageEl=Ext.get(this.biopagePadlockImgId),this._biopageGalleryPadlockImageEl&&i.on(this._biopageGalleryPadlockImageEl,"click",this.onGalleryPadlockClick,this)},onOpenGalleryClick:function(e){e.preventDefault();var t,n=e.target;this.setGalleryClickedImageTarget(n),t=this.getClickedImagesIndex(),i.Broadcaster.on(o.ModalComponent.GLOBALEVENT_MODAL_OPENED,this.onModalOpened,this),this.isPadlockClick(n)||s.navigate("imagegallery/"+t+"/"+this.getClickedImagesParentId(),{trigger:!0,preventNavigateBack:!0})},onModalOpened:function(e){e.scope.name===o.ImageGalleryModalComponent.NAME&&(i.Broadcaster.un(o.ModalComponent.GLOBALEVENT_MODAL_OPENED,this.onModalOpened,this),i.fireEvent(o.BiopageContentManagerComponent.GLOBALEVENT_BIOPAGE_CONTENT_READY,{scope:this}))},onBecomePremiumMemberOverlayTooltipClick:function(e){e.preventDefault(),this.openSignUpOrPayment(e)},isPadlockClick:function(e){var t=Ext.get(e),n=t.parent().hasClass(this.padlockBlockIconCls);return this._biopageGalleryPadlockImageEl&&n||this._biopageGalleryPadlockImageEl&&e===this._biopageGalleryPadlockImageEl.dom},setGalleryClickedImageTarget:function(e){this._galleryClickedImageTarget=e},getGalleryClickedImageTarget:function(){return this._galleryClickedImageTarget},getBiopageImageArray:function(){return this._biopagePerfImgBoxEl=Ext.get(this.biopagePerfimgBoxId),this._biopagePerfImgBoxEl.select("."+this.biopageImageCls)},getClickedImagesIndex:function(){var e=this.getGalleryClickedImageTarget(),t=this.getSnapShotIconBlock();return this.isSnapshotClick(e)&&(e=t.select("."+this.biopageImageCls).item(0).dom),this.getBiopageImageArray().indexOf(e)+1},isSnapshotClick:function(e){var t=this.getSnapShotIconBlock(),n=Ext.get(e),i=n.parent().hasClass(this.snapshotBlockIconCls);return t&&i||t&&e===t.dom},savePerformerName:function(){Ext.fly(this.hiddenPerfInputId)&&(this._perfName=Ext.get(this.hiddenPerfInputId).dom.value)},getClickedImagesParentId:function(){var e,t=this.getGalleryClickedImageTarget(),n=this.getSnapShotIconBlock();return e=t.parentNode.id,n&&t===n.dom&&(e=t.id),e},getSnapShotIconBlock:function(){return Ext.fly(this.biopagePerfimgBoxId).select("."+this.snapshotBlockIconCls).item(0)},onGalleryPadlockClick:function(e){e.preventDefault(),this.openSignUpOrPayment(e)},_setBioPageThumbnailCarouselView:function(){return this._bioPageThumbnailCarouselView&&(this._bioPageThumbnailCarouselView.unbind(),delete this._bioPageThumbnailCarouselView),this._bioPageThumbnailCarouselView=new c(this.biopagePerformerImageContainerId,{}),this._bioPageThumbnailCarouselView},getBiopageContentManagerController:function(){return this._setBiopageContentManagerController()},_setBiopageContentManagerController:function(){return this._biopageContentManagerController&&(this._biopageContentManagerController.destroy(),delete this._biopageContentManagerController),this._biopageContentManagerController=new r({items:{BiopageContentManagerModel:{component:this._getBiopageContentManagerModel(),listeners:{"get-content-success":"onGetContentSuccess","get-content-error":"onGetContentError"}},BiopageContentManagerView:{component:this._getBiopageContentManagerView(),listeners:{"render-done":"onRenderDone"}}}}),this._biopageContentManagerController.on(o.BiopageContentManagerController.EVENT_RENDER_DONE,this.onContentReady,this),this._biopageContentManagerController},_getBiopageContentManagerModel:function(){var e=this.isOverlay?this.getBioOverlayContentRoute:this.getBioPageContentRoute;return this.model=new a(this.element,{getBioPageRoute:e})},_getBiopageContentManagerView:function(){var e=this.isOverlay?this.bioOverlayContainerId:this.bioPageContainerId;return new l(this.element,{containerId:e,isOverlay:this.isOverlay})},abortAjax:function(){this.model.abortAjax()},onPrivateStart:function(){this._biopageContentManagerController.onPrivateStart()},onPrivateEnd:function(){this._biopageContentManagerController.onPrivateEnd()},onCheckMyWallClicked:function(){this.getBiopageContentManagerController().scrollToBioPageTop()},onFirstBillComplete:function(){this.resetModelPage()},bind:function(){d.superclass.bind.call(this),i.Broadcaster.on(o.ModelContentComponent.PERFORMER_GALLERY_DOM_READY,this.onAddBioPageGalleryImageEvents,this),i.Broadcaster.on(o.ModelContentComponent.PERFORMER_WALL_DOM_READY,this.reInitPerformerWall,this),i.Broadcaster.on(o.FlashExternal.GLOBALEVENT_ON_CHECK_MY_WALL_CLICKED,this.onCheckMyWallClicked,this),i.Broadcaster.on(o.ChatPageComponentAbstract.GLOBALEVENT_PRIVATE_START,this.onPrivateStart,this),i.Broadcaster.on(o.ChatPageComponentAbstract.GLOBALEVENT_PRIVATE_END,this.onPrivateEnd,this),i.Broadcaster.on(o.FirstBillController.GLOBALEVENT_FIRSTBILL_COMPLETE,this.onFirstBillComplete,this),i.Broadcaster.on(o.FlashExternal.GLOBALEVENT_GET_PERFORMER_DETAILS,this.removeContent,this)},unbind:function(){d.superclass.unbind.call(this),i.Broadcaster.un(o.FlashExternal.GLOBALEVENT_ON_CHECK_MY_WALL_CLICKED,this.onCheckMyWallClicked,this),this._biopageContentManagerController&&(this._biopageContentManagerController.isBeingDestroyed=!0),i.Broadcaster.un(o.ModelContentComponent.PERFORMER_GALLERY_DOM_READY,this.onAddBioPageGalleryImageEvents,this),i.Broadcaster.un(o.ModelContentComponent.PERFORMER_WALL_DOM_READY,this.reInitPerformerWall,this),i.Broadcaster.un(o.ChatPageComponentAbstract.GLOBALEVENT_PRIVATE_START,this.onPrivateStart,this),i.Broadcaster.un(o.ChatPageComponentAbstract.GLOBALEVENT_PRIVATE_END,this.onPrivateEnd,this),i.Broadcaster.un(o.FirstBillController.GLOBALEVENT_FIRSTBILL_COMPLETE,this.onFirstBillComplete,this)}})},function(e,t,n){var i=n(0),o=n(2),s=(n(11),function(e,t){s.superclass.constructor.call(this,e,t)});e.exports=Ext.extend(s,i.Controller,{name:"BiopageContentManagerController",isBeingDestroyed:!1,init:function(e,t){s.superclass.init.call(this,e,t),this.addEvents(o.BiopageContentManagerController.EVENT_RENDER_DONE,o.BiopageContentManagerController.GLOBALEVENT_GET_CONTENT_SUCCESS)},getContent:function(){return this.BiopageContentManagerView.showLoader(!0),this.BiopageContentManagerModel.getContent(i.Config.get("performerNick")),this},removeContent:function(){this.BiopageContentManagerView.removeContent()},scrollToBioPageTop:function(){this.BiopageContentManagerView.scrollToBioPageTop()},onGetContentSuccess:function(e){if(i.fireEvent(o.BiopageContentManagerController.GLOBALEVENT_GET_CONTENT_SUCCESS,{scope:this}),!this.isBeingDestroyed){if(!e.response.json.data.content)throw"There is no HTML content to render.";this.BiopageContentManagerView.showLoader(!1),this.BiopageContentManagerView.renderContent(e.response.json.data.content)}},onGetContentError:function(){var e=i.getUrl("Error/Error404");document.location.replace(e)},onRenderDone:function(){this.fireEvent(o.BiopageContentManagerController.EVENT_RENDER_DONE)},onPrivateStart:function(){this.BiopageContentManagerView.showMask()},onPrivateEnd:function(){this.BiopageContentManagerView.hideMask()}})},function(e,t,n){var i=n(0),o=n(2),s=n(15),r=function(e,t){r.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(r,i.Component,{name:"BiopageContentManagerModel",getBioPageRoute:"ChatBioPage/Get",isOverlay:!1,init:function(e,t){r.superclass.init.call(this,e,t),this.addEvents(o.BiopageContentManagerModel.EVENT_GET_CONTENT_SUCCESS,o.BiopageContentManagerModel.EVENT_GET_CONTENT_ERROR)},_getContentUrl:function(e){var t;try{t=i.getUrl(this.getBioPageRoute,{performerNick:e})}catch(e){console.error("@JS ERROR in ",this.name,": ",e)}return t},getContent:function(e){if(!e)throw"Modelname must be given.";return this._runningAjax=s.request({url:this._getContentUrl(e),method:"GET",type:o.Chaos.Connection.TYPE_JSON,scope:this,success:function(e){this._getContentSuccess(e)},error:function(e){this._getContentError(e)},failure:function(e){this._getContentError(e)}}),this},_getContentSuccess:function(e){delete this._runningAjax,this.fireEvent(o.BiopageContentManagerModel.EVENT_GET_CONTENT_SUCCESS,{response:e})},_getContentError:function(e){delete this._runningAjax,this.fireEvent(o.BiopageContentManagerModel.EVENT_GET_CONTENT_ERROR,{response:e})},abortAjax:function(){this._runningAjax&&this._runningAjax.tId&&(s.abort(this._runningAjax.tId),delete this._runningAjax)}})},function(e,t,n){var i=n(2),o=n(3),s=n(166),r=function(e,t){r.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(r,s,{name:"BiopageContentManagerView",containerId:"inner_container",biopageContainerId:"biopage_container",_willingnessWrapperClass:".willingness_wrapper",isOverlay:!1,wallMarginInFullScreen:50,standAloneChatId:i.PageId.CHAT_PERFORMER,appletFullLayout:"full",init:function(e,t){r.superclass.init.call(this,e,t),this.addEvents(i.BiopageContentManagerView.EVENT_RENDER_DONE),this._containerEl=Ext.get(this.containerId)||this.element,this.biopagecontainerEl=Ext.get(this.biopageContainerId)},scrollToBioPageTop:function(){o.isChatPage()?this.scrollToElement(this.biopagecontainerEl):this.scrollToModalWall()},renderContent:function(e){return this.removeContent(),Ext.DomHelper.append(this._containerEl,e),this.fireEvent(i.BiopageContentManagerView.EVENT_RENDER_DONE),this},isAppletIsFullSized:function(){return Ext.get("chatblock").hasClass(this.appletFullLayout)},saveBiopageContainerEl:function(){this._biopageContainerEl=Ext.get(this.biopageContainerId)},removeContent:function(){this.saveBiopageContainerEl(),this._biopageContainerEl&&this._biopageContainerEl.remove()},showMask:function(){this._willingnessWrapperEl=this.element.select(this._willingnessWrapperClass).item(0),this._willingnessWrapperEl&&this._willingnessWrapperEl.addClass("masked")},hideMask:function(){this._willingnessWrapperEl&&this._willingnessWrapperEl.removeClass("masked")}})},function(e,t,n){var i=n(0),o=function(e,t){o.superclass.constructor.call(this,e,t)};e.exports=Ext.extend(o,i.Component,{name:"BioPageThumbnailCarouselView",carouselContainerId:"biopage_perfimg_box",ImageGalleryContainerCls:"perfimg_boxes_container",navigationContainerId:"biopage_gallery_navigation_container",sliderNavigatorCls:"slider_navigator",navigationNextButtonId:"navigation_right_button",navigationPrevButtonId:"navigation_left_button",sliderDotCls:"slider_dots ",imageThumbnailCls:"biopage_thumbnail",duration:.2,enableAnimation:!0,activeCls:"active",dotNavigationContainerCls:"gallery_slider",sliderNavigationCls:"slider_navigator",biopageThumbnailCarouselContainerCls:"biopage_thumbnail_carousel",maxPageIndex:void 0,_imageGalleryContainerSize:void 0,_imageGalleryContainerWidth:void 0,_imageGalleryContainerHeight:void 0,_currentPageIndex:0,init:function(e,t){this.sliderNavigationContainerEl=this.element.select("."+this.dotNavigationContainerCls).item(0),this.navigationContainerEl=Ext.get(this.navigationContainerId),this.carouselContainerEl=Ext.get(this.carouselContainerId),this.biopageThumbnailCarouselContainerEl=this.element.select("."+this.biopageThumbnailCarouselContainerCls).item(0),this.imageGalleryContainerItems=this.carouselContainerEl.select("."+this.ImageGalleryContainerCls),this.performerImagesBoxesContainerEl=this.imageGalleryContainerItems.item(0),this.performerImageBoxHeight=this.performerImagesBoxesContainerEl.getHeight(),this.thumbnailItems=this.carouselContainerEl.select("."+this.imageThumbnailCls),this.thumbnailHeight=this.thumbnailItems.item(0).getHeight(),this.navigationNextButtonEl=Ext.get(this.navigationNextButtonId),this.navigationPrevButtonEl=Ext.get(this.navigationPrevButtonId),o.superclass.init.call(this,e,t),this.initGallery()},getGalleryBoundaries:function(){this.sliderDotItems=this.element.select("."+this.sliderDotCls),this.maxPageIndex=this.getNumberOfPages(),this._imageGalleryContainerWidth=this.performerImagesBoxesContainerEl.getWidth(),this._imageGalleryContainerHeight=this.performerImagesBoxesContainerEl.getHeight()},initGallery:function(){this.getNumberOfRequiredContent(),this.updateNavigation(),this.setActiveClassForDotItem(),this.getGalleryBoundaries(),this.updateArrowNavigationDataValues(),this.refreshContent(),this.setCarouselContainerHeight(),this.removeEmptySlide(),this.setCarouselContainerElWidth(),this.animateThumbnailContainer()},updateNavigation:function(){var e=this.getNumberOfPages(),t="";this.removeDotNavigation();for(var n=0;n<e;n++)t+='<li class="'+this.sliderNavigationCls+" "+this.sliderDotCls+'" data-position="'+n+'" ></li>';this.sliderNavigationContainerEl.dom.innerHTML=t,this.updateArrowNavigationDataValues()},removeDotNavigation:function(){this.sliderNavigationContainerEl.dom.innerHTML=""},removeEmptySlide:function(){for(var e=this.element.select("."+this.ImageGalleryContainerCls),t=1;t<e.elements.length;t++){e.item(t).select("."+this.imageThumbnailCls).item(0)||e.item(t).remove()}},cleanUpDotClasses:function(){return this.sliderDotItems.removeClass(this.activeCls),this},onNavigationClick:function(e){e.preventDefault();var t=e.getTarget("."+this.sliderNavigatorCls,2,!0);this._currentPageIndex=parseInt(t.dom.getAttribute("data-position"),10),this.cleanUpDotClasses(),this.setActiveClassForDotItem(),this.updateArrowNavigationDataValues(),this.setCarouselContainerHeight(),this.animateThumbnailContainer()},setActiveClassForDotItem:function(){return this.sliderDotItems=this.element.select("."+this.sliderDotCls),this.sliderDotItems.item(this._currentPageIndex)||(this._currentPageIndex=this._currentPageIndex-1),this.sliderDotItems.item(this._currentPageIndex).addClass(this.activeCls),this},updateArrowNavigationDataValues:function(){var e=0===this._currentPageIndex?this.maxPageIndex-1:this._currentPageIndex-1,t=this._currentPageIndex===this.maxPageIndex-1?0:this._currentPageIndex+1;this.navigationPrevButtonEl.dom.setAttribute("data-position",e),this.navigationNextButtonEl.dom.setAttribute("data-position",t)},setCarouselContainerElWidth:function(){var e=this._imageGalleryContainerWidth*this.maxPageIndex+"px";this.carouselContainerEl.setStyle("width",e)},setCarouselContainerHeight:function(){var e=this.element.select("."+this.ImageGalleryContainerCls),t=this.getRowSize(e.item(this._currentPageIndex));this.biopageThumbnailCarouselContainerEl.setStyle("height",t*this.thumbnailHeight+"px")},getRowSize:function(e){var t=e.select("."+this.imageThumbnailCls).elements.length,n=this.requiredContentAmount.total/this.requiredContentAmount.row;return Math.ceil(t/n)},animateThumbnailContainer:function(){return TweenLite.to(this.carouselContainerEl.dom,this.duration,{css:{left:"-"+this._currentPageIndex*this._imageGalleryContainerWidth+"px"},onCompleteScope:this,onComplete:function(){this.enableAnimation=!0}}),this},getNumberOfPages:function(){return Math.ceil(this.thumbnailItems.elements.length/this.getNumberOfRequiredContent().total)},getNumberOfRequiredContent:function(){var e=this.performerImagesBoxesContainerEl.select("."+this.imageThumbnailCls).item(0),t=Math.floor(e.getWidth()),n=Math.floor(e.getHeight()),i=Math.floor(this.performerImagesBoxesContainerEl.getWidth()),o=Math.floor(this.performerImageBoxHeight);return this.requiredContentAmount={row:Math.floor(o/n),column:Math.floor(i/t),total:Math.floor(i/t)*Math.floor(o/n)},this.requiredContentAmount},refreshContent:function(){for(var e=this.element.select("."+this.ImageGalleryContainerCls),t=0,n=0;n<this.thumbnailItems.elements.length;n++){if(n%this.requiredContentAmount.total==0&&