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AAc,gBACdJ,YAAY,EACZpH,OAAQ,OACR0G,UAAW,yCACXiB,WAAY,qBACZI,aAAa,EACb5B,mBAAmB,EACnBQ,aAAa,EACbkB,cAAe,iBACfC,KAAK,GAmQ0BhE,EAAOI,QAC9C,CAEA,SAASO,EAAYT,GACZP,IAAcA,EAAaW,KAC5BJ,EAAcyG,GAAG,cAGrBzG,EAAc9C,SACd8C,EAAgB,KACqB,IAAjCP,EAAWc,WAAW1G,SACtB4F,EAAWvC,SACXyC,OAAgB0F,GAExB,CAEH,CApcM,EAqcV,4B","sources":["webpack://itreview/./app/frontend/entry/client/common.js","webpack://itreview/./node_modules/foundation-datepicker/js/locales/foundation-datepicker.ja.js","webpack://itreview/./node_modules/toastr/toastr.js"],"sourcesContent":["import 'foundation-sites';\nimport 'foundation-datepicker';\nimport 'foundation-datepicker/js/locales/foundation-datepicker.ja';\nimport Rails from '@rails/ujs';\n\n$(() => {\n $(document).foundation();\n Rails.start();\n document.dispatchEvent(new CustomEvent('rails-ujs-started'));\n $('.notice-message').each(function () {\n if ($(this).hasClass('warning')) {\n Toastr.warning($(this).html().trim());\n } else if ($(this).hasClass('error') || $(this).hasClass('alert')) {\n Toastr.error($(this).html().trim());\n } else {\n Toastr.success($(this).html().trim());\n }\n });\n\n const errors = $('#error_explanation li').map(function () { return $(this).html().trim(); });\n if (errors.length > 0) {\n Toastr.error(errors.get().join('
'));\n }\n\n // メニューのis-active判定\n // li.list_itemのdata-active属性の値がbodyタグのclassに含まれていれば、is-active\n $('li.list_item').each(function () {\n if ($('body').hasClass($(this).data('active'))) {\n $(this).addClass('is-active');\n }\n });\n\n const currentPathName = window.location.pathname.split('/').slice(3, 4).join('/');\n $('.vertical_item').each(function () {\n const item = $(this);\n item.find('a').each(function () {\n const path = new URL(this.href).pathname.split('/').slice(3, 4).join('/');\n if (path.length > 0 && path === currentPathName) {\n item.find('>input').attr('checked', true);\n }\n });\n });\n $('.analyses_vertical_item').each(function () {\n const item = $(this);\n item.find('a').each(function () {\n const path = new URL(this.href).pathname.split('/').slice(3, 5).join('/');\n if (path.length > 0 && path === window.location.pathname.split('/').slice(3, 5).join('/')) {\n item.find('>input').attr('checked', true);\n }\n });\n });\n\n $('.input_datepicker').each(function () {\n $(this).fdatepicker({\n format: 'yyyy/mm/dd',\n language: 'ja',\n leftArrow: '<',\n rightArrow: '︎>',\n startDate: $(this).data('start-date') || '',\n endDate: $(this).data('end-date') || '',\n });\n });\n\n // image preview settings\n const elements = document.querySelectorAll('.available-preview');\n Array.prototype.forEach.call(elements, (el, _i) => {\n el.addEventListener('change', function (event) {\n const file = event.target.files[0];\n\n // Only process image file.\n if (!file || !file.type.match('image.*')) {\n return;\n }\n\n const reader = new FileReader();\n const previewElement = this.getAttribute('data-preview-element');\n reader.onload = (function (_theFile) {\n return function (e) {\n const content = ``;\n const target = document.getElementById(previewElement);\n target.innerHTML = content;\n if (target.parentElement.classList.contains('no-image')) {\n target.parentElement.classList.remove('no-image');\n }\n };\n }(file));\n\n // Read in the image file as a data URL.\n reader.readAsDataURL(file);\n });\n });\n\n $('.hide-before-load').removeClass('hide-before-load');\n\n const SwapZIndex = (currentObject, reminderElements) => {\n Array.prototype.forEach.call(reminderElements, (el, _i) => {\n el.style.zIndex = 1;\n });\n currentObject.style.zIndex = 2;\n };\n\n $('.sidemenu-reminder').on('click', (e) => {\n const reminderElements = document.querySelectorAll('.sidemenu-review_campaign_reminder');\n SwapZIndex(e.currentTarget, reminderElements);\n });\n\n $('.sidemenu-review_campaign_reminder').on('click', (e) => {\n const reminderElements = document.querySelectorAll('.sidemenu-reminder');\n SwapZIndex(e.currentTarget, reminderElements);\n });\n\n // 製品紹介文が登録されていない時のリマインダー非表示\n $('.close-reminder').on('click', (e) => {\n e.preventDefault();\n $('.sidemenu-reminder').hide();\n });\n\n // 開始7日以内で準備中のレビューキャンペーンがある時のリマインダー非表示\n $('.close-eview-campaign-reminder').on('click', (e) => {\n e.preventDefault();\n e.currentTarget.parentElement.hidden = true;\n const productId = window.location.pathname.split('/')[2];\n const url = `/client/${productId}/review_campaigns/review_campaign_close_remander`;\n // セッション情報を設定する\n $.ajax({\n url,\n dataType: 'json',\n });\n });\n\n // 受賞済みバッジで取得可能なバッジを選択するラジオボタンをクリックした時に説明文が表示される\n const badgeExplanations = {\n normal: '総合部門で受賞した結果を表示しています',\n large_company: '大企業(従業員数1,000人以上の企業)に評価された称号を表示しています',\n mid_company: '中堅企業(従業員数100~999人の企業)に評価された称号を表示しています',\n small_company: '中小企業(従業員数100人未満の企業)に評価された称号を表示しています',\n year: '3年間同じ種別のバッジを連続で受賞した称号を表示しています',\n };\n const radioBtn = document.querySelectorAll(\"input[type='radio'][name='company-size']\");\n for (let i = 0; i < radioBtn.length; i++) {\n radioBtn[i].addEventListener('change', () => {\n if (radioBtn[i].checked && radioBtn[i].value === 'three_year,five_year') {\n document.querySelector('#badge-explanation').innerHTML = badgeExplanations.year;\n } else if (radioBtn[i].checked) {\n document.querySelector('#badge-explanation').innerHTML = badgeExplanations[radioBtn[i].value];\n }\n });\n }\n});\n","/**\n * Japanese translation for foundation-datepicker\n * Norio Suzuki