{"version":3,"file":"js/article_content.min.js","mappings":";;;;;;;;;;;AAAA;;;;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,iDAAiD;AAC9F;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,iDAAiD;AAC9F;AACA,aAAa;AACb;AACA;AACA,iDAAiD,iDAAiD;AAClG;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,iDAAiD;AAC/F;AACA;AACA,aAAa;AACb;AACA;AACA,KAAK;AACL,CAAC;;;;;;;;;;AClFD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA,uDAAuD,QAAQ;AAC/D,qBAAqB;AACrB,iBAAiB;AACjB;AACA,SAAS;AACT;AACA,CAAC;;;;;;UC7CD;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA,eAAe,4BAA4B;WAC3C,eAAe;WACf,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA,8CAA8C;;;;;WCA9C;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;;;;;ACN6C;AACN;AACO;AAC9C;AACA;AACA;AACA,CAAC,E","sources":["webpack://laravel/./resources/src/css/home/article_content.scss?e09a","webpack://laravel/./resources/src/js/share/components/_lightbox.js","webpack://laravel/./resources/src/js/share/components/_media_swiper.js","webpack://laravel/webpack/bootstrap","webpack://laravel/webpack/runtime/compat get default export","webpack://laravel/webpack/runtime/define property getters","webpack://laravel/webpack/runtime/hasOwnProperty shorthand","webpack://laravel/webpack/runtime/make namespace object","webpack://laravel/./resources/src/js/home/article_content.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};","window.addEventListener('DOMContentLoaded', function() {\r\n (function($) {\r\n\r\n const winW = $(window).width();\r\n\r\n //lightbox-------------------------------------------\r\n let _lb, _img, _txt, _last_el;\r\n var lightbox = $('.lightbox');\r\n closeFn(lightbox);\r\n $(document).on('click', '.lb_btn', function() {\r\n _lb = $(this).data('lb');\r\n TweenLite.to($('#' + _lb), .4, { opacity: 1, display: 'flex', ease: Circ.easeOut });\r\n setTimeout(function() {\r\n lb_acc($('#' + _lb), _last_el);\r\n }, 500);\r\n });\r\n\r\n\r\n // tab 點選\r\n $(document).on('keypress', '.lb_btn', function(e) {\r\n if (e.which == 13) {\r\n $(this).click();\r\n }\r\n });\r\n\r\n\r\n function closeFn(lightbox) {\r\n var btnClose = lightbox.find('.lb_close_btn_link');\r\n btnClose.click(function(e) {\r\n e.preventDefault();\r\n TweenLite.to(lightbox, .2, { opacity: 0, display: 'none', ease: Circ.easeOut });\r\n _last_el.focus();\r\n });\r\n lightbox.click(function(e) {\r\n if ($(e.target).is(lightbox)) {\r\n TweenLite.to(lightbox, .2, { opacity: 0, display: 'none', ease: Circ.easeOut });\r\n _last_el.focus();\r\n }\r\n });\r\n }\r\n\r\n function lb_acc(modal, _last_el) {\r\n\r\n var _this_focus = modal.find('.first_focus');\r\n _this_focus.focus();\r\n\r\n var focusableElementsString = 'a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex=\"0\"]';\r\n var focusableElements = modal.find(focusableElementsString);\r\n\r\n focusableElements = Array.prototype.slice.call(focusableElements);\r\n\r\n var firstTabStop = focusableElements[0];\r\n var lastTabStop = focusableElements[focusableElements.length - 1];\r\n\r\n modal.on('keydown', function(e) {\r\n\r\n // SHIFT + TAB\r\n if (e.keyCode === 9) {\r\n if (e.shiftKey) {\r\n if (document.activeElement === firstTabStop) {\r\n e.preventDefault();\r\n $(lastTabStop).focus();\r\n }\r\n\r\n // TAB\r\n } else {\r\n if (document.activeElement === lastTabStop) {\r\n e.preventDefault();\r\n $(firstTabStop).focus();\r\n }\r\n }\r\n }\r\n\r\n // ESCAPE\r\n if (e.keyCode === 27) {\r\n TweenLite.to(modal, .2, { opacity: 0, display: 'none', ease: Circ.easeOut });\r\n _last_el.focus();\r\n }\r\n });\r\n }\r\n\r\n })(jQuery);\r\n});","$(function() {\r\n\r\n //swiper ------------------------------------------\r\n let $swiper;\r\n let swiper_el;\r\n let container;\r\n let pagination;\r\n let button_next;\r\n let button_prev;\r\n let _tpl;\r\n let _slidesPerView;\r\n\r\n if ($(\".tpl_row\").length > 0) {\r\n\r\n $(\".tpl_row\").each(function(i, o) {\r\n _tpl = $(o).find(\".media_swiper\").data('template');\r\n _slidesPerView = _tpl == 4 ? 2 : 1;\r\n swiper_el = '#swiper_' + i;\r\n if ($(swiper_el).length > 0) {\r\n console.log(swiper_el);\r\n container = swiper_el + ' .swiper';\r\n pagination = swiper_el + ' .swiper-pagination';\r\n button_next = swiper_el + ' .swiper-button-next';\r\n button_prev = swiper_el + ' .swiper-button-prev';\r\n $swiper = new Swiper(container, {\r\n grabCursor: true,\r\n slidesPerView: _slidesPerView,\r\n pagination: {\r\n el: pagination,\r\n clickable: true,\r\n },\r\n navigation: {\r\n nextEl: button_next,\r\n prevEl: button_prev,\r\n },\r\n a11y: {\r\n enabled: true,\r\n firstSlideMessage: \"第一則\",\r\n lastSlideMessage: \"最後一則\",\r\n paginationBulletMessage: \"到第 {{index}} 則\",\r\n },\r\n });\r\n }\r\n });\r\n }\r\n});","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import '../../css/home/article_content.scss';\r\nimport '../share/components/_lightbox';\r\nimport '../share/components/_media_swiper.js';\r\n\r\n$(function() {\r\n\r\n});"],"names":[],"sourceRoot":""}