{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./app/javascript/packs/bookingPage/setTheMessagesColors.js","webpack:///./app/javascript/packs/userShowPage/setHeightOfArtistPageComponents.js","webpack:///./app/javascript/packs/userShowPage/djName.js","webpack:///./app/javascript/packs/userShowPage/iframesHeight.js","webpack:///./app/javascript/packs/homePage/homeFlex.js","webpack:///./app/javascript/packs/message-packs/setEditOptions.js","webpack:///./node_modules/@rails/actioncable/app/assets/javascripts/action_cable.js","webpack:///./app/javascript/packs/userShowPage/toggleArtistPhotoForm.js","webpack:///./app/javascript/packs/message-packs/openEditForm.js","webpack:///./app/javascript/packs/bookingPage/setBookingDetails.js","webpack:///./app/javascript/packs/bookingPage/setThePrice.js","webpack:///./app/javascript/packs/userShowPage/userFormToggle.js","webpack:///./app/javascript/packs/userShowPage/bookingFormToggle.js","webpack:///./app/javascript/packs/userShowPage/socialMediaWidth.js","webpack:///./app/javascript/packs/userShowPage/djChangeMainPhoto.js","webpack:///./app/javascript/packs/userShowPage/onResizeBehaviour.js","webpack:///./app/javascript/packs/message-packs/messageHistory.js","webpack:///./app/javascript/packs/editCompanyInfo.js","webpack:///./app/javascript/channels/consumer.js","webpack:///./app/javascript/channels/chatroom_channel.js","webpack:///./app/javascript/packs/custom.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","styleLeft","el","style","backgroundColor","color","alignSelf","setAttribute","styleRight","setTheMessagesColors","messages","Array","from","document","getElementsByClassName","forEach","preMessage","elAuthorId","attributes","elPreAuthorId","setHeightOfArtistPhotos","getElementById","photos","mainPhoto","bioSection","djProfile","height","offsetWidth","maxHeight","offsetHeight","setDjNameFontSize","djName","items","itemsChange","size","it","fontSize","window","innerWidth","innerText","length","setIframesHeight","listenHeader","homeFlex","splitStyle","container","item","removables","remove","itemsOnRow","Math","floor","getComputedStyle","margin","split","parseInt","colomns","ceil","itemsToAdd","newDiv","createElement","classList","add","boxShadow","appendChild","setEditOptions","id","message","editButton","historyButton","invisibleButton","visibleButton","destroyButton","adapters","logger","self","console","WebSocket","log","this","enabled","_adapters$logger","_len","arguments","_key","push","Date","now","apply","concat","_typeof","iterator","obj","constructor","classCallCheck","instance","Constructor","TypeError","createClass","defineProperties","target","props","descriptor","configurable","writable","protoProps","staticProps","getTime","secondsSince","time","clamp","number","min","max","ConnectionMonitor","connection","visibilityDidChange","reconnectAttempts","start","isRunning","startedAt","stoppedAt","startPolling","addEventListener","getPollInterval","stop","stopPolling","removeEventListener","recordPing","pingedAt","recordConnect","disconnectedAt","recordDisconnect","poll","clearTimeout","pollTimeout","_this","setTimeout","reconnectIfStale","_constructor$pollInte","pollInterval","interval","multiplier","round","connectionIsStale","staleThreshold","disconnectedRecently","reopen","_this2","visibilityState","isOpen","INTERNAL","message_types","welcome","disconnect","ping","confirmation","rejection","disconnect_reasons","unauthorized","invalid_request","server_restart","default_mount_path","protocols","supportedProtocols","slice","indexOf","Connection","consumer","open","subscriptions","monitor","disconnected","send","data","webSocket","JSON","stringify","isActive","getState","uninstallEventHandlers","url","installEventHandlers","close","undefined","allowReconnect","error","reopenDelay","getProtocol","protocol","isState","isProtocolSupported","states","state","readyState","toLowerCase","eventName","events","handler","event","_JSON$parse","parse","identifier","reason","reconnect","type","reload","notify","reject","notifyAll","willAttemptReconnect","extend","properties","Subscription","params","mixin","perform","action","command","unsubscribe","Subscriptions","channelName","channel","subscription","ensureActiveConnection","sendCommand","forget","findAll","map","filter","callbackName","_this3","args","_len2","_key2","Consumer","_url","connect","createWebSocketURL","test","a","href","replace","createConsumer","getConfig","element","head","querySelector","getAttribute","factory","toggleArtistPhotoForm","openForm","closeForm","photoForm","display","toggleArtistPhotoEditForm","openEditForms","editForms","closeForms","ef","efi","openEditMessageForm","editMessageForm","closeEditMessageForm","openEditForm","closeEditForm","setBookingDetails","updateBtn","bookingExtraForm","onclick","setTheBookingPrice","setBtn","setForm","closeBtn","userFormToggle","userBtn","userForm","userCloseBtn","bookingFormToggle","bookingBtn","bookingForm","bookingCloseBtn","socialMediaWidth","smWidth","bioCont","width","innerHTML","djChangeMainPhoto","images","img","src","onResizeBehaviour","onresize","messageHistory","histories","infos","forms","formBtns","closingBtns","editCompanyInfo","initChatroomCable","messagesContainer","findId","incomingData","join","dataset","chatroomId","received","querySelectorAll","outerHTML","includes","insertAdjacentHTML"],"mappings":"aACE,IAAIA,EAAmB,CAAC,EAGxB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,CAAC,GAUX,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,OACf,CAIAF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,GAEhE,EAGAZ,EAAoBkB,EAAI,SAAShB,GACX,qBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,GACvD,EAOArB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,kBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MAGvB,GAFA1B,EAAoBkB,EAAEO,GACtBX,OAAOC,eAAeU,EAAI,UAAW,C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6K,EAAMvU,GAAG4F,UAAUC,IAAI,SAAS,GAAC,IAEvG,C,oGCLeqL,6B,eCATyD,EAAoB,WACxB,IAAMC,EAAoBhS,SAASQ,eAAe,qBAC5CyR,EAAS,SAACC,GAAY,OAAyE,EAApEA,EAAazP,MAAM,KAAK0P,KAAK,IAAI1P,MAAM,KAAK,GAAG4L,QAAQ,MAAO,GAAO,EACtG,GAAI2D,EAAmB,CACrB,IAAM3O,EAAK2O,EAAkBI,QAAQC,WACrC1I,EAASE,cAAcnL,OAAO,CAAEuO,QAAS,kBAAmB5J,GAAIA,GAAM,CACpEiP,SAAQ,SAACrI,GACP,IAAM5G,EAAK4O,EAAOhI,GACZ3G,EAAUtD,SAASQ,eAAe,WAAD,OAAY6C,IAClCvD,MAAMC,KAAKC,SAASuS,iBAAiB,gCACjChF,KAAI,SAAAlO,GAAE,OAAI4S,EAAO5S,EAAGmT,UAAU,IAC3CC,SAASpP,IACfC,EAAQ2N,UAAYhH,EAAKxH,MAAM,MAAM,GACrCW,yBAAeC,KAEf2O,EAAkBU,mBAAmB,YAAazI,GAClD7G,yBAAeC,IAEjBzD,gCACF,GAEJ,CACF,C,2CC3BA,8IAkBAI,SAAS8G,iBAAiB,mBAAmB,WAC3CwK,8BACAjB,2BACAI,8BACAI,6BACA5P,8BACAiQ,8BACA3Q,oCACAuB,qBACAF,6BACAqO,+BACArQ,iCACAmS,8BACAlC,8BACAhB,kCACAK,sCACAS,yBACAC,0BACA4B,2BACAM,mBACF,G","file":"js/custom-38727d19565e4c7decb8.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/packs/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 39);\n","const styleLeft = (el) => {\n el.style.backgroundColor = '#383637';\n el.style.color = '#706e6f';\n el.style.alignSelf = 'flex-start';\n el.setAttribute('setStyle', 'left')\n}\nconst styleRight = (el) => {\n el.style.backgroundColor = '#706e6f';\n el.style.color = '#383637';\n el.style.alignSelf = 'flex-end';\n el.setAttribute('setStyle', 'right')\n}\n\nconst setTheMessagesColors = () => {\n const messages = Array.from(document.getElementsByClassName('message'));\n messages.forEach((el, i) => {\n const preMessage = messages[i - 1];\n const elAuthorId = el.attributes[2].value;\n const elPreAuthorId = i != 0 ? messages[i - 1].attributes[2].value : null\n if (i % 2 === 0) {\n styleLeft(el);\n } else {\n styleRight(el);\n }\n if (elAuthorId === elPreAuthorId) {\n preMessage.attributes[8].value === 'left' ? styleLeft(el) : styleRight(el);\n } else if (elAuthorId !== elPreAuthorId) {\n if (elPreAuthorId) {\n preMessage.attributes[8].value === 'left' ? styleRight(el) : styleLeft(el);\n } else {\n styleLeft(el)\n }\n }\n });\n};\n\nexport { setTheMessagesColors };","const setHeightOfArtistPhotos = () => {\n // setTimeout(\n // () => {\n if (document.getElementsByClassName('dj-photo') && document.getElementById('dj-main-photo')) {\n const photos = Array.from(document.getElementsByClassName('dj-photo'));\n const mainPhoto = document.getElementById('dj-main-photo');\n const bioSection = document.getElementById('dj-profile-bio');\n const djProfile = document.getElementsByClassName('dj-profile__photos')[0];\n\n photos.forEach(p => p.style.height = `${p.offsetWidth}px`);\n mainPhoto.style.height = `${mainPhoto.offsetWidth * 1.4166}px`;\n bioSection.style.maxHeight = `${djProfile.offsetHeight}px`;\n }\n // }, 400\n // ) \n}\n\n\nexport { setHeightOfArtistPhotos };","const setDjNameFontSize = () => {\n if (document.getElementById('dj-name')) {\n const djName = document.getElementById('dj-name');\n const listen = document.getElementById('dj-listen-header');\n const event = document.getElementById('dj-bookings-header');\n\n const items = [djName, listen, event];\n\n const itemsChange = (size) => items.forEach(it => it ? it.style.fontSize = size : null);\n\n if (window.innerWidth < 577) {\n if (djName.innerText.length <= 8) {\n itemsChange('40px');\n } else if (djName.innerText.length > 8) {\n itemsChange('36px');\n }\n } else if (window.innerWidth > 577 && window.innerWidth <= 900) {\n if (djName.innerText.length <= 10) {\n itemsChange('70px');\n } else if (djName.innerText.length > 10) {\n itemsChange('60px');\n }\n } else if (window.innerWidth > 900) {\n if (djName.innerText.length <= 10) {\n itemsChange('80px');\n } else if (djName.innerText.length > 10) {\n itemsChange('70px');\n }\n }\n }\n }\n\n\nexport { setDjNameFontSize };","const setIframesHeight = () => {\n if (window.innerWidth > 577) {\n if (document.getElementById('dj-listen-header')) {\n const listenHeader = document.getElementById('dj-listen-header');\n const listenItems = Array.from(document.getElementsByClassName('dj-listen-item'));\n listenItems.forEach(el => el.style.height = `${listenHeader.offsetHeight}px`);\n }\n }\n}\n\nexport { setIframesHeight };","const homeFlex = () => {\n const container = document.getElementsByClassName('home-page__djs-container')[0];\n const items = document.getElementsByClassName('home-page__dj');\n const item = items[0];\n const itemMargin = () => {\n const splitStyle = getComputedStyle(item).margin.split(' ');\n return parseInt(splitStyle[splitStyle.length - 1]) * 2\n }\n\n if (container && items ) {\n const removables = Array.from(document.getElementsByClassName('removable'));\n if (removables && removables.length > 0) {\n removables.forEach(el => el.remove())\n }\n const itemsOnRow = Math.floor(container.offsetWidth / (item.offsetWidth + itemMargin()));\n const colomns = Math.ceil(items.length / itemsOnRow);\n const itemsToAdd = (colomns * itemsOnRow) % items.length;\n\n if (colomns <= 1) {\n return\n } else {\n let i = 1;\n while (i <= itemsToAdd) {\n let newDiv = document.createElement('div');\n newDiv.classList.add('home-page__dj');\n newDiv.classList.add('removable');\n newDiv.style.boxShadow = 'none';\n container.appendChild(newDiv);\n i++\n }\n }\n }\n }\n\nexport { homeFlex };","const setEditOptions = (id) => {\n const message = document.getElementById(`message-${id}`);\n // const author = message.getAttribute('data-author');\n // const currentUser = document.getElementById('booking-container').getAttribute('data-current_user');\n // const isUserAdmin = document.getElementById('booking-container').getAttribute('data-is_admin');\n // const isHiddenByAdmin = message.getAttribute('data-hidden_by_admin');\n // const isInvisible = message.getAttribute('data-invisible');\n\n const editButton = message.getElementsByClassName('fa-edit')[0];\n const historyButton = message.getElementsByClassName('fa-history')[0];\n const invisibleButton = message.getElementsByClassName('fa-eye-slash')[0];\n const visibleButton = message.getElementsByClassName('fa-eye')[0];\n const destroyButton = message.getElementsByClassName('fa-trash-alt')[0];\n\n\n\n editButton ? editButton.setAttribute('hidden', '') : null;\n historyButton ? historyButton.setAttribute('hidden', '') : null;\n destroyButton ? destroyButton.setAttribute('hidden', '') : null;\n invisibleButton ? invisibleButton.setAttribute('hidden', '') : null;\n visibleButton ? visibleButton.setAttribute('hidden', '') : null;\n\n}\n\nexport {setEditOptions};","(function(global, factory) {\n typeof exports === \"object\" && typeof module !== \"undefined\" ? factory(exports) : typeof define === \"function\" && define.amd ? define([ \"exports\" ], factory) : factory(global.ActionCable = {});\n})(this, function(exports) {\n \"use strict\";\n var adapters = {\n logger: self.console,\n WebSocket: self.WebSocket\n };\n var logger = {\n log: function log() {\n if (this.enabled) {\n var _adapters$logger;\n for (var _len = arguments.length, messages = Array(_len), _key = 0; _key < _len; _key++) {\n messages[_key] = arguments[_key];\n }\n messages.push(Date.now());\n (_adapters$logger = adapters.logger).log.apply(_adapters$logger, [ \"[ActionCable]\" ].concat(messages));\n }\n }\n };\n var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function(obj) {\n return typeof obj;\n } : function(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n var classCallCheck = function(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n };\n var createClass = function() {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n return function(Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n }();\n var now = function now() {\n return new Date().getTime();\n };\n var secondsSince = function secondsSince(time) {\n return (now() - time) / 1e3;\n };\n var clamp = function clamp(number, min, max) {\n return Math.max(min, Math.min(max, number));\n };\n var ConnectionMonitor = function() {\n function ConnectionMonitor(connection) {\n classCallCheck(this, ConnectionMonitor);\n this.visibilityDidChange = this.visibilityDidChange.bind(this);\n this.connection = connection;\n this.reconnectAttempts = 0;\n }\n ConnectionMonitor.prototype.start = function start() {\n if (!this.isRunning()) {\n this.startedAt = now();\n delete this.stoppedAt;\n this.startPolling();\n addEventListener(\"visibilitychange\", this.visibilityDidChange);\n logger.log(\"ConnectionMonitor started. pollInterval = \" + this.getPollInterval() + \" ms\");\n }\n };\n ConnectionMonitor.prototype.stop = function stop() {\n if (this.isRunning()) {\n this.stoppedAt = now();\n this.stopPolling();\n removeEventListener(\"visibilitychange\", this.visibilityDidChange);\n logger.log(\"ConnectionMonitor stopped\");\n }\n };\n ConnectionMonitor.prototype.isRunning = function isRunning() {\n return this.startedAt && !this.stoppedAt;\n };\n ConnectionMonitor.prototype.recordPing = function recordPing() {\n this.pingedAt = now();\n };\n ConnectionMonitor.prototype.recordConnect = function recordConnect() {\n this.reconnectAttempts = 0;\n this.recordPing();\n delete this.disconnectedAt;\n logger.log(\"ConnectionMonitor recorded connect\");\n };\n ConnectionMonitor.prototype.recordDisconnect = function recordDisconnect() {\n this.disconnectedAt = now();\n logger.log(\"ConnectionMonitor recorded disconnect\");\n };\n ConnectionMonitor.prototype.startPolling = function startPolling() {\n this.stopPolling();\n this.poll();\n };\n ConnectionMonitor.prototype.stopPolling = function stopPolling() {\n clearTimeout(this.pollTimeout);\n };\n ConnectionMonitor.prototype.poll = function poll() {\n var _this = this;\n this.pollTimeout = setTimeout(function() {\n _this.reconnectIfStale();\n _this.poll();\n }, this.getPollInterval());\n };\n ConnectionMonitor.prototype.getPollInterval = function getPollInterval() {\n var _constructor$pollInte = this.constructor.pollInterval, min = _constructor$pollInte.min, max = _constructor$pollInte.max, multiplier = _constructor$pollInte.multiplier;\n var interval = multiplier * Math.log(this.reconnectAttempts + 1);\n return Math.round(clamp(interval, min, max) * 1e3);\n };\n ConnectionMonitor.prototype.reconnectIfStale = function reconnectIfStale() {\n if (this.connectionIsStale()) {\n logger.log(\"ConnectionMonitor detected stale connection. reconnectAttempts = \" + this.reconnectAttempts + \", pollInterval = \" + this.getPollInterval() + \" ms, time disconnected = \" + secondsSince(this.disconnectedAt) + \" s, stale threshold = \" + this.constructor.staleThreshold + \" s\");\n this.reconnectAttempts++;\n if (this.disconnectedRecently()) {\n logger.log(\"ConnectionMonitor skipping reopening recent disconnect\");\n } else {\n logger.log(\"ConnectionMonitor reopening\");\n this.connection.reopen();\n }\n }\n };\n ConnectionMonitor.prototype.connectionIsStale = function connectionIsStale() {\n return secondsSince(this.pingedAt ? this.pingedAt : this.startedAt) > this.constructor.staleThreshold;\n };\n ConnectionMonitor.prototype.disconnectedRecently = function disconnectedRecently() {\n return this.disconnectedAt && secondsSince(this.disconnectedAt) < this.constructor.staleThreshold;\n };\n ConnectionMonitor.prototype.visibilityDidChange = function visibilityDidChange() {\n var _this2 = this;\n if (document.visibilityState === \"visible\") {\n setTimeout(function() {\n if (_this2.connectionIsStale() || !_this2.connection.isOpen()) {\n logger.log(\"ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = \" + document.visibilityState);\n _this2.connection.reopen();\n }\n }, 200);\n }\n };\n return ConnectionMonitor;\n }();\n ConnectionMonitor.pollInterval = {\n min: 3,\n max: 30,\n multiplier: 5\n };\n ConnectionMonitor.staleThreshold = 6;\n var INTERNAL = {\n message_types: {\n welcome: \"welcome\",\n disconnect: \"disconnect\",\n ping: \"ping\",\n confirmation: \"confirm_subscription\",\n rejection: \"reject_subscription\"\n },\n disconnect_reasons: {\n unauthorized: \"unauthorized\",\n invalid_request: \"invalid_request\",\n server_restart: \"server_restart\"\n },\n default_mount_path: \"/cable\",\n protocols: [ \"actioncable-v1-json\", \"actioncable-unsupported\" ]\n };\n var message_types = INTERNAL.message_types, protocols = INTERNAL.protocols;\n var supportedProtocols = protocols.slice(0, protocols.length - 1);\n var indexOf = [].indexOf;\n var Connection = function() {\n function Connection(consumer) {\n classCallCheck(this, Connection);\n this.open = this.open.bind(this);\n this.consumer = consumer;\n this.subscriptions = this.consumer.subscriptions;\n this.monitor = new ConnectionMonitor(this);\n this.disconnected = true;\n }\n Connection.prototype.send = function send(data) {\n if (this.isOpen()) {\n this.webSocket.send(JSON.stringify(data));\n return true;\n } else {\n return false;\n }\n };\n Connection.prototype.open = function open() {\n if (this.isActive()) {\n logger.log(\"Attempted to open WebSocket, but existing socket is \" + this.getState());\n return false;\n } else {\n logger.log(\"Opening WebSocket, current state is \" + this.getState() + \", subprotocols: \" + protocols);\n if (this.webSocket) {\n this.uninstallEventHandlers();\n }\n this.webSocket = new adapters.WebSocket(this.consumer.url, protocols);\n this.installEventHandlers();\n this.monitor.start();\n return true;\n }\n };\n Connection.prototype.close = function close() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {\n allowReconnect: true\n }, allowReconnect = _ref.allowReconnect;\n if (!allowReconnect) {\n this.monitor.stop();\n }\n if (this.isActive()) {\n return this.webSocket.close();\n }\n };\n Connection.prototype.reopen = function reopen() {\n logger.log(\"Reopening WebSocket, current state is \" + this.getState());\n if (this.isActive()) {\n try {\n return this.close();\n } catch (error) {\n logger.log(\"Failed to reopen WebSocket\", error);\n } finally {\n logger.log(\"Reopening WebSocket in \" + this.constructor.reopenDelay + \"ms\");\n setTimeout(this.open, this.constructor.reopenDelay);\n }\n } else {\n return this.open();\n }\n };\n Connection.prototype.getProtocol = function getProtocol() {\n if (this.webSocket) {\n return this.webSocket.protocol;\n }\n };\n Connection.prototype.isOpen = function isOpen() {\n return this.isState(\"open\");\n };\n Connection.prototype.isActive = function isActive() {\n return this.isState(\"open\", \"connecting\");\n };\n Connection.prototype.isProtocolSupported = function isProtocolSupported() {\n return indexOf.call(supportedProtocols, this.getProtocol()) >= 0;\n };\n Connection.prototype.isState = function isState() {\n for (var _len = arguments.length, states = Array(_len), _key = 0; _key < _len; _key++) {\n states[_key] = arguments[_key];\n }\n return indexOf.call(states, this.getState()) >= 0;\n };\n Connection.prototype.getState = function getState() {\n if (this.webSocket) {\n for (var state in adapters.WebSocket) {\n if (adapters.WebSocket[state] === this.webSocket.readyState) {\n return state.toLowerCase();\n }\n }\n }\n return null;\n };\n Connection.prototype.installEventHandlers = function installEventHandlers() {\n for (var eventName in this.events) {\n var handler = this.events[eventName].bind(this);\n this.webSocket[\"on\" + eventName] = handler;\n }\n };\n Connection.prototype.uninstallEventHandlers = function uninstallEventHandlers() {\n for (var eventName in this.events) {\n this.webSocket[\"on\" + eventName] = function() {};\n }\n };\n return Connection;\n }();\n Connection.reopenDelay = 500;\n Connection.prototype.events = {\n message: function message(event) {\n if (!this.isProtocolSupported()) {\n return;\n }\n var _JSON$parse = JSON.parse(event.data), identifier = _JSON$parse.identifier, message = _JSON$parse.message, reason = _JSON$parse.reason, reconnect = _JSON$parse.reconnect, type = _JSON$parse.type;\n switch (type) {\n case message_types.welcome:\n this.monitor.recordConnect();\n return this.subscriptions.reload();\n\n case message_types.disconnect:\n logger.log(\"Disconnecting. Reason: \" + reason);\n return this.close({\n allowReconnect: reconnect\n });\n\n case message_types.ping:\n return this.monitor.recordPing();\n\n case message_types.confirmation:\n return this.subscriptions.notify(identifier, \"connected\");\n\n case message_types.rejection:\n return this.subscriptions.reject(identifier);\n\n default:\n return this.subscriptions.notify(identifier, \"received\", message);\n }\n },\n open: function open() {\n logger.log(\"WebSocket onopen event, using '\" + this.getProtocol() + \"' subprotocol\");\n this.disconnected = false;\n if (!this.isProtocolSupported()) {\n logger.log(\"Protocol is unsupported. Stopping monitor and disconnecting.\");\n return this.close({\n allowReconnect: false\n });\n }\n },\n close: function close(event) {\n logger.log(\"WebSocket onclose event\");\n if (this.disconnected) {\n return;\n }\n this.disconnected = true;\n this.monitor.recordDisconnect();\n return this.subscriptions.notifyAll(\"disconnected\", {\n willAttemptReconnect: this.monitor.isRunning()\n });\n },\n error: function error() {\n logger.log(\"WebSocket onerror event\");\n }\n };\n var extend = function extend(object, properties) {\n if (properties != null) {\n for (var key in properties) {\n var value = properties[key];\n object[key] = value;\n }\n }\n return object;\n };\n var Subscription = function() {\n function Subscription(consumer) {\n var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var mixin = arguments[2];\n classCallCheck(this, Subscription);\n this.consumer = consumer;\n this.identifier = JSON.stringify(params);\n extend(this, mixin);\n }\n Subscription.prototype.perform = function perform(action) {\n var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n data.action = action;\n return this.send(data);\n };\n Subscription.prototype.send = function send(data) {\n return this.consumer.send({\n command: \"message\",\n identifier: this.identifier,\n data: JSON.stringify(data)\n });\n };\n Subscription.prototype.unsubscribe = function unsubscribe() {\n return this.consumer.subscriptions.remove(this);\n };\n return Subscription;\n }();\n var Subscriptions = function() {\n function Subscriptions(consumer) {\n classCallCheck(this, Subscriptions);\n this.consumer = consumer;\n this.subscriptions = [];\n }\n Subscriptions.prototype.create = function create(channelName, mixin) {\n var channel = channelName;\n var params = (typeof channel === \"undefined\" ? \"undefined\" : _typeof(channel)) === \"object\" ? channel : {\n channel: channel\n };\n var subscription = new Subscription(this.consumer, params, mixin);\n return this.add(subscription);\n };\n Subscriptions.prototype.add = function add(subscription) {\n this.subscriptions.push(subscription);\n this.consumer.ensureActiveConnection();\n this.notify(subscription, \"initialized\");\n this.sendCommand(subscription, \"subscribe\");\n return subscription;\n };\n Subscriptions.prototype.remove = function remove(subscription) {\n this.forget(subscription);\n if (!this.findAll(subscription.identifier).length) {\n this.sendCommand(subscription, \"unsubscribe\");\n }\n return subscription;\n };\n Subscriptions.prototype.reject = function reject(identifier) {\n var _this = this;\n return this.findAll(identifier).map(function(subscription) {\n _this.forget(subscription);\n _this.notify(subscription, \"rejected\");\n return subscription;\n });\n };\n Subscriptions.prototype.forget = function forget(subscription) {\n this.subscriptions = this.subscriptions.filter(function(s) {\n return s !== subscription;\n });\n return subscription;\n };\n Subscriptions.prototype.findAll = function findAll(identifier) {\n return this.subscriptions.filter(function(s) {\n return s.identifier === identifier;\n });\n };\n Subscriptions.prototype.reload = function reload() {\n var _this2 = this;\n return this.subscriptions.map(function(subscription) {\n return _this2.sendCommand(subscription, \"subscribe\");\n });\n };\n Subscriptions.prototype.notifyAll = function notifyAll(callbackName) {\n var _this3 = this;\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n return this.subscriptions.map(function(subscription) {\n return _this3.notify.apply(_this3, [ subscription, callbackName ].concat(args));\n });\n };\n Subscriptions.prototype.notify = function notify(subscription, callbackName) {\n for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n args[_key2 - 2] = arguments[_key2];\n }\n var subscriptions = void 0;\n if (typeof subscription === \"string\") {\n subscriptions = this.findAll(subscription);\n } else {\n subscriptions = [ subscription ];\n }\n return subscriptions.map(function(subscription) {\n return typeof subscription[callbackName] === \"function\" ? subscription[callbackName].apply(subscription, args) : undefined;\n });\n };\n Subscriptions.prototype.sendCommand = function sendCommand(subscription, command) {\n var identifier = subscription.identifier;\n return this.consumer.send({\n command: command,\n identifier: identifier\n });\n };\n return Subscriptions;\n }();\n var Consumer = function() {\n function Consumer(url) {\n classCallCheck(this, Consumer);\n this._url = url;\n this.subscriptions = new Subscriptions(this);\n this.connection = new Connection(this);\n }\n Consumer.prototype.send = function send(data) {\n return this.connection.send(data);\n };\n Consumer.prototype.connect = function connect() {\n return this.connection.open();\n };\n Consumer.prototype.disconnect = function disconnect() {\n return this.connection.close({\n allowReconnect: false\n });\n };\n Consumer.prototype.ensureActiveConnection = function ensureActiveConnection() {\n if (!this.connection.isActive()) {\n return this.connection.open();\n }\n };\n createClass(Consumer, [ {\n key: \"url\",\n get: function get$$1() {\n return createWebSocketURL(this._url);\n }\n } ]);\n return Consumer;\n }();\n function createWebSocketURL(url) {\n if (typeof url === \"function\") {\n url = url();\n }\n if (url && !/^wss?:/i.test(url)) {\n var a = document.createElement(\"a\");\n a.href = url;\n a.href = a.href;\n a.protocol = a.protocol.replace(\"http\", \"ws\");\n return a.href;\n } else {\n return url;\n }\n }\n function createConsumer() {\n var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getConfig(\"url\") || INTERNAL.default_mount_path;\n return new Consumer(url);\n }\n function getConfig(name) {\n var element = document.head.querySelector(\"meta[name='action-cable-\" + name + \"']\");\n if (element) {\n return element.getAttribute(\"content\");\n }\n }\n exports.Connection = Connection;\n exports.ConnectionMonitor = ConnectionMonitor;\n exports.Consumer = Consumer;\n exports.INTERNAL = INTERNAL;\n exports.Subscription = Subscription;\n exports.Subscriptions = Subscriptions;\n exports.adapters = adapters;\n exports.createWebSocketURL = createWebSocketURL;\n exports.logger = logger;\n exports.createConsumer = createConsumer;\n exports.getConfig = getConfig;\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n});\n","const toggleArtistPhotoForm = () => {\n const openForm = document.getElementById('open-add-photo-form');\n if (openForm) {\n const closeForm = document.getElementById('close-add-photo-form');\n const photoForm = document.getElementById('user-add-photo-form');\n openForm.addEventListener('click', () => {\n photoForm.style.display = 'block';\n });\n closeForm.addEventListener('click', () => {\n photoForm.style.display = 'none';\n })\n }\n}\n\nconst toggleArtistPhotoEditForm = () => {\n const openEditForms = Array.from(document.getElementsByClassName('open-edit-photo-form'));\n const editForms = Array.from(document.getElementsByClassName('user-edit-photo-form'));\n const closeForms = Array.from(document.getElementsByClassName('close-edit-photo-form'));\n if (openEditForms) {\n openEditForms.forEach((el, i) => el.addEventListener('click', () => {\n editForms[i].style.display = 'block';\n editForms.filter((ef, efi) => efi != i).forEach(ef => ef.style.display = 'none')\n }))\n closeForms.forEach((el, i) => el.addEventListener('click', () => { \n editForms[i].style.display = 'none' \n }))\n }\n}\n\n\nexport { toggleArtistPhotoForm, toggleArtistPhotoEditForm };","const openEditMessageForm = () => Array.from(document.getElementsByClassName('message-open-edit-form'));\nconst editMessageForm = () => Array.from(document.getElementsByClassName('message-edit-form'));\nconst closeEditMessageForm = () => Array.from(document.getElementsByClassName('message-close-btn'));\n\nconst openEditForm = () => {\n if (openEditMessageForm()) {\n openEditMessageForm().forEach((el, i) => el.addEventListener('click', () => {\n editMessageForm()[i].style.display = 'block';\n }))\n }\n};\n\nconst closeEditForm = () => {\n if(closeEditMessageForm()) {\n closeEditMessageForm().forEach((el, i) => el.addEventListener('click', () => {\n editMessageForm()[i].style.display = 'none';\n }))\n }\n};\n\nexport { openEditForm, closeEditForm };","const setBookingDetails = () => {\n const updateBtn = document.getElementById('update-booking');\n const bookingExtraForm = document.getElementById('booking-extra-requirements-form');\n const closeForm = document.getElementById('close-form');\n\n if (updateBtn) {\n updateBtn.onclick = () => bookingExtraForm.style.display = 'flex';\n closeForm.onclick = () => bookingExtraForm.style.display = 'none';\n }\n}\n\nexport { setBookingDetails };","const setTheBookingPrice = () => {\n const setBtn = document.getElementById(\"set-the-price__btn\");\n const setForm = document.getElementById(\"set-the-price__form\");\n const closeBtn = document.getElementById(\"set-the-price__close\");\n if (setBtn) {\n setBtn.onclick = () => setForm.classList.remove('hidden');\n closeBtn.onclick = () => setForm.classList.add('hidden');\n }\n}\n\nexport {setTheBookingPrice};","\nconst userFormToggle = () => {\n if (document.getElementById('edit-profile')) {\n const userBtn = document.getElementById('edit-profile');\n const userForm = document.getElementById('profile-form');\n const userCloseBtn = document.getElementById('close-form-btn');\n userBtn.addEventListener('click', () => {\n userForm.classList.remove('hidden')\n });\n userCloseBtn.addEventListener('click', () => {\n userForm.classList.add('hidden');\n })\n }\n};\n\nexport { userFormToggle };","const bookingFormToggle = () => {\n if (document.getElementById('request-booking')) {\n const bookingBtn = document.getElementById('request-booking');\n const bookingForm = document.getElementById('dj-booking-form');\n const bookingCloseBtn = document.getElementById('close-booking-form');\n bookingBtn.addEventListener('click', () => {\n bookingForm.classList.remove('hidden')\n })\n bookingCloseBtn.addEventListener('click', () => {\n bookingForm.classList.add('hidden');\n })\n }\n}\n\nexport { bookingFormToggle };","const socialMediaWidth = () => {\n const smWidth = document.getElementById(\"dj-social-media\");\n const bioCont = document.getElementById(\"dj-profile-bio\");\n if (smWidth && bioCont) {\n const setWidth = (i) => (smWidth.innerHTML.split(\"\").length - 1) * i;\n smWidth.style.width = `${setWidth(4)}%`;\n }\n};\n\nexport { socialMediaWidth };\n","const djChangeMainPhoto = () => {\n if (document.getElementsByClassName('dj-container')) {\n const mainPhoto = document.getElementById('dj-main-photo');\n const images = document.getElementsByClassName('dj-photo');\n Array.from(images).forEach(img => {\n img.addEventListener('click', () => {\n mainPhoto.src = img.src\n })\n })\n }\n}\n\nexport { djChangeMainPhoto };","import { setDjNameFontSize } from \"./djName\";\nimport { setHeightOfArtistPhotos } from \"./setHeightOfArtistPageComponents\";\nimport { setIframesHeight } from \"./iframesHeight\";\nimport { homeFlex } from \"../homePage/homeFlex\";\n\nconst onResizeBehaviour = () => {\n window.onresize = () => {\n setDjNameFontSize();\n setHeightOfArtistPhotos();\n setIframesHeight();\n homeFlex();\n }\n}\n\nexport { onResizeBehaviour };","const messageHistory = () => {\n const messages = Array.from(document.getElementsByClassName('message-history-btn'));\n const histories = Array.from(document.getElementsByClassName('message-history'));\n if (messages) {\n messages.forEach((m, i) => m.addEventListener('click', () => {\n if (histories[i].style.display == 'block') {\n histories[i].style.display = 'none';\n } else {\n histories[i].style.display = 'block';\n }\n }));\n }\n}\n\nexport {messageHistory};","const infos = Array.from(document.getElementsByClassName('user-info-company'));\nconst forms = Array.from(document.getElementsByClassName('user-add-company'));\nconst formBtns = Array.from(document.getElementsByClassName('edit-company-form'));\nconst closingBtns = Array.from(document.getElementsByClassName('closing-btn'));\n\nconst editCompanyInfo = () => {\n if (infos) {\n formBtns.forEach((el, i) => el.addEventListener('click', () => forms[i].classList.remove('hidden')));\n closingBtns.forEach((el, i) => el.addEventListener('click', () => forms[i].classList.add('hidden')));\n }\n}\n\nexport default editCompanyInfo;","// Action Cable provides the framework to deal with WebSockets in Rails.\n// You can generate new channels where WebSocket features live using the `rails generate channel` command.\n\nimport { createConsumer } from \"@rails/actioncable\"\n\nexport default createConsumer()\n","import consumer from \"./consumer\";\nimport { setTheMessagesColors } from \"../packs/bookingPage/setTheMessagesColors\";\nimport { setEditOptions } from \"../packs/message-packs/setEditOptions\";\n\n\nconst initChatroomCable = () => {\n const messagesContainer = document.getElementById('chatroom-messages');\n const findId = (incomingData) => incomingData.split(' ').join('').split('-')[1].replace(/\\D/g, '') * 1\n if (messagesContainer) {\n const id = messagesContainer.dataset.chatroomId;\n consumer.subscriptions.create({ channel: \"ChatroomChannel\", id: id }, {\n received(data) {\n const id = findId(data);\n const message = document.getElementById(`message-${id}`)\n const messages = Array.from(document.querySelectorAll('#chatroom-messages .message'));\n const ids = messages.map(el => findId(el.outerHTML))\n if (ids.includes(id)) {\n message.innerHTML = data.split('h>')[1];\n setEditOptions(id);\n } else {\n messagesContainer.insertAdjacentHTML('beforeend', data);\n setEditOptions(id);\n }\n setTheMessagesColors();\n }\n });\n }\n}\n\n\nexport { initChatroomCable };","import { userFormToggle } from \"./userShowPage/userFormToggle\";\nimport { bookingFormToggle } from \"./userShowPage/bookingFormToggle\";\nimport { socialMediaWidth } from \"./userShowPage/socialMediaWidth\";\nimport { setHeightOfArtistPhotos } from \"./userShowPage/setHeightOfArtistPageComponents\";\nimport { djChangeMainPhoto } from './userShowPage/djChangeMainPhoto';\nimport { setDjNameFontSize } from \"./userShowPage/djName\";\nimport { setIframesHeight } from \"./userShowPage/iframesHeight\";\nimport { onResizeBehaviour } from \"./userShowPage/onResizeBehaviour\";\nimport { homeFlex } from \"./homePage/homeFlex\";\nimport { setTheBookingPrice } from \"./bookingPage/setThePrice\";\nimport { setTheMessagesColors } from \"./bookingPage/setTheMessagesColors\";\nimport { initChatroomCable } from '../channels/chatroom_channel';\nimport { setBookingDetails } from '../packs/bookingPage/setBookingDetails';\nimport {toggleArtistPhotoForm, toggleArtistPhotoEditForm} from '../packs/userShowPage/toggleArtistPhotoForm';\nimport {openEditForm, closeEditForm} from '../packs/message-packs/openEditForm';\nimport {messageHistory} from '../packs/message-packs/messageHistory';\nimport editCompanyInfo from '../packs/editCompanyInfo';\n\ndocument.addEventListener('turbolinks:load', () => {\n onResizeBehaviour();\n userFormToggle();\n bookingFormToggle();\n socialMediaWidth();\n setDjNameFontSize();\n djChangeMainPhoto();\n setHeightOfArtistPhotos();\n homeFlex();\n setIframesHeight();\n setTheBookingPrice();\n setTheMessagesColors();\n initChatroomCable();\n setBookingDetails();\n toggleArtistPhotoForm();\n toggleArtistPhotoEditForm();\n openEditForm();\n closeEditForm();\n messageHistory();\n editCompanyInfo();\n});\n"],"sourceRoot":""}