{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///photogallery.js","webpack:///webpack/bootstrap df20242aada1a00ec41f","webpack:///./app/photogallery.scss","webpack:///./app/photogallery.js","webpack:///./app/photogallery_icon.png","webpack:///./app/tile-photogallery.png"],"names":["root","factory","exports","module","define","amd","self","this","modules","__webpack_require__","moduleId","installedModules","i","l","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","_classCallCheck","instance","Constructor","TypeError","_createClass","defineProperties","target","props","length","descriptor","writable","key","protoProps","staticProps","PhotoGallery","el","$el","$","proportion","bind_events","fix_image_size","value","_$","_x","apply","arguments","toString","selector","on","sync_slideshows","bind","thumbs_click","max_height","max_width","$player","$imgs","width","css","max-width","max-height","e","opts","$slideshows","cycle","currSlide","index","$thumbs","preventDefault","data","getSlideIndex","parentElement","window","load","len","ref","slideshow"],"mappings":"CAAA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,IACA,kBAAAG,gBAAAC,IACAD,UAAAH,GACA,gBAAAC,SACAA,QAAA,aAAAD,IAEAD,EAAA,aAAAC,KACC,mBAAAK,WAAAC,KAAA,WACD,MCAgB,UAAUC,GCN1B,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAR,OAGA,IAAAC,GAAAQ,EAAAD,IACAE,EAAAF,EACAG,GAAA,EACAX,WAUA,OANAM,GAAAE,GAAAI,KAAAX,EAAAD,QAAAC,IAAAD,QAAAO,GAGAN,EAAAU,GAAA,EAGAV,EAAAD,QAvBA,GAAAS,KA4DA,OAhCAF,GAAAM,EAAAP,EAGAC,EAAAO,EAAAL,EAGAF,EAAAQ,EAAA,SAAAf,EAAAgB,EAAAC,GACAV,EAAAW,EAAAlB,EAAAgB,IACAG,OAAAC,eAAApB,EAAAgB,GACAK,cAAA,EACAC,YAAA,EACAC,IAAAN,KAMAV,EAAAiB,EAAA,SA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js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"photogallery\"] = factory();\n\telse\n\t\troot[\"photogallery\"] = factory();\n})(typeof self !== 'undefined' ? self : this, function() {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"photogallery\"] = factory();\n\telse\n\t\troot[\"photogallery\"] = factory();\n})(typeof self !== 'undefined' ? self : this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \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, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\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 = \"/++theme++sc.photogallery/\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n__webpack_require__(1);\n__webpack_require__(2);\n__webpack_require__(3);\nmodule.exports = __webpack_require__(4);\n\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__.p + \"photogallery.css\";\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar PhotoGallery = function () {\n function PhotoGallery(el) {\n _classCallCheck(this, PhotoGallery);\n\n this.$el = $(el);\n this.proportion = 3 / 2;\n this.bind_events();\n this.fix_image_size();\n }\n\n _createClass(PhotoGallery, [{\n key: '$',\n value: function (_$) {\n function $(_x) {\n return _$.apply(this, arguments);\n }\n\n $.toString = function () {\n return _$.toString();\n };\n\n return $;\n }(function (selector) {\n return $(selector, this.$el);\n })\n }, {\n key: 'bind_events',\n value: function bind_events() {\n this.$('.cycle-player').on('cycle-next cycle-prev', this.sync_slideshows.bind(this));\n this.$('.cycle-carrossel .thumb-itens').on('click', this.thumbs_click.bind(this));\n }\n }, {\n key: 'fix_image_size',\n value: function fix_image_size() {\n var max_height = void 0,\n max_width = void 0,\n $player = void 0,\n $imgs = void 0;\n\n // Calc max_with and max_height\n $player = this.$('.cycle-player');\n max_width = $player.width();\n max_height = max_width / this.proportion;\n // Calc max_with and max_height\n\n $imgs = this.$('.cycle-player img');\n $imgs.css({\n 'max-width': max_width,\n 'max-height': max_height\n });\n }\n }, {\n key: 'sync_slideshows',\n value: function sync_slideshows(e, opts) {\n var index = void 0,\n $player = void 0,\n $slideshows = void 0;\n $slideshows = this.$('.cycle-slideshow');\n $slideshows.cycle('goto', opts.currSlide);\n }\n }, {\n key: 'thumbs_click',\n value: function thumbs_click(e) {\n var index = void 0,\n $thumbs = void 0,\n $slideshows = void 0;\n e.preventDefault();\n $thumbs = this.$('.cycle-carrossel');\n index = $thumbs.data('cycle.API').getSlideIndex(e.target.parentElement);\n $slideshows = this.$('.cycle-slideshow');\n $slideshows.cycle('goto', index);\n }\n }]);\n\n return PhotoGallery;\n}();\n\n$(window).load(function () {\n var i = void 0,\n len = void 0,\n ref = void 0,\n slideshow = void 0;\n ref = $('.slideshow-container');\n for (i = 0, len = ref.length; i < len; i++) {\n slideshow = ref[i];\n new PhotoGallery(slideshow);\n }\n});\n\nmodule.exports = {\n PhotoGallery: PhotoGallery\n};\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__.p + \"photogallery_icon.png\";\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__.p + \"tile-photogallery.png\";\n\n/***/ })\n/******/ ]);\n});\n\n\n// WEBPACK FOOTER //\n// photogallery.js"," \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, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\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 = \"/++theme++sc.photogallery/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap df20242aada1a00ec41f","module.exports = __webpack_public_path__ + \"photogallery.css\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/photogallery.scss\n// module id = 1\n// module chunks = 0","class PhotoGallery {\n constructor(el) {\n this.$el = $(el);\n this.proportion = 3 / 2;\n this.bind_events();\n this.fix_image_size();\n }\n $(selector) {\n return $(selector, this.$el);\n }\n bind_events() {\n this.$('.cycle-player').on('cycle-next cycle-prev', this.sync_slideshows.bind(this));\n this.$('.cycle-carrossel .thumb-itens').on('click', this.thumbs_click.bind(this));\n }\n fix_image_size() {\n let max_height, max_width, $player, $imgs;\n\n // Calc max_with and max_height\n $player = this.$('.cycle-player');\n max_width = $player.width();\n max_height = max_width / this.proportion;\n // Calc max_with and max_height\n\n $imgs = this.$('.cycle-player img');\n $imgs.css({\n 'max-width': max_width,\n 'max-height': max_height\n });\n }\n sync_slideshows(e, opts) {\n let index, $player, $slideshows;\n $slideshows = this.$('.cycle-slideshow');\n $slideshows.cycle('goto', opts.currSlide);\n }\n thumbs_click(e) {\n let index, $thumbs, $slideshows;\n e.preventDefault();\n $thumbs = this.$('.cycle-carrossel');\n index = $thumbs.data('cycle.API').getSlideIndex(e.target.parentElement);\n $slideshows = this.$('.cycle-slideshow');\n $slideshows.cycle('goto', index);\n }\n}\n\n\n$(window).load(() => {\n let i, len, ref, slideshow;\n ref = $('.slideshow-container');\n for (i = 0, len = ref.length; i < len; i++) {\n slideshow = ref[i];\n new PhotoGallery(slideshow);\n }\n});\n\n\nmodule.exports = {\n PhotoGallery\n}\n\n\n\n// WEBPACK FOOTER //\n// ./app/photogallery.js","module.exports = __webpack_public_path__ + \"photogallery_icon.png\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/photogallery_icon.png\n// module id = 3\n// module chunks = 0","module.exports = __webpack_public_path__ + \"tile-photogallery.png\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/tile-photogallery.png\n// module id = 4\n// module chunks = 0"],"sourceRoot":""}