{"version":3,"file":"js/common.min.js","mappings":";;;;;;;;;;AAAA;;;;;;;;;;;;ACAA;;;;;;;;;;;;ACAA;;;;;;;;;;;;ACAA;;;;;;;;;;;;ACAA;;;;;;;;;;;;ACAA;;;;;;;;;;;;ACAA;;;;;;;;;;;;ACAA;;;;;;;;;;;;ACAA;;;;;;;;;;;;ACAA;;;;;;;;;;;;ACAA;;;;;;;;;;;;ACAA;;;;;;;;;;;;ACAA;;;;;;;;;;;;ACAA;;;;;;;;;;;;ACAA;;;;;;;;;;;;ACAA;;;;;;;;;;;;ACAA;;;;;;;;;;;;ACAA;;;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;;;ACAuB;AACK;AAC5B;AACO;AACP,iBAAiB,6CAAC;AAClB,IAAI,sCAAI;AACR;AACA,iCAAiC,8CAA8C;AAC/E,iCAAiC,6CAA6C;AAC9E,iCAAiC,6CAA6C;AAC9E,iCAAiC,6CAA6C;AAC9E;;;;;;;;;;;;;;;;;;;;;;;;;ACXuB;AACK;AACuB;AACnD;AACO;AACP,IAAI,sCAAI,gBAAgB,6DAAa;AACrC,IAAI,sCAAI;AACR;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;AACL;AACO;AACP;AACA;AACA;AACA,QAAQ,6CAAC;AACT;AACA;AACA;AACA;AACA;AACA;AACO;AACP,IAAI,6CAAC;AACL;AACO;AACP,IAAI,6CAAC;AACL;AACO;AACP;AACA;AACA;AACA,QAAQ,6CAAC,oCAAoC,6CAAC;AAC9C,QAAQ,6CAAC;AACT,QAAQ,6CAAC;AACT,MAAM;AACN,QAAQ,6CAAC;AACT,QAAQ,6CAAC;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,IAAI,6CAAC;AACL;AACA;AACO;AACP;AACA;AACA;AACA,YAAY,sCAAI;AAChB;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,UAAU;AACV,YAAY,sCAAI;AAChB;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,gBAAgB,6CAAC;AACjB;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;AC3FwC;AACZ;AAC5B;AAC4D;AAC5D;AACA;AACA;AACA,WAAW,UAAU;AACrB;AACA;AACO;AACP,IAAI,mDAAY;AAChB;AACA,QAAQ,sCAAI,kBAAkB,4CAA4C;AAC1E;AACA,QAAQ,wEAAW;AACnB;AACA;AACA;AACA;AACA,KAAK;AACL","sources":["webpack://laravel/./resources/src/css/share/_base.scss","webpack://laravel/./resources/src/css/share/_reset.scss","webpack://laravel/./resources/src/css/share/_share.scss","webpack://laravel/./resources/src/css/share/components/_breadcrumbs.scss","webpack://laravel/./resources/src/css/share/components/_col_list.scss","webpack://laravel/./resources/src/css/share/components/_colorBlock.scss","webpack://laravel/./resources/src/css/share/components/_footer.scss","webpack://laravel/./resources/src/css/share/components/_header.scss","webpack://laravel/./resources/src/css/share/components/_input.scss","webpack://laravel/./resources/src/css/share/components/_lightbox.scss","webpack://laravel/./resources/src/css/share/components/_loading.scss","webpack://laravel/./resources/src/css/share/components/_maintitle.scss","webpack://laravel/./resources/src/css/share/components/_news_date.scss","webpack://laravel/./resources/src/css/share/components/_news_row.scss","webpack://laravel/./resources/src/css/share/components/_page.scss","webpack://laravel/./resources/src/css/share/components/_pagination.scss","webpack://laravel/./resources/src/css/share/components/_scene_form.scss","webpack://laravel/./resources/src/css/share/components/_sidenav.scss","webpack://laravel/./resources/src/css/share/components/_swiper.scss","webpack://laravel/./resources/src/js/share/components/_colorBlock.js","webpack://laravel/./resources/src/js/share/components/_header.js","webpack://laravel/./resources/src/js/share/components/_imageloader.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","import $ from \"jquery\";\r\nimport { gsap } from \"gsap\";\r\n\r\nexport function colorBlock_ani() {\r\n const winW = $(window).width();\r\n gsap.timeline()\r\n .add('time1')\r\n .from('.colorBlock_1', { duration: 1, x: -winW, ease: 'quart.easeOut' }, 'time1')\r\n .from('.colorBlock_2', { duration: 1, x: winW, ease: 'quart.easeOut' }, 'time1')\r\n .from('.colorBlock_3', { duration: 1, x: winW, ease: 'quart.easeOut' }, '-=.8')\r\n .from('.colorBlock_4', { duration: 1, x: winW, ease: 'quart.easeOut' }, '-=.8')\r\n};\r\n","import $ from \"jquery\";\r\nimport { gsap } from \"gsap\";\r\nimport { ScrollTrigger } from \"gsap/ScrollTrigger\";\r\n\r\nexport function header_scrolltrigger() {\r\n gsap.registerPlugin(ScrollTrigger);\r\n gsap.timeline({\r\n scrollTrigger: {\r\n start: \"top -300\",\r\n end: 99999,\r\n toggleClass: {\r\n className: 'bg',\r\n targets: '.header'\r\n },\r\n }\r\n });\r\n};\r\nexport function header_init() {\r\n header_scrolltrigger();\r\n\r\n if (winW <= 890) {\r\n $('.subnav_box').slideUp(0);\r\n }\r\n};\r\n\r\n\r\n\r\nconst winW = window.innerWidth;\r\nexport function subnav_show($e) {\r\n $($e.target).parent().addClass('show');\r\n};\r\nexport function subnav_hide($e) {\r\n $($e.target).parent().removeClass('show');\r\n};\r\nexport function subnav_toggle($e) {\r\n\r\n if (winW > 890) return;\r\n\r\n if ($($e.target).attr('show') === '0' || $($e.target).attr('show') === undefined) {\r\n $($e.target).parent().find('.subnav_box').slideDown();\r\n $($e.target).attr('show', '1');\r\n } else {\r\n $($e.target).parent().find('.subnav_box').slideUp();\r\n $($e.target).attr('show', '0');\r\n }\r\n};\r\n\r\n\r\n\r\n/**\r\n * 監聽 `menu_open` 變數,並執行 GSAP 動畫\r\n * @param {Object} vueInstance Vue 應用的 `this`\r\n */\r\n\r\nexport function menu_locate() {\r\n const _nav_arr = ['theme', 'explore', 'participate'];\r\n const _pathname = location.pathname;\r\n let menu_active = 0;\r\n _nav_arr.forEach(function (o, i) {\r\n if (_pathname.includes(o)) {\r\n menu_active = i;\r\n }\r\n });\r\n $('.nav_li').eq(menu_active).find('.nav_link').addClass('active');\r\n};\r\n\r\nexport function m_menu_open(vueInstance) {\r\n return function (_menu_open) {\r\n console.log(_menu_open);\r\n if (_menu_open) {\r\n gsap.to(\".nav\", {\r\n duration: 0.4,\r\n y: 0,\r\n opacity: 1,\r\n display: \"block\",\r\n ease: \"quart.out\",\r\n });\r\n } else {\r\n gsap.to(\".nav\", {\r\n duration: 0.4,\r\n y: \"-100vh\",\r\n opacity: 0,\r\n display: \"none\",\r\n ease: \"quart.out\",\r\n });\r\n\r\n if (winW <= 890) {\r\n $('.subnav_box').slideUp(0);\r\n }\r\n }\r\n };\r\n}","import imagesLoaded from \"imagesloaded\";\r\nimport { gsap } from \"gsap\";\r\n\r\nimport { header_init } from \"@/js/share/components/_header\";\r\n\r\n/**\r\n * 初始化圖片加載監聽器\r\n * @param {Function} callback 當所有圖片加載完成後執行的回調函式\r\n */\r\n\r\nexport function init_imageloaded(callback) {\r\n imagesLoaded(\"html, body\", function () {\r\n\r\n gsap.to(\".loading\", { duration: 0.3, opacity: 0, display: \"none\" });\r\n\r\n header_init();\r\n\r\n if (typeof callback === \"function\") {\r\n callback();\r\n }\r\n });\r\n}"],"names":[],"sourceRoot":""}