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AAKc,YAA/B,WAAnC,IAEA7E,KAAKkM,WAAWrJ,GAAOX,UAAUC,IAAOnC,KAAK6E,YAA7C,YACA7E,KAAKmM,aAAatJ,GAAOX,UAAUC,IAAOnC,KAAK6E,YAA/C,eAzBJ,UAE6B5B,MAAUA,IACpB,CAAC,MAAO,gVADYA,0VCFvC,+KAE6BA,kpCCF7B,oLAOG,OAPH,EASEgB,WAAAA,WACE,GAAIjE,KAAKsc,gBAAiB,CACxB,KAAM,oBAAqB/V,QAAS,OAEpC,IACMgW,EADY,IAAIxE,gBAAgBjK,SAAS0O,QACdpZ,IAAI,cAErC2I,MAAMsE,KAAKrQ,KAAKyc,aAAaC,SAAS7Y,SAAQ,SAAA8Y,GACxCA,EAAOlT,QAAU8S,IACnBI,EAAOC,UAAW,EAFtB,GAKD,KAGHC,OAAAA,SAAQ9a,EAAG+a,GACT,IAAMC,EAAa,IAAIC,IAAIzW,OAAOuH,SAASC,MACrCkP,EAAgB,IAAIlF,gBAAgBgF,EAAWP,QAarD,OAXIM,EACFG,EAAcC,IAAI,aAAcJ,GAEhCG,EAAcE,OAAO,cAGvBF,EAAcE,OAAO,QAErBJ,EAAWP,OAASS,EAAc/E,WAChB6E,EAAW7E,UAE7B,IAGFkF,aAAAA,SAAcrb,GACZ,IAAM+a,EAAS/a,EAAEC,OAAOyH,MACxBqE,SAASC,KAAO/N,KAAK6c,OAAO9a,EAAG+a,EAA/BhP,mGAAAA,CAAAA,EAAAA,CAAAA,CAAAA,IAAAA,YAAAA,IAvCF,WACE,OAAO9N,KAAKoC,QAAQlC,QAAQmC,SAC7B,OAPH,UAE6BY,MAAUA,IACpB,CAAC,iBADmBA","sources":["webpack://caresul-app/./app/components/site/pages/facility/images/mobile/component_controller.js","webpack://caresul-app/./app/components/site/pages/facility/mobile/component_controller.js","webpack://caresul-app/./app/components/site/pages/facility/panorama/mobile/component_controller.js","webpack://caresul-app/./app/components/site/pages/facility/photos/mobile/component_controller.js","webpack://caresul-app/./app/components/site/pages/facility/photos/photos_section/mobile/component_controller.js","webpack://caresul-app/./app/components/site/pages/facility/photos/tab_bar/mobile/component_controller.js","webpack://caresul-app/./app/components/site/pages/facility/plans/copayment/mobile/component_controller.js","webpack://caresul-app/./app/components/site/pages/facility/plans/mobile/component_controller.js","webpack://caresul-app/./app/components/site/pages/facility/plans/plan/mobile/component_controller.js","webpack://caresul-app/./app/components/site/pages/facility/restraint_modal/mobile/component_controller.js","webpack://caresul-app/./app/components/site/pages/facility/similar_facilities/mobile/component_controller.js","webpack://caresul-app/./app/components/site/pages/facility/summary/header/mobile/component_controller.js","webpack://caresul-app/./app/components/site/pages/facility/summary/mobile/component_controller.js","webpack://caresul-app/./app/components/site/pages/facility/tab_bar/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/button/mylist/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/condition_search/api/common/client.js","webpack://caresul-app/./app/components/site/parts/condition_search/api/common/count.js","webpack://caresul-app/./app/components/site/parts/condition_search/category/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/condition_search/feature/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/condition_search/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/condition_search/modal/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/condition_search/necessary_medical_treatments/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/condition_search/optional_item/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/condition_search/popular_feature/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/conversion_bar_professional_diagnosis/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/conversion_bar_tenant_consultation/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/conversion_bar_tenant_consultation_shortest/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/cost_market/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/cost_market/table/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/facility/add_my_facilities/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/facility/basic/description/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/facility/basic/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/facility/comparison/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/facility/facilities/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/facility/image_modal_slide/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/facility/info/address/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/facility/info/cost/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/facility/info/other_info/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/facility/list_item/cost/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/facility/list_item/images/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/facility/list_item/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/facility/occupant_interviews/item/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/facility/other_facilities_link/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/facility/review_tooltip/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/facility/reviews/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/fixed_header/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/footer/back_to_top/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/header/my/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/modal/community_facility_verify/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/nursing_facilities/category_description/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/nursing_facilities/charm/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/nursing_facilities/distribution_and_comparison/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/nursing_facilities/elderly_assistance_policies/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/prefecture_links/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/professional_diagnosis_link/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/retry_search/api/common/client.js","webpack://caresul-app/./app/components/site/parts/retry_search/api/common/count.js","webpack://caresul-app/./app/components/site/parts/retry_search/category/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/retry_search/feature/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/retry_search/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/retry_search/modal/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/retry_search/necessary_medical_treatments/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/retry_search/popular_feature/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/search/area/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/search/cost/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/search/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/search/result/mobile/component_controller.js","webpack://caresul-app/./app/components/site/parts/sort_links/mobile/component_controller.js"],"sourcesContent":["import { Controller } from '@hotwired/stimulus'\nimport Swiper, { Navigation, Thumbs, Pagination } from 'swiper/core'\n\nSwiper.use([Navigation, Thumbs, Pagination])\n\nexport default class extends Controller {\n static targets = ['seeMoreNote', 'large', 'largeModal', 'modal', 'small']\n\n connect () {\n const imagesCount = this.largeTarget.dataset.imagesCount\n\n if (this.hasSmallTarget) {\n this.thumbs = new Swiper(this.smallTarget, {\n loop: false,\n slidesPerView: 7,\n slidesPerGroup: 7,\n spaceBetween: 3,\n spaceBefore: 3,\n spaceAfter: 3,\n aspectRatio: 1,\n watchSlidesVisibility: true,\n watchSlidesProgress: true,\n slideToClickedSlide: true,\n })\n }\n\n this.slider = new Swiper(this.largeTarget, {\n loop: false,\n watchSlidesVisibility: true,\n watchSlidesProgress: true,\n slideToClickedSlide: true,\n slidesPerView: 1,\n pagination: {\n el: '.swiper-pagination',\n type: 'fraction',\n formatFractionTotal: function (number) {\n return imagesCount\n },\n },\n navigation: {\n nextEl: '#swiperButtonNext',\n prevEl: '#swiperButtonPrev',\n },\n thumbs: {\n swiper: this.thumbs,\n },\n })\n\n this.modalSlider = new Swiper(this.largeModalTarget, {\n loop: false,\n slidesPerView: 1,\n pagination: {\n el: '.swiper-pagination',\n type: 'fraction',\n formatFractionTotal: function (number) {\n return imagesCount\n },\n },\n navigation: {\n nextEl: '#swiperModalButtonNext',\n prevEl: '#swiperModalButtonPrev',\n },\n thumbs: {\n swiper: this.slider,\n },\n observer: true,\n observeParents: true,\n })\n }\n\n seeMore (e) {\n e.target.parentElement.classList.add(`${this.element.dataset.classname}::hide`)\n e.target.parentElement.nextElementSibling.classList.add(`${this.element.dataset.classname}::show`)\n }\n\n show (e) {\n e.preventDefault()\n\n const imageSrc = e.target.getAttribute('src')\n const index = Number(e.currentTarget.dataset.index)\n if (imageSrc) {\n this.modalTarget.classList.add(`${this.element.dataset.classname}::visible`)\n }\n }\n\n hide (e) {\n e.preventDefault()\n this.modalTarget.classList.remove(`${this.element.dataset.classname}::visible`)\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport Cookies from 'js-cookie'\n\nexport default class extends Controller {\n connect () {\n if (this.modalId() === Cookies.get('verified_modal_id')) {\n this.disableMyFacilitiesModal()\n this.disableInquiryModal()\n }\n }\n\n modalId () {\n return this.element.dataset.modalid\n }\n\n controllerForAdding () {\n return this.element.dataset.controllerforadding\n }\n\n controllerForUpdating () {\n return this.element.dataset.controllerforupdating\n }\n\n disableMyFacilitiesModal () {\n this.element.querySelectorAll('.myfacilities-with-modal').forEach((element) => {\n element.dataset.action = `click->${this.controllerForAdding()}#add click->${this.controllerForUpdating()}#update`\n })\n }\n\n disableInquiryModal () {\n this.element.querySelectorAll('.inquiry-with-modal').forEach((element) => {\n element.dataset.action = ''\n })\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = ['screen', 'panoramaThumb']\n initialize () {\n const panoramaThumbImages = this.panoramaThumbTarget.querySelectorAll('img')\n const screen = this.screenTarget\n panoramaThumbImages.forEach(function (thumb) {\n thumb.addEventListener('click', function () {\n if (pannellum) {\n pannellum.viewer(screen, {\n panorama: thumb.getAttribute('data-path'),\n autoLoad: true,\n compass: false,\n })\n panoramaThumbImages.forEach(function (thumb) { thumb.classList.remove('viewcomponent::site::pages::facility::panorama::mobile::active') })\n thumb.classList.add('viewcomponent::site::pages::facility::panorama::mobile::active')\n }\n })\n })\n panoramaThumbImages[0].click()\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nconst VIEW_LIMIT = 6\n\nexport default class extends Controller {\n static targets = ['restPhotos', 'open', 'close', 'classificationIndex']\n\n className () {\n return this.element.dataset.classname\n }\n\n restToggle (event) {\n const classificationIndex = event.target.dataset.classificationIndex\n const restPhotosTargetElement = this.restPhotosTargets.find(target => target.dataset.classificationIndex === classificationIndex)\n if (restPhotosTargetElement.classList.contains(`${this.className()}::accordion${classificationIndex}-close`)) {\n this.restOpen(classificationIndex, restPhotosTargetElement)\n } else {\n this.restClose(classificationIndex, restPhotosTargetElement)\n }\n }\n\n restOpen (classificationIndex, restPhotosTargetElement) {\n restPhotosTargetElement.style.maxHeight = `${restPhotosTargetElement.scrollHeight}px`\n restPhotosTargetElement.classList.remove(`${this.className()}::accordion${classificationIndex}-close`)\n restPhotosTargetElement.classList.add(`${this.className()}::accordion${classificationIndex}-open`)\n this.openTargets.find(target => target.dataset.classificationIndex === classificationIndex).style.display = 'none'\n this.closeTargets.find(target => target.dataset.classificationIndex === classificationIndex).style.display = 'flex'\n }\n\n restClose (classificationIndex, restPhotosTargetElement) {\n restPhotosTargetElement.style.maxHeight = '0px'\n restPhotosTargetElement.classList.remove(`${this.className()}::accordion${classificationIndex}-open`)\n restPhotosTargetElement.classList.add(`${this.className()}::accordion${classificationIndex}-close`)\n this.openTargets.find(target => target.dataset.classificationIndex === classificationIndex).style.display = 'flex'\n this.closeTargets.find(target => target.dataset.classificationIndex === classificationIndex).style.display = 'none'\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nconst VIEW_LIMIT = 6\n\nexport default class extends Controller {\n static targets = ['restPhotos', 'open', 'close', 'classificationIndex']\n\n className () {\n return this.element.dataset.classname\n }\n\n restToggle (event) {\n const classificationIndex = event.target.dataset.classificationIndex\n const restPhotosTargetElement = this.restPhotosTargets.find(target => target.dataset.classificationIndex === classificationIndex)\n if (restPhotosTargetElement.classList.contains(`${this.className()}::accordion${classificationIndex}-close`)) {\n this.restOpen(classificationIndex, restPhotosTargetElement)\n } else {\n this.restClose(classificationIndex, restPhotosTargetElement)\n }\n }\n\n restOpen (classificationIndex, restPhotosTargetElement) {\n restPhotosTargetElement.style.maxHeight = `${restPhotosTargetElement.scrollHeight}px`\n restPhotosTargetElement.classList.remove(`${this.className()}::accordion${classificationIndex}-close`)\n restPhotosTargetElement.classList.add(`${this.className()}::accordion${classificationIndex}-open`)\n this.openTargets.find(target => target.dataset.classificationIndex === classificationIndex).style.display = 'none'\n this.closeTargets.find(target => target.dataset.classificationIndex === classificationIndex).style.display = 'flex'\n }\n\n restClose (classificationIndex, restPhotosTargetElement) {\n restPhotosTargetElement.style.maxHeight = '0px'\n restPhotosTargetElement.classList.remove(`${this.className()}::accordion${classificationIndex}-open`)\n restPhotosTargetElement.classList.add(`${this.className()}::accordion${classificationIndex}-close`)\n this.openTargets.find(target => target.dataset.classificationIndex === classificationIndex).style.display = 'flex'\n this.closeTargets.find(target => target.dataset.classificationIndex === classificationIndex).style.display = 'none'\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport SmoothScroll from 'smooth-scroll'\n\nexport default class extends Controller {\n static targets = ['container', 'panorama', 'classificationFirst', 'classificationSecond', 'classificationThird']\n\n initialize () {\n this.scroll = new SmoothScroll(null, {\n offset: 55,\n speed: 600,\n speedAsDuration: true,\n easing: 'linear',\n updateURL: false,\n popstate: false,\n })\n\n let lastScrollPosition = 0\n let ticking = false\n\n window.addEventListener('scroll', () => {\n lastScrollPosition = window.scrollY\n\n if (!ticking) {\n window.requestAnimationFrame(() => {\n this.toggleVisibility(lastScrollPosition)\n ticking = false\n })\n\n ticking = true\n }\n })\n\n this.doWhenIntersect(document.querySelector('#panorama'), this.panoramaTarget)\n this.doWhenIntersect(document.querySelector('#classification-0'), this.classificationFirstTarget)\n this.doWhenIntersect(document.querySelector('#classification-1'), this.classificationSecondTarget)\n this.doWhenIntersect(document.querySelector('#classification-2'), this.classificationThirdTarget)\n }\n\n className () {\n return this.element.dataset.classname\n }\n\n doWhenIntersect (targetSection, targetTab) {\n if (!targetSection) return\n\n const callback = entries => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n targetTab.classList.add(`${this.className()}::active`)\n } else {\n targetTab.classList.remove(`${this.className()}::active`)\n }\n })\n }\n\n const observer = new IntersectionObserver(callback, {\n rootMargin: '0px',\n threshold: 0.2,\n })\n observer.observe(targetSection)\n }\n\n toggleVisibility (scrollPosition) {\n if (scrollPosition > 400) {\n this.containerTarget.classList.add(`${this.className()}::visible`)\n } else {\n this.containerTarget.classList.remove(`${this.className()}::visible`)\n }\n }\n\n scrollTo (id) {\n const anchor = document.querySelector(id)\n this.scroll.animateScroll(anchor)\n }\n\n scrollToPanorama () {\n this.scrollTo('#panorama')\n }\n\n scrollToClassificationFirst () {\n this.scrollTo('#classification-0')\n }\n\n scrollToClassificationSecond () {\n this.scrollTo('#classification-1')\n }\n\n scrollToClassificationThird () {\n this.scrollTo('#classification-2')\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n get className () {\n return this.element.dataset.classname\n }\n\n toggle (e) {\n const target = e.target.parentNode\n\n if (target.classList.contains(`${this.className}::accordion-close`)) {\n this.open(target)\n } else {\n this.close(target)\n }\n }\n\n open (target) {\n target.classList.remove(`${this.className}::accordion-close`)\n target.classList.add(`${this.className}::accordion-open`)\n }\n\n close (target) {\n target.classList.remove(`${this.className}::accordion-open`)\n target.classList.add(`${this.className}::accordion-close`)\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nconst VIEW_LIMIT = 3\n\nexport default class extends Controller {\n static targets = ['roomTypeSelect', 'careLevelSelect', 'careInsuranceRateSelect', 'plan', 'planNone', 'plansOpen', 'plansClose', 'kaigoHoken', 'step1', 'step2']\n static values = {\n unit: Array,\n category: Number,\n areaPrice: Number,\n }\n\n initialize () {\n this.planTargets.forEach((plan, index) => {\n if (index >= VIEW_LIMIT) {\n plan.classList.add(`${this.className}::hidden`)\n } else {\n plan.classList.remove(`${this.className}::hidden`)\n }\n })\n\n if (this.hasPlansOpenTarget && this.hasPlansCloseTarget) {\n if (this.planTargets.length > VIEW_LIMIT) {\n this.plansOpenTarget.style.display = 'flex'\n this.plansCloseTarget.style.display = 'none'\n } else {\n this.plansOpenTarget.style.display = 'none'\n this.plansCloseTarget.style.display = 'none'\n }\n }\n\n if (this.hasPlanNoneTarget) {\n this.planNoneTarget.style.display = 'none'\n }\n\n if (this.hasCareLevelSelectTarget && this.hasCareInsuranceRateSelectTarget) {\n this.filterBySelect()\n }\n }\n\n get className () {\n return this.element.dataset.classname\n }\n\n updateLabel () {\n const selectState = this.careLevelSelectTarget.value && this.careInsuranceRateSelectTarget.value\n const checkValues = []\n this.roomTypeSelectTargets.forEach(element => {\n if (element.checked) {\n checkValues.push(Number(element.value))\n }\n })\n const checkState = checkValues.length > 0\n\n if (selectState && !checkState) {\n this.step1Target.classList.remove(`${this.className}::current`)\n this.step2Target.classList.add(`${this.className}::current`)\n } else if (selectState && checkState) {\n this.step1Target.classList.remove(`${this.className}::current`)\n this.step2Target.classList.remove(`${this.className}::current`)\n } else {\n this.step1Target.classList.add(`${this.className}::current`)\n this.step2Target.classList.remove(`${this.className}::current`)\n }\n }\n\n filterBySelect () {\n if (this.careLevelSelectTarget.value && !this.careInsuranceRateSelectTarget.value) {\n this.careLevelSelectTarget.classList.remove(`${this.className}::current`)\n this.careInsuranceRateSelectTarget.classList.add(`${this.className}::current`)\n } else if (this.careLevelSelectTarget.value && this.careInsuranceRateSelectTarget.value) {\n this.careLevelSelectTarget.classList.remove(`${this.className}::current`)\n this.careInsuranceRateSelectTarget.classList.remove(`${this.className}::current`)\n } else {\n this.careLevelSelectTarget.classList.add(`${this.className}::current`)\n this.careInsuranceRateSelectTarget.classList.remove(`${this.className}::current`)\n }\n this.updateLabel()\n }\n\n filterByRoomType () {\n const checkValues = []\n let count = 0\n\n this.roomTypeSelectTargets.forEach(element => {\n if (element.checked) {\n checkValues.push(Number(element.value))\n }\n })\n\n if (checkValues.length === 0) {\n this.initialize()\n return\n }\n\n this.planTargets.forEach(plan => {\n if (checkValues.includes(Number(plan.dataset.roomCategory))) {\n plan.classList.remove(`${this.className}::hidden`)\n count++\n } else {\n plan.classList.add(`${this.className}::hidden`)\n }\n })\n\n if (this.hasPlanNoneTarget) {\n if (count === 0) {\n this.planNoneTarget.style.display = 'flex'\n } else {\n this.planNoneTarget.style.display = 'none'\n }\n }\n\n if (this.hasPlansOpenTarget && this.hasPlansCloseTarget) {\n this.plansOpenTarget.style.display = 'none'\n this.plansCloseTarget.style.display = 'none'\n }\n\n this.updateLabel()\n }\n\n changeNursingInsurance () {\n if (!this.careLevelSelectTarget.value || !this.careInsuranceRateSelectTarget.value) {\n this.insertKaigoHoken(0)\n return\n }\n\n const unit = this.unitValue.find(element => element.category_id === Number(this.categoryValue) && element.care_level_id === Number(this.careLevelSelectTarget.value))\n\n if (unit) {\n const kaigoHoken = Number(this.areaPriceValue) * unit.value * (Number(this.careInsuranceRateSelectTarget.value) * 0.1)\n const kaigoHokenRound = Math.round(kaigoHoken / 1000) / 10\n this.insertKaigoHoken(kaigoHokenRound)\n } else {\n this.insertKaigoHoken(0)\n }\n }\n\n insertKaigoHoken (kaigoHoken) {\n this.planTargets.forEach(plan => {\n const monthlyFee = (Math.round(Number(plan.dataset.monthlyFee) / 1000) + (kaigoHoken * 10)) / 10\n plan.querySelectorAll('.monthly-fee em').forEach(element => {\n element.innerHTML = this.feeToString(monthlyFee)\n })\n })\n\n this.kaigoHokenTargets.forEach(element => {\n element.innerHTML = kaigoHoken\n })\n }\n\n feeToString (tenThousandAmount) {\n if (tenThousandAmount > 10000) {\n const split = String(tenThousandAmount).split('.')\n split[0] = split[0].slice(0, -4) + '億' + split[0].slice(-4)\n return split.join('.')\n } else {\n return String(tenThousandAmount)\n }\n }\n\n restOpen () {\n this.planTargets.forEach((plan, index) => {\n if (index >= VIEW_LIMIT) {\n plan.classList.remove(`${this.className}::hidden`)\n }\n })\n\n if (this.hasPlansOpenTarget && this.hasPlansCloseTarget && this.hasPlanNoneTarget) {\n this.plansOpenTarget.style.display = 'none'\n this.plansCloseTarget.style.display = 'flex'\n this.planNoneTarget.style.display = 'none'\n }\n }\n\n restClose () {\n this.planTargets.forEach((plan, index) => {\n if (index >= VIEW_LIMIT) {\n plan.classList.add(`${this.className}::hidden`)\n }\n })\n\n if (this.hasPlansOpenTarget && this.hasPlansCloseTarget && this.hasPlanNoneTarget) {\n this.plansOpenTarget.style.display = 'flex'\n this.plansCloseTarget.style.display = 'none'\n this.planNoneTarget.style.display = 'none'\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = ['tab', 'panel']\n\n get className () {\n return this.element.dataset.classname\n }\n\n initialize () {\n this.tabTargets[0].classList.add(`${this.className}::active`)\n this.panelTargets[0].classList.remove(`${this.className}::hidden`)\n }\n\n planToggle () {\n if (this.element.classList.contains(`${this.className}::accordion-close`)) {\n this.planOpen()\n } else {\n this.planClose()\n }\n }\n\n planOpen () {\n this.element.classList.remove(`${this.className}::accordion-close`)\n this.element.classList.add(`${this.className}::accordion-open`)\n window.gtag('event', 'tap_plan')\n }\n\n planClose () {\n this.element.classList.remove(`${this.className}::accordion-open`)\n this.element.classList.add(`${this.className}::accordion-close`)\n }\n\n changePanel (e) {\n this.openPanel(e.currentTarget)\n }\n\n openPanel (targetTab) {\n const currentIndex = this.tabTargets.indexOf(targetTab)\n\n this.inactiveAllButton()\n this.closeAllPanel()\n targetTab.classList.add(`${this.className}::active`)\n this.panelTargets[currentIndex].classList.remove(`${this.className}::hidden`)\n this.currentButton = targetTab\n }\n\n inactiveAllButton () {\n this.tabTargets.forEach(button => {\n button.classList.remove(`${this.className}::active`)\n })\n }\n\n closeAllPanel () {\n this.panelTargets.forEach(panel => {\n panel.classList.add(`${this.className}::hidden`)\n })\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = ['modal']\n\n connect () {\n this.modalShowedCounter = 0\n setTimeout(() => { this.showModal() }, this.firstTime)\n }\n\n get className () {\n return this.element.dataset.classname\n }\n\n get firstTime () {\n return this.element.dataset.firsttime\n }\n\n get secondTime () {\n return this.element.dataset.secondtime\n }\n\n get restartTime () {\n return this.element.dataset.restarttime\n }\n\n showModal () {\n if (this.hasModalTarget) {\n if (this.modalShowedCounter < 2) {\n if (!document.querySelector('[class*=\"modal-open\"]')) {\n this.modalTarget.classList.add(`${this.className}::visible`)\n this.modalShowedCounter++\n }\n }\n }\n }\n\n close () {\n if (this.hasModalTarget) {\n this.modalTarget.classList.remove(`${this.className}::visible`)\n setTimeout(() => { this.showModal() }, this.secondTime)\n }\n }\n\n setRestraintModal () {\n if (this.hasModalTarget) {\n if (this.modalShowedCounter <= 2) {\n if (!document.querySelector('[class*=\"modal-open\"]')) {\n setTimeout(() => { this.showModal() }, this.restartTime)\n }\n }\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nconst VISIBLE_POSITION = 400\n\nexport default class extends Controller {\n initialize () {\n let lastScrollPosition = 0\n let ticking = false\n\n window.addEventListener('scroll', () => {\n lastScrollPosition = window.scrollY\n\n if (!ticking) {\n window.requestAnimationFrame(() => {\n this.toggleVisibility(lastScrollPosition)\n ticking = false\n })\n\n ticking = true\n }\n })\n }\n\n className () {\n return this.element.dataset.classname\n }\n\n toggleVisibility (scrollPosition) {\n if (scrollPosition > VISIBLE_POSITION) {\n this.element.classList.add(`${this.className()}::visible`)\n } else {\n this.element.classList.remove(`${this.className()}::visible`)\n }\n }\n\n close (e) {\n e.preventDefault()\n\n this.element.classList.add(`${this.className()}::disabled`)\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport SmoothScroll from 'smooth-scroll'\n\nexport default class extends Controller {\n initialize () {\n this.scroll = new SmoothScroll(null, {\n offset: 55,\n speed: 600,\n speedAsDuration: true,\n easing: 'linear',\n updateURL: false,\n popstate: false,\n })\n }\n\n scrollTo (id) {\n const anchor = document.querySelector(id)\n this.scroll.animateScroll(anchor)\n }\n\n scrollOrRedirectToReviews (e) {\n const reviewsSection = document.getElementById('reviews')\n if (reviewsSection) {\n this.scrollTo('#reviews')\n } else {\n window.location.href = e.target.dataset.url\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport SmoothScroll from 'smooth-scroll'\n\nexport default class extends Controller {\n static targets = ['overlay', 'moreButton', 'moreText']\n\n initialize () {\n this.scroll = new SmoothScroll(null, {\n offset: 55,\n speed: 600,\n speedAsDuration: true,\n easing: 'linear',\n updateURL: false,\n popstate: false,\n })\n }\n\n connect () {\n this.overlayTargets.forEach((target) => {\n target.classList.add('viewcomponent::site::pages::facility::summary::mobile::visible')\n })\n }\n\n hide (e) {\n e.target.classList.remove('viewcomponent::site::pages::facility::summary::mobile::visible')\n }\n\n scrollTo (id) {\n const anchor = document.querySelector(id)\n this.scroll.animateScroll(anchor)\n }\n\n scrollOrRedirectToAccess (e) {\n const plansSection = document.getElementById('access')\n if (plansSection) {\n e.preventDefault()\n this.scrollTo('#access')\n }\n }\n\n scrollOrRedirectToReviews (e) {\n const reviewsSection = document.getElementById('reviews')\n if (reviewsSection) {\n this.scrollTo('#reviews')\n } else {\n window.location.href = e.target.dataset.url\n }\n }\n\n more () {\n this.moreButtonTarget.style.display = 'none'\n this.moreTextTarget.style.display = 'inline'\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport SmoothScroll from 'smooth-scroll'\n\nexport default class extends Controller {\n static targets = ['container', 'basic', 'plans', 'photos', 'reviews', 'medicalCares', 'access']\n\n initialize () {\n this.scroll = new SmoothScroll(null, {\n offset: 55,\n speed: 600,\n speedAsDuration: true,\n easing: 'linear',\n updateURL: false,\n popstate: false,\n })\n\n let lastScrollPosition = 0\n let ticking = false\n\n window.addEventListener('scroll', () => {\n lastScrollPosition = window.scrollY\n\n if (!ticking) {\n window.requestAnimationFrame(() => {\n this.toggleVisibility(lastScrollPosition)\n ticking = false\n })\n\n ticking = true\n }\n })\n\n if ('IntersectionObserver' in window &&\n 'IntersectionObserverEntry' in window &&\n 'intersectionRatio' in window.IntersectionObserverEntry.prototype) {\n this.doWhenIntersect(document.querySelector('#basic'), this.basicTarget)\n this.doWhenIntersect(document.querySelector('#plans-view'), this.plansTarget) // 要素が長すぎるため監視位置調整\n this.doWhenIntersect(document.querySelector('#photos'), this.photosTarget)\n this.doWhenIntersect(document.querySelector('#reviews'), this.reviewsTarget)\n this.doWhenIntersect(document.querySelector('#supported_medical_cares'), this.medicalCaresTarget)\n this.doWhenIntersect(document.querySelector('#access'), this.accessTarget)\n this.admissionConditionObserveIntersection()\n }\n\n this.tabPosition = this.containerTarget.offsetTop\n }\n\n className () {\n return this.element.dataset.classname\n }\n\n doWhenIntersect (targetSection, targetTab) {\n if (!targetSection) return\n\n const callback = entries => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n targetTab.classList.add(`${this.className()}::active`)\n } else {\n targetTab.classList.remove(`${this.className()}::active`)\n }\n })\n }\n\n const observer = new IntersectionObserver(callback, {\n rootMargin: '-50% 0px',\n threshold: 0,\n })\n observer.observe(targetSection)\n }\n\n admissionConditionObserveIntersection () {\n const targetElement = document.querySelector('#admission_condition')\n\n if (!targetElement) return\n let fired = false\n\n const callback = entries => {\n entries.forEach(entry => {\n if (entry.isIntersecting && !fired) {\n document.getElementById('view_condition_area').click()\n console.log('Intersection occurred!')\n fired = true\n observer.unobserve(entry.target)\n }\n })\n }\n\n const observer = new IntersectionObserver(callback, {\n rootMargin: '0px',\n threshold: 0.2,\n })\n observer.observe(targetElement)\n }\n\n toggleVisibility (scrollPosition) {\n if (scrollPosition > this.tabPosition) {\n this.containerTarget.classList.add(`${this.className()}::visible`)\n } else {\n this.containerTarget.classList.remove(`${this.className()}::visible`)\n }\n }\n\n scrollTo (id) {\n const anchor = document.querySelector(id)\n this.scroll.animateScroll(anchor)\n }\n\n scrollToBasic () {\n this.scrollTo('#basic')\n }\n\n scrollToFeatures () {\n this.scrollTo('#features')\n }\n\n scrollToPlans () {\n this.scrollTo('#plans')\n }\n\n scrollToPhotos () {\n this.scrollTo('#photos')\n }\n\n scrollToReviews () {\n this.scrollTo('#reviews')\n }\n\n scrollToMedicalCares () {\n this.scrollTo('#supported_medical_cares')\n }\n\n scrollToAccess () {\n this.scrollTo('#access')\n }\n\n scrollToBuilding () {\n this.scrollTo('#building')\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport Cookies from 'js-cookie'\n\nexport default class extends Controller {\n facilityId () {\n return parseInt(this.element.dataset.facilityid)\n }\n\n className () {\n return this.element.dataset.classname\n }\n\n connect () {\n const ids = JSON.parse(Cookies.get('check_nursing_facility_ids') || '[]')\n if (Array.isArray(ids) && ids.includes(this.facilityId())) {\n this.element.classList.add(`${this.className()}::bookmarked`)\n\n Array.from(this.element.children).forEach(child => {\n if (child.children[1]) child.children[1].innerText = '選択中'\n })\n }\n }\n}\n","import axios from 'axios'\n\nexport const client = axios.create()\n","import { client } from './client'\n\nexport const getCount = async (params) => {\n const response = await client.get('/api/nursing_facilities/count/', { params })\n const data = response.data\n return data\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = [\n 'modal',\n ]\n\n get className () {\n return this.element.dataset.classname\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n get className () {\n return this.element.dataset.classname\n }\n\n toggleAccordion (e) {\n e.preventDefault()\n\n const target = e.target.parentNode\n if (target.classList.contains(`${this.className}::accordion-open`)) {\n target.classList.remove(`${this.className}::accordion-open`)\n } else {\n target.classList.add(`${this.className}::accordion-open`)\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport { getCount } from '../api/common/count'\n\nexport default class extends Controller {\n static targets = [\n 'modal',\n 'tab',\n 'panel',\n 'form',\n 'submit',\n 'loading',\n 'accordion',\n 'accordionButtonOpen',\n 'accordionButtonClose',\n 'notifyText',\n 'featureCheckbox',\n 'cityCheckbox',\n 'routeCheckbox',\n 'stationCheckbox',\n 'prefectureId',\n 'cityId',\n 'ordinanceDesignatedCityId',\n 'stationId',\n 'stationList',\n 'cityList',\n 'ordinanceDesignatedCityList',\n 'citySelectedContent',\n 'submitButton',\n 'checkboxAll',\n 'checkboxes',\n ]\n\n connect () {\n this.setFacilitiesCount()\n }\n\n get className () {\n return this.element.dataset.classname\n }\n\n changeRoutePanel () {\n this.cityIdTargets.forEach((element, _index) => element.remove())\n this.ordinanceDesignatedCityIdTargets.forEach((element, _index) => element.remove())\n this.cityListTargets.forEach((element, _index) => { element.checked = false })\n this.ordinanceDesignatedCityListTargets.forEach((element, _index) => { element.checked = false })\n }\n\n changeAreaPanel () {\n this.stationIdTargets.forEach((element, _index) => element.remove())\n this.stationListTargets.forEach((element, _index) => { element.checked = false })\n }\n\n toggleModal (e) {\n e.preventDefault()\n const targetModalIndex = e.target.dataset.modalIndex\n\n if (this.modalTarget.classList.contains(`${this.className}::modal-open`)) {\n document.documentElement.classList.remove('base-fixed')\n this.modalTarget.classList.remove(`${this.className}::modal-open`)\n } else {\n document.documentElement.classList.add('base-fixed')\n this.modalTarget.classList.add(`${this.className}::modal-open`)\n this.modalInitialize(targetModalIndex)\n if (targetModalIndex * 1 === 0) {\n this.scrollToselectedPrefecture()\n }\n }\n }\n\n modalInitialize (targetModalIndex) {\n if (this.hasTabTarget && this.tabTargets.length > targetModalIndex) {\n this.tabTargets[targetModalIndex].classList.add('viewcomponent::site::parts::condition_search::modal::mobile::active')\n }\n if (this.hasPanelTarget && this.panelTargets.length > targetModalIndex) {\n this.panelTargets[targetModalIndex].classList.remove('viewcomponent::site::parts::condition_search::modal::mobile::hidden')\n }\n }\n\n ga () {\n window.gtagEvent('event', '', 'search_tap_modal')\n }\n\n validate (e) {\n e.preventDefault()\n\n // city_listとordinance_designated_city_list、station_listのいずれかがチェックされている場合\n if (this.cityListTargets.some((element) => element.checked) ||\n this.ordinanceDesignatedCityListTargets.some((element) => element.checked) ||\n this.stationListTargets.some((element) => element.checked)\n ) {\n // prefecture_idが存在したら削除し、該当のhidden_fieldを削除する\n if (this.prefectureIdTargets.length > 0) {\n this.prefectureIdTargets.forEach((element) => element.remove())\n }\n }\n\n this.formTarget.submit()\n }\n\n clickAreaCheckBox (e) {\n // 駅の場合は別路線の同一駅チェックも変更する必要がある\n if (e.target.name === 'station_ids[]') {\n Array.from(this.stationListTargets).filter(stationList => stationList.value === e.target.value).forEach(stationList => { return (stationList.checked = e.target.checked) })\n }\n\n // 路線・エリアの場合は選択中のものを下部に表示する\n if (['station_ids[]', 'city_ids[]', 'ordinance_designated_city_ids[]'].includes(e.target.name)) {\n this.setSelectedContentList(e)\n }\n }\n\n changeFormValue (e) {\n this.setFacilitiesCount()\n }\n\n manipulateString (a, b) {\n // 文字列aに文字列bが含まれているかチェック\n if (a.includes(b)) {\n // 文字列bが含まれている場合は、文字列aから文字列bを削除して返す\n return a.replace(b, '')\n } else {\n // 文字列bが含まれていない場合は、文字列aに文字列bを追加して返す\n return a + ` ${b}`\n }\n }\n\n setSelectedContentList (e) {\n const selectedContent = e.target.closest('label').querySelector('span').textContent\n const replacementText = this.manipulateString(this.citySelectedContentTarget.textContent, selectedContent)\n this.citySelectedContentTarget.innerHTML = replacementText\n }\n\n setFacilitiesCount () {\n if (typeof FormData !== 'function') {\n return\n }\n\n const formData = new FormData(this.formTarget)\n // city_ids, ordinance_designated_city_ids, station_idsのいずれかがチェックされている場合、prefecture_idは検索条件に含めない\n const prefectureId = formData.getAll('city_ids[]').length > 0 || formData.getAll('ordinance_designated_city_ids[]').length > 0 || formData.getAll('station_ids[]').length > 0 ? null : formData.get('prefecture_id')\n\n const params = {\n prefecture_id: prefectureId,\n city_ids: formData.getAll('city_ids[]'),\n ordinance_designated_city_ids: formData.getAll('ordinance_designated_city_ids[]'),\n station_ids: formData.getAll('station_ids[]'),\n admission_fee_min: formData.get('admission_fee_min'),\n admission_fee_max: formData.get('admission_fee_max'),\n monthly_fee_min: formData.get('monthly_fee_min'),\n monthly_fee_max: formData.get('monthly_fee_max'),\n walking_time: formData.get('walking_time'),\n care_level_ids: formData.getAll('care_level_ids[]'),\n feature_content_ids: formData.getAll('feature_content_ids[]'),\n category_ids: formData.getAll('category_ids[]'),\n medical_care_ids: formData.getAll('medical_care_ids[]'),\n with_review: formData.get('with_review'),\n vacancies_exist: formData.get('vacancies_exist'),\n welfare_acceptable: formData.get('welfare_acceptable'),\n dementia_acceptable: formData.get('dementia_acceptable'),\n no_joint_surety_required: formData.get('no_joint_surety_required'),\n }\n\n getCount(params).then((count) => {\n const countElement = this.submitTargets[0]\n const startNumber = parseInt(countElement.textContent)\n const endNumber = count.result\n\n this.submitTargets.forEach((element) => {\n if (count.result >= 10000) {\n element.innerText = '10000+'\n this.notifyFacilitiesCountIsOver()\n this.submitButtonEnabled()\n } else if (count.result <= 0) {\n this.submitButtonDisabled()\n element.innerText = count.result\n window.gtagEvent('event', '', '0_facilities_modal')\n } else {\n this.submitButtonEnabled()\n element.innerText = count.result\n this.animateCount(countElement, startNumber, endNumber)\n }\n })\n })\n }\n\n submitButtonEnabled () {\n this.submitButtonTarget.disabled = false\n this.submitButtonTarget.classList.remove('viewcomponent::site::parts::condition_search::modal::mobile::disabled')\n }\n\n submitButtonDisabled () {\n this.submitButtonTarget.disabled = true\n this.submitButtonTarget.classList.add('viewcomponent::site::parts::condition_search::modal::mobile::disabled')\n }\n\n notifyFacilitiesCountIsOver () {\n if (this.hasNotifyTextTarget) {\n this.notifyTextTarget.style.display = 'block'\n }\n }\n\n animateCount (element, start, end) {\n let startTime = null\n\n const updateNumber = (timestamp) => {\n if (!startTime) startTime = timestamp\n const progress = Math.min((timestamp - startTime) / 200, 1)\n const currentNumber = Math.floor(start + (end - start) * progress)\n element.textContent = currentNumber\n\n if (progress < 1) {\n requestAnimationFrame(updateNumber)\n }\n }\n\n requestAnimationFrame(updateNumber)\n }\n\n toggleAccordion (e) {\n e.preventDefault()\n\n const target = e.target.parentNode\n if (target.classList.contains(`${this.className}::accordion-open`)) {\n target.classList.remove(`${this.className}::accordion-open`)\n } else {\n target.classList.add(`${this.className}::accordion-open`)\n }\n }\n\n uncheckAssociatedFeatureCheckboxes (e) {\n if (!e.target.checked) {\n const uncheckFeatureId = e.target.getAttribute('data-feature-content-id')\n this.featureCheckboxTargets.forEach((checkbox) => {\n if (checkbox.checked && checkbox.getAttribute('data-feature-content-id') === uncheckFeatureId) {\n checkbox.checked = false\n const changeEvent = new Event('change')\n checkbox.dispatchEvent(changeEvent)\n }\n })\n }\n }\n\n hideLoading (target) {\n target.style.display = 'none'\n }\n\n classNameModal () {\n return 'viewcomponent::site::parts::condition_search::modal::mobile'\n }\n\n modalMobileComponentTarget () {\n return 'data-site--parts--condition-search--modal--mobile--component-target'\n }\n\n mobileComponentTarget () {\n return 'data-site--parts--condition-search--mobile--component-target'\n }\n\n scrollToselectedPrefecture () {\n const element = document.querySelector('[data-prefecture-ids]')\n const prefectureIdsString = element.dataset.prefectureIds\n const prefectureIdsArray = JSON.parse(prefectureIdsString)\n const minPrefectureId = Math.min(...prefectureIdsArray)\n const target = document.querySelectorAll(`[data-value-pref=\"${minPrefectureId}\"]`)[0]\n if (target) this.scrollToParent(target)\n }\n\n scrollToParent (target) {\n const parentElement = document.getElementById('panel-container')\n const parentOffset = parentElement.getBoundingClientRect().top\n const childOffset = target.getBoundingClientRect().top\n const scrollTo = childOffset - parentOffset + parentElement.scrollTop\n\n parentElement.scroll({\n top: scrollTo,\n behavior: 'smooth',\n })\n }\n\n getPrefecture (e) {\n e.preventDefault()\n const { valuePref } = e.target.dataset\n const loading = this.loadingTargets.filter(element => element.dataset.valuePref === e.target.dataset.valuePref)\n const hasElement = this.cityCheckboxTargets.find(element => element.dataset.valuePref === valuePref)\n\n if (hasElement && !hasElement.innerHTML) {\n const params = new URLSearchParams()\n params.append('prefecture_ids[]', valuePref)\n const path = '/api/areas/cities?' + params.toString()\n\n fetch(path)\n .then(data => data.json())\n .then(res => {\n this.hideLoading(loading[0])\n this.cities(res)\n this.scrollToParent(e.target)\n })\n }\n }\n\n cities (data) {\n // eslint-disable-next-line camelcase\n const { id, cities, ordinance_designated_cities } = data.prefectures[0]\n const prefectureId = String(id)\n const ordinanceDesignatedCitiesList = this.createOrdinanceDesignatedCitiesList(ordinance_designated_cities)\n const citiesList = this.createCityList(cities)\n const target = this.cityCheckboxTargets.find(element => element.dataset.valuePref === prefectureId)\n if (target && !target.innerHTML) {\n target.innerHTML += ordinanceDesignatedCitiesList + citiesList\n }\n }\n\n shouldCheck (idList, inputTagValue) {\n return idList.includes(inputTagValue)\n }\n\n // MEMO: input hiddenとinput checkboxどちらのパラメータが送られてしまうのでチェックボックスが生成されたらhidden要素を削除する\n removeInputHidden (idList, inputTagValue) {\n const inputHidden = idList.filter((element, _index) => { return parseInt(element.value) === inputTagValue })[0]\n if (typeof inputHidden !== 'undefined') { inputHidden.remove() }\n }\n\n createOrdinanceDesignatedCitiesList (ordinanceDesignatedCities) {\n const ordinanceDesignatedCityIdTargets = this.ordinanceDesignatedCityIdTargets\n const ordinanceDesignatedCityIds = ordinanceDesignatedCityIdTargets.map(inputValue => parseInt(inputValue.value))\n return ordinanceDesignatedCities.map(ordinanceDesignatedCity => {\n const checked = this.shouldCheck(ordinanceDesignatedCityIds, ordinanceDesignatedCity.id)\n this.removeInputHidden(ordinanceDesignatedCityIdTargets, ordinanceDesignatedCity.id)\n return `\n
  • \n \n
  • `\n }).join('')\n }\n\n createCityList (cities) {\n const cityIdTargets = this.cityIdTargets\n const cityIds = cityIdTargets.map(inputCity => parseInt(inputCity.value))\n return cities.map((city) => {\n const checked = this.shouldCheck(cityIds, city.id)\n this.removeInputHidden(cityIdTargets, city.id)\n return `
  • \n \n
  • `\n }).join('')\n }\n\n getRoute (e) {\n e.preventDefault()\n const { valuePref } = e.target.dataset\n const loading = this.loadingTargets.filter(element => element.dataset.valuePref === e.target.dataset.valuePref)\n const hasElement = this.routeCheckboxTargets.find(element => element.dataset.valuePref === valuePref)\n\n if (hasElement && hasElement.childElementCount <= 2) {\n const params = new URLSearchParams()\n params.append('prefecture_ids[]', valuePref)\n const path = '/api/areas/stations?' + params.toString()\n\n fetch(path)\n .then(data => data.json())\n .then(res => {\n this.hideLoading(loading[1])\n this.routes(res)\n this.scrollToParent(e.target)\n })\n }\n }\n\n routes (data) {\n const { id } = data.prefectures[0]\n const prefectureId = String(id)\n const routeList = this.createRouteList(data)\n const target = this.routeCheckboxTargets.find(element => element.dataset.valuePref === prefectureId)\n\n if (target && !target.childElementCount <= 2) {\n target.innerHTML += routeList\n }\n }\n\n createRouteList (data) {\n // 路線会社>路線\n const prefectureId = String(data.prefectures[0].id)\n const companies = data.prefectures[0].company\n const routeList = companies.map(company => {\n const companyHeadingHTML = `\n
    ${company.name}
    \n `\n\n const routes = company.routes\n const routeHTML = routes.map(route => `\n
    \n
    \n
    site--parts--condition-search--modal--mobile--component#toggleAccordion click->site--parts--condition-search--mobile--component#getStation\">\n ${route.name}\n
    \n
    \n
    \n
    \n
    \n
      \n
    • \n \n
    • \n
    \n
      \n
      \n
      \n
      \n `).join('')\n\n return companyHeadingHTML + routeHTML\n }).join('')\n\n return routeList\n }\n\n checkAll (e) {\n const currentIndex = this.checkboxAllTargets.indexOf(e.currentTarget)\n const checkboxes = this.checkboxesTargets[currentIndex].querySelectorAll('input[type=\"checkbox\"]')\n const allCheckbox = e.currentTarget\n const isChecked = allCheckbox.checked\n\n function updateCheckboxes (isChecked) {\n checkboxes.forEach((checkbox) => {\n if (checkbox.checked !== isChecked) {\n checkbox.checked = isChecked\n }\n })\n\n // setTimeoutを使用して、非同期にイベントを発火する\n setTimeout(() => {\n checkboxes.forEach((checkbox) => {\n const event = new Event('click')\n checkbox.dispatchEvent(event)\n })\n }, 0)\n }\n\n updateCheckboxes(isChecked)\n\n this.setFacilitiesCount()\n }\n\n getStation (e) {\n e.preventDefault()\n const { valuePref, valueCompany, valueRoute } = e.target.dataset\n const loading = this.loadingTargets.filter(element => element.dataset.valueRoute === valueRoute && element.dataset.valuePref === valuePref)\n const hasElement = this.stationCheckboxTargets.find(element => element.dataset.valueRoute === valueRoute && element.dataset.valuePref === valuePref)\n\n if (hasElement && hasElement.childElementCount <= 2) {\n const params = new URLSearchParams()\n params.append('prefecture_ids[]', valuePref)\n const path = '/api/areas/stations?' + params.toString()\n\n fetch(path)\n .then(data => data.json())\n .then(res => {\n this.hideLoading(loading[0])\n this.createStationList(res, valueCompany, valuePref, valueRoute)\n this.scrollToParent(e.target)\n })\n }\n }\n\n createStationList (data, companyId, prefectureId, routeId) {\n const targetCompany = data.prefectures[0].company.find(item => item.id === parseInt(companyId))\n const targetRoute = targetCompany.routes.find(item => item.id === parseInt(routeId))\n const stations = targetRoute.stations\n const stationIdTargets = this.stationIdTargets\n // 県またぎの路線を選択した場合の対応。チェックボックスを作成する際に他のチェック済の路線のidを取得しこれから作成するstation idと比較し同一であればshouldCheckでtrueが返るようにする\n const selectedStationsValue = Array.from(this.stationListTargets).filter((e) => e.checked).map((e) => parseInt(e.value))\n const stationIds = stationIdTargets.map(inputValue => parseInt(inputValue.value)).concat(selectedStationsValue)\n\n const stationList = stations.map(station => {\n const checked = this.shouldCheck(stationIds, station.id)\n this.removeInputHidden(stationIdTargets, station.id)\n return `
    • \n \n
    • `\n }).join('')\n\n Array.from(this.stationCheckboxTargets).some(element => {\n if (element.dataset.valuePref === prefectureId && element.dataset.valueRoute === routeId && element.childElementCount <= 2) {\n element.innerHTML += stationList\n return true\n }\n })\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = ['scroll', 'tab', 'panel', 'accordion', 'checkAllAccordion']\n\n className () {\n return this.element.dataset.classname\n }\n\n toggleModal (e) {\n e.preventDefault()\n\n if (this.modalTarget.classList.contains(`${this.className()}::modal-open`)) {\n this.modalTarget.classList.remove(`${this.className()}::modal-open`)\n } else {\n this.modalTarget.classList.add(`${this.className()}::modal-open`)\n }\n }\n\n reset () {\n this.tabTargets.forEach(button => {\n button.classList.remove(`${this.className()}::active`)\n })\n\n this.panelTargets.forEach(panel => {\n if (panel.dataset.panel === 'tab-id-01') {\n panel.classList.add(`${this.className()}::hidden`)\n }\n })\n }\n\n changePanel (e) {\n this.openPanel(e.currentTarget)\n }\n\n openPanel (targetTab) {\n const tabId = targetTab.dataset.tab\n const tabs = this.tabTargets.filter(element => element.dataset.tab === tabId)\n const panels = this.panelTargets.filter(element => element.dataset.panel === tabId)\n\n const currentPanel = this.panelTargets.find(element => element.classList.contains(`${this.className()}::current`))\n const currentId = currentPanel ? currentPanel.dataset.panel : null\n const currentPanels = this.panelTargets.filter(element => element.dataset.panel === currentId)\n\n const currentIndex = tabs.indexOf(targetTab)\n\n this.hideAllTabs(tabs)\n this.closeAllPanel(panels)\n\n panels[currentIndex].classList.remove(`${this.className()}::hidden`)\n\n if (tabId === 'tab-id-01') {\n targetTab.classList.add(`${this.className()}::active`)\n document.getElementById('panel-container').scrollTo({ top: 0, left: 0 })\n } else {\n if (currentPanels) {\n currentPanels.forEach(element => {\n element.classList.remove(`${this.className()}::current`)\n })\n }\n panels[currentIndex].classList.add(`${this.className()}::current`)\n }\n }\n\n hideAllTabs (tabs) {\n tabs.forEach(button => {\n button.classList.remove(`${this.className()}::active`)\n if (button.dataset.tab !== 'tab-id-01') {\n button.classList.add(`${this.className()}::hidden`)\n }\n })\n }\n\n closeAllPanel (panels) {\n panels.forEach(panel => {\n panel.classList.add(`${this.className()}::hidden`)\n if (panel.dataset.panel !== 'tab-id-01') {\n panel.classList.remove(`${this.className()}::current`)\n }\n })\n }\n\n scrollToParent (target) {\n const parentElement = document.getElementById('panel-container')\n const parentOffset = parentElement.getBoundingClientRect().top\n const childOffset = target.getBoundingClientRect().top\n const scrollTo = childOffset - parentOffset + parentElement.scrollTop\n\n parentElement.scroll({\n top: scrollTo,\n behavior: 'smooth',\n })\n }\n\n toggleAccordion (e) {\n const target = e.target.parentNode\n\n if (target.classList.contains(`${this.className()}::accordion-close`)) {\n this.open(target)\n } else {\n this.close(target)\n }\n }\n\n open (target) {\n target.classList.remove(`${this.className()}::accordion-close`)\n target.classList.add(`${this.className()}::accordion-open`)\n setTimeout(() => {\n this.scrollToParent(target)\n }, 200)\n }\n\n close (target) {\n target.classList.remove(`${this.className()}::accordion-open`)\n target.classList.add(`${this.className()}::accordion-close`)\n }\n\n checkAllAccordion (e) {\n const allCheckbox = e.currentTarget\n const isChecked = allCheckbox.checked\n const target = this.checkAllAccordionTargets[0].parentNode\n\n if (isChecked) {\n if (target.classList.contains(`${this.className()}::accordion-close`)) {\n this.open(target)\n } else {\n setTimeout(() => {\n this.scrollToParent(target)\n }, 200)\n }\n }\n }\n\n back (e) {\n const targetId = e.target.closest('[role=\"panel\"]').dataset.panel\n\n const panels = this.panelTargets.filter(element => element.dataset.panel === targetId)\n panels.forEach(element => {\n element.classList.remove(`${this.className()}::hidden`)\n element.classList.remove(`${this.className()}::current`)\n element.classList.add(`${this.className()}::hidden`)\n })\n\n const tabs = this.tabTargets.filter(element => element.dataset.tab === targetId)\n tabs.forEach(button => {\n button.classList.remove(`${this.className()}::hidden`)\n })\n\n if (targetId === 'tab-id-05') {\n e.target.closest('[role=\"panel\"]').parentNode.closest('[role=\"panel\"]').classList.add(`${this.className()}::current`)\n } else {\n tabs[0].closest('[role=\"panel\"]').classList.add(`${this.className()}::current`)\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = [\n 'modal',\n ]\n\n get className () {\n return this.element.dataset.classname\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = ['select']\n\n get className () {\n return this.element.dataset.classname\n }\n\n initialize () {\n if (this.hasSelectTarget) {\n if (!('URLSearchParams' in window)) return\n\n const urlParams = new URLSearchParams(location.search)\n const currentSortKey = urlParams.get('sort_order')\n\n Array.from(this.selectTarget.options).forEach(option => {\n if (option.value === currentSortKey) {\n option.selected = true\n }\n })\n }\n }\n\n setUrl (e, sortId) {\n const currentUrl = new URL(window.location.href)\n const currentParams = new URLSearchParams(currentUrl.search)\n\n if (sortId) {\n currentParams.set('sort_order', sortId)\n } else {\n currentParams.delete('sort_order')\n }\n\n currentParams.delete('page')\n\n currentUrl.search = currentParams.toString()\n const targetUrl = currentUrl.toString()\n\n return targetUrl\n }\n\n chengeSelect (e) {\n const sortId = e.target.value\n location.href = this.setUrl(e, sortId)\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = ['bulkCheckbox', 'hiddenCheckbox']\n\n synchChecks (e) {\n this.hiddenCheckboxTargets.forEach((checkbox) => {\n checkbox.checked = e.target.checked\n // 非表示のチェックボックスでchangeイベントを発火させ、計算結果の計算を走らせる\n const changeEvent = new Event('change')\n setTimeout(() => {\n checkbox.dispatchEvent(changeEvent)\n }, 100)\n })\n\n if (!e.target.checked) {\n this.uncheckNewOpenFeatureCheckboxes(e)\n }\n }\n\n uncheckBulkCheckbox (e) {\n if (!e.target.checked) {\n this.bulkCheckboxTarget.checked = false\n }\n }\n\n uncheckNewOpenFeatureCheckboxes (e) {\n if (!e.target.checked) {\n const featureCheckboxTargets = document.querySelectorAll('input[name=\"feature_content_ids[]\"]')\n featureCheckboxTargets.forEach((checkbox) => {\n const featureContentId = checkbox.getAttribute('data-feature-content-id')\n\n if (checkbox.checked && (featureContentId === '305' || featureContentId === '306')) {\n checkbox.checked = false\n const changeEvent = new Event('change')\n checkbox.dispatchEvent(changeEvent)\n }\n })\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nconst VISIBLE_POSITION = 400\n\nexport default class extends Controller {\n initialize () {\n let lastScrollPosition = 0\n let ticking = false\n\n window.addEventListener('scroll', () => {\n lastScrollPosition = window.scrollY\n const isEnabled = this.element.classList.contains('js-enable')\n\n if (!ticking && isEnabled) {\n window.requestAnimationFrame(() => {\n this.toggleVisibility(lastScrollPosition)\n ticking = false\n })\n\n ticking = true\n }\n })\n }\n\n get className () {\n return this.element.dataset.classname\n }\n\n toggleVisibility (scrollPosition) {\n if (scrollPosition > VISIBLE_POSITION) {\n this.element.classList.add(`${this.className}::visible`)\n } else {\n this.element.classList.remove(`${this.className}::visible`)\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nconst VISIBLE_POSITION = 400\n\nexport default class extends Controller {\n initialize () {\n let lastScrollPosition = 0\n let ticking = false\n\n window.addEventListener('scroll', () => {\n lastScrollPosition = window.scrollY\n const isEnabled = this.element.classList.contains('js-enable')\n\n if (!ticking && isEnabled) {\n window.requestAnimationFrame(() => {\n this.toggleVisibility(lastScrollPosition)\n ticking = false\n })\n\n ticking = true\n }\n })\n }\n\n get className () {\n return this.element.dataset.classname\n }\n\n toggleVisibility (scrollPosition) {\n if (scrollPosition > VISIBLE_POSITION) {\n this.element.classList.add(`${this.className}::visible`)\n } else {\n this.element.classList.remove(`${this.className}::visible`)\n }\n }\n\n close (e) {\n e.preventDefault()\n\n this.element.classList.add(`${this.className}::disabled`)\n\n const similarFacilitiesBnr = document.getElementsByClassName('viewcomponent::site::pages::facility::similar_facilities::mobile::container')[0]\n if (similarFacilitiesBnr) {\n similarFacilitiesBnr.style.bottom = '10px'\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nconst VISIBLE_POSITION = 400\n\nexport default class extends Controller {\n initialize () {\n let lastScrollPosition = 0\n let ticking = false\n\n window.addEventListener('scroll', () => {\n lastScrollPosition = window.scrollY\n const isEnabled = this.element.classList.contains('js-enable')\n\n if (!ticking && isEnabled) {\n window.requestAnimationFrame(() => {\n this.toggleVisibility(lastScrollPosition)\n ticking = false\n })\n\n ticking = true\n }\n })\n }\n\n get className () {\n return this.element.dataset.classname\n }\n\n toggleVisibility (scrollPosition) {\n if (scrollPosition > VISIBLE_POSITION) {\n this.element.classList.add(`${this.className}::visible`)\n } else {\n this.element.classList.remove(`${this.className}::visible`)\n }\n }\n\n close (e) {\n e.preventDefault()\n\n this.element.classList.add(`${this.className}::disabled`)\n\n const similarFacilitiesBnr = document.getElementsByClassName('viewcomponent::site::pages::facility::similar_facilities::mobile::container')[0]\n if (similarFacilitiesBnr) {\n similarFacilitiesBnr.style.bottom = '10px'\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nconst VIEW_LIMIT = 3\n\nexport default class extends Controller {\n static targets = ['row', 'open', 'close']\n\n initialize () {\n if (this.rowTargets.length > VIEW_LIMIT) {\n this.openTarget.style.display = 'flex'\n }\n\n this.rowTargets.forEach((row, index) => {\n if (index >= VIEW_LIMIT) {\n row.classList.add(`${this.className()}::hidden`)\n }\n })\n }\n\n className () {\n return this.element.dataset.classname\n }\n\n open () {\n this.rowTargets.map((facility, index) => {\n if (index >= VIEW_LIMIT) {\n facility.classList.remove(`${this.className()}::hidden`)\n }\n })\n this.openTarget.style.display = 'none'\n this.closeTarget.style.display = 'flex'\n }\n\n close () {\n this.rowTargets.map((facility, index) => {\n if (index >= VIEW_LIMIT) {\n facility.classList.add(`${this.className()}::hidden`)\n }\n })\n this.openTarget.style.display = 'flex'\n this.closeTarget.style.display = 'none'\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nconst VIEW_LIMIT = 3\n\nexport default class extends Controller {\n static targets = ['row', 'open', 'close']\n\n initialize () {\n if (this.closeTarget.dataset.collapsible === 'false') {\n return\n }\n\n if (this.rowTargets.length > VIEW_LIMIT) {\n this.openTarget.style.display = 'flex'\n }\n\n this.rowTargets.forEach((row, index) => {\n if (index >= VIEW_LIMIT) {\n row.classList.add(`${this.className()}::hidden`)\n }\n })\n }\n\n className () {\n return this.element.dataset.classname\n }\n\n open () {\n this.rowTargets.map((facility, index) => {\n if (index >= VIEW_LIMIT) {\n facility.classList.remove(`${this.className()}::hidden`)\n }\n })\n this.openTarget.style.display = 'none'\n this.closeTarget.style.display = 'flex'\n }\n\n close () {\n this.rowTargets.map((facility, index) => {\n if (index >= VIEW_LIMIT) {\n facility.classList.add(`${this.className()}::hidden`)\n }\n })\n this.openTarget.style.display = 'flex'\n this.closeTarget.style.display = 'none'\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport Cookies from 'js-cookie'\nimport uniq from 'lodash.uniq'\n\nexport default class extends Controller {\n static targets = ['facility']\n\n connect () {\n const ids = JSON.parse(Cookies.get('check_nursing_facility_ids') || '[]')\n if (Array.isArray(ids) && ids.includes(this.facilityId())) { this.element.classList.add(`${this.className()}::bookmarked`) }\n }\n\n facilityId () {\n return parseInt(this.element.dataset.facilityid)\n }\n\n className () {\n return this.element.dataset.classname\n }\n\n add () {\n const id = Number(this.element.dataset.facilityid)\n const ids = JSON.parse(Cookies.get('check_nursing_facility_ids') || '[]')\n ids.push(id)\n Cookies.set('check_nursing_facility_ids', JSON.stringify(uniq(ids)))\n\n this.element.classList.add(`${this.className()}::bookmarked`)\n }\n\n remove () {\n const id = Number(this.element.dataset.facilityid)\n const ids = JSON.parse(Cookies.get('check_nursing_facility_ids') || '[]')\n ids.splice(ids.indexOf(id), 1)\n Cookies.set('check_nursing_facility_ids', JSON.stringify(uniq(ids)))\n\n this.element.classList.remove(`${this.className()}::bookmarked`)\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = ['moreButton', 'moreText']\n\n more () {\n this.moreButtonTarget.style.display = 'none'\n this.moreTextTarget.style.display = 'inline'\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport SmoothScroll from 'smooth-scroll'\n\nexport default class extends Controller {\n initialize () {\n this.scroll = new SmoothScroll(null, {\n offset: 55,\n speed: 600,\n speedAsDuration: true,\n easing: 'linear',\n updateURL: false,\n popstate: false,\n })\n }\n\n scrollTo (id) {\n const anchor = document.querySelector(id)\n this.scroll.animateScroll(anchor)\n }\n\n scrollOrRedirectToAdmissionCondition (e) {\n const admissionConditionSection = document.getElementById('admission_condition')\n if (admissionConditionSection) {\n e.preventDefault()\n this.scrollTo('#admission_condition')\n }\n }\n\n get className () {\n return this.element.dataset.classname\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport Cookies from 'js-cookie'\nimport uniq from 'lodash.uniq'\n\nexport default class extends Controller {\n static targets = ['facilityTable', 'activeScroll', 'facilityItem']\n\n initialize () {\n if (this.facilityItemTargets.length > 2) {\n this.activeScrollTarget.style.display = 'block'\n this.facilityTableTarget.addEventListener('scroll', this.handleScroll.bind(this))\n }\n }\n\n classNames () {\n return JSON.parse(this.element.dataset.classnames)\n }\n\n className () {\n return this.element.dataset.classname\n }\n\n facilityName () {\n return this.element.dataset.facilityname\n }\n\n controllerForAdding () {\n return this.element.dataset.controllerforadding\n }\n\n controllerForUpdating () {\n return this.element.dataset.controllerforupdating\n }\n\n remove (e) {\n const clickedButton = e.target\n const targetFacility = this.facilityItemTargets.find(target => target.contains(clickedButton))\n\n const result = window.confirm(`${targetFacility.dataset.facilityname}を気になるリストから削除しますか?`)\n if (result) {\n this.removeId()\n window.location.reload()\n }\n }\n\n facilityIds () {\n return JSON.parse(Cookies.get('check_nursing_facility_ids') || '[]')\n }\n\n removeId () {\n const id = Number(this.element.dataset.facilityid)\n const ids = this.facilityIds()\n ids.splice(ids.indexOf(id), 1)\n Cookies.set('check_nursing_facility_ids', JSON.stringify(uniq(ids)))\n }\n\n handleScroll () {\n this.activeScrollTarget.style.display = 'none'\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport Swiper, { Navigation, Pagination, Lazy } from 'swiper/core'\n\nSwiper.use([Navigation, Pagination, Lazy])\nexport default class extends Controller {\n static targets = ['rank']\n\n get className () {\n return this.element.dataset.classname\n }\n\n connect () {\n const swiper = new Swiper(this.element, {\n slidesPerView: 'auto',\n spaceBetween: 10,\n centeredSlides: true,\n lazyLoading: true,\n lazy: {\n loadPrevNext: true,\n },\n navigation: {\n prevEl: '#swiperButtonPrev',\n nextEl: '#swiperButtonNext',\n },\n pagination: {\n el: '.swiper-pagination',\n clickable: true,\n bulletActiveClass: `${this.className}::active`,\n },\n })\n\n swiper.enable()\n\n const rank = this.rankTargets\n if (rank && rank.length > 0) {\n rank.forEach((target, index) => {\n target.textContent = (index + 1).toString()\n })\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport Swiper, { Navigation, Thumbs, Pagination, Lazy } from 'swiper/core'\n\nSwiper.use([Navigation, Thumbs, Pagination, Lazy])\nexport default class extends Controller {\n static targets = ['largeModal', 'modal']\n\n connect () {\n if (this.hasLargeModalTarget) {\n const imagesCount = this.largeModalTarget.dataset.imagesCount\n this.modalSlider = new Swiper(this.largeModalTarget, {\n loop: false,\n centeredSlides: true,\n pagination: {\n el: '.swiper-pagination',\n type: 'fraction',\n formatFractionTotal: function (number) {\n return imagesCount\n },\n },\n navigation: {\n nextEl: '#swiperModalButtonNext',\n prevEl: '#swiperModalButtonPrev',\n },\n })\n }\n }\n\n get className () {\n return this.modalTarget.dataset.classname\n }\n\n show (e) {\n e.preventDefault()\n\n const imageSrc = e.target.getAttribute('src')\n const index = Number(e.currentTarget.dataset.index)\n\n if (imageSrc) {\n this.modalTarget.classList.add(`${this.className}::visible`)\n this.modalSlider.slideTo(index)\n }\n }\n\n hide (e) {\n e.preventDefault()\n\n this.modalTarget.classList.remove(`${this.className}::visible`)\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport SmoothScroll from 'smooth-scroll'\n\nexport default class extends Controller {\n initialize () {\n this.scroll = new SmoothScroll(null, {\n offset: 55,\n speed: 600,\n speedAsDuration: true,\n easing: 'linear',\n updateURL: false,\n popstate: false,\n })\n }\n\n scrollTo (id) {\n const anchor = document.querySelector(id)\n this.scroll.animateScroll(anchor)\n }\n\n scrollOrRedirectToAccess (e) {\n const plansSection = document.getElementById('access')\n if (plansSection) {\n e.preventDefault()\n this.scrollTo('#access')\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport SmoothScroll from 'smooth-scroll'\n\nexport default class extends Controller {\n initialize () {\n this.scroll = new SmoothScroll(null, {\n offset: 55,\n speed: 600,\n speedAsDuration: true,\n easing: 'linear',\n updateURL: false,\n popstate: false,\n })\n }\n\n scrollTo (id) {\n const anchor = document.querySelector(id)\n this.scroll.animateScroll(anchor)\n }\n\n scrollOrRedirectToPlans (e) {\n const plansSection = document.getElementById('plans')\n if (plansSection) {\n e.preventDefault()\n this.scrollTo('#plans')\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport SmoothScroll from 'smooth-scroll'\n\nexport default class extends Controller {\n initialize () {\n this.scroll = new SmoothScroll(null, {\n offset: 55,\n speed: 600,\n speedAsDuration: true,\n easing: 'linear',\n updateURL: false,\n popstate: false,\n })\n }\n\n scrollTo (id) {\n const anchor = document.querySelector(id)\n this.scroll.animateScroll(anchor)\n }\n\n scrollOrRedirectToReviews (e) {\n const reviewsSection = document.getElementById('reviews')\n if (reviewsSection) {\n this.scrollTo('#reviews')\n } else {\n window.location.href = e.target.dataset.url\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport SmoothScroll from 'smooth-scroll'\n\nexport default class extends Controller {\n static targets = ['fee']\n\n initialize () {\n this.scroll = new SmoothScroll(null, {\n offset: 55,\n speed: 600,\n speedAsDuration: true,\n easing: 'linear',\n updateURL: false,\n popstate: false,\n })\n }\n\n scrollTo (id) {\n const anchor = document.querySelector(id)\n this.scroll.animateScroll(anchor)\n }\n\n scrollOrRedirectToPlans (e) {\n const plansSection = document.getElementById('plans')\n if (plansSection) {\n e.preventDefault()\n this.scrollTo('#plans')\n }\n }\n\n className () {\n return this.element.dataset.classname\n }\n\n toggle () {\n if (this.feeTarget.classList.contains(`${this.className()}::hidden`)) {\n this.feeTarget.classList.remove(`${this.className()}::hidden`)\n this.feeTarget.classList.add(`${this.className()}::show`)\n } else {\n this.feeTarget.classList.remove(`${this.className()}::show`)\n this.feeTarget.classList.add(`${this.className()}::hidden`)\n }\n }\n\n close () {\n this.feeTarget.style.display = 'none'\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport Swiper, { Navigation, Thumbs, Pagination } from 'swiper/core'\n\nSwiper.use([Navigation, Thumbs, Pagination])\n\nexport default class extends Controller {\n static targets = ['large', 'next', 'prev']\n\n connect () {\n this.initializeSwipers()\n }\n\n initializeSwipers () {\n this.largeTargets.forEach((slider, index) => {\n this.swiper = new Swiper(slider, {\n loop: false,\n watchSlidesVisibility: true,\n watchSlidesProgress: true,\n slideToClickedSlide: true,\n slidesPerView: 1.06,\n spaceBetween: 10,\n navigation: {\n nextEl: this.nextTargets[index],\n prevEl: this.prevTargets[index],\n },\n })\n })\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport Cookies from 'js-cookie'\nimport uniq from 'lodash.uniq'\n\nexport default class extends Controller {\n static targets = ['overlay', 'catchphrase', 'hide', 'show']\n\n connect () {\n if (this.modalId() === Cookies.get('verified_modal_id')) {\n this.disableMyFacilitiesModal()\n this.disableInquiryModal()\n }\n\n this.overlayTargets.forEach((target) => {\n target.classList.add('viewcomponent::site::parts::facility::list_item::mobile::visible')\n })\n\n const rank = document.querySelectorAll('.rank-label')\n if (rank && rank.length > 0) {\n rank.forEach((target, index) => {\n target.textContent = (index + 1).toString()\n })\n }\n\n if (this.hasCatchphraseTarget) {\n this.hide()\n }\n }\n\n classNames () {\n return JSON.parse(this.element.dataset.classnames)\n }\n\n className () {\n return this.element.dataset.classname\n }\n\n facilityName () {\n return this.element.dataset.facilityname\n }\n\n modalId () {\n return this.element.dataset.modalid\n }\n\n controllerForAdding () {\n return this.element.dataset.controllerforadding\n }\n\n controllerForUpdating () {\n return this.element.dataset.controllerforupdating\n }\n\n show () {\n this.catchphraseTargets.forEach((catchphrase) => {\n catchphrase.classList.remove(`${this.className()}::hidden`)\n })\n this.showTarget.style.display = 'none'\n this.hideTarget.style.display = 'flex'\n }\n\n hide () {\n this.catchphraseTargets.forEach((catchphrase) => {\n catchphrase.classList.add(`${this.className()}::hidden`)\n })\n this.showTarget.style.display = 'flex'\n this.hideTarget.style.display = 'none'\n }\n\n hideOverlay (e) {\n e.target.classList.remove('viewcomponent::site::parts::facility::list_item::mobile::visible')\n }\n\n add () {\n const id = Number(this.element.dataset.facilityid)\n const ids = JSON.parse(Cookies.get('check_nursing_facility_ids') || '[]')\n ids.push(id)\n Cookies.set('check_nursing_facility_ids', JSON.stringify(uniq(ids)))\n\n this.classNames().forEach((className) => {\n const targetElement = this.element.getElementsByClassName(`${className}::container`)[0]\n targetElement.classList.add(`${className}::bookmarked`)\n })\n }\n\n remove () {\n if (this.isMyFacilitiesPage()) {\n const result = window.confirm(`${this.facilityName()}を気になるリストから削除しますか?`)\n if (result) {\n this.removeId()\n window.location.reload()\n }\n return\n }\n\n this.removeId()\n\n this.classNames().forEach((className) => {\n const targetElement = this.element.getElementsByClassName(`${className}::container`)[0]\n targetElement.classList.remove(`${className}::bookmarked`)\n })\n }\n\n removeId () {\n const id = Number(this.element.dataset.facilityid)\n const ids = this.facilityIds()\n ids.splice(ids.indexOf(id), 1)\n Cookies.set('check_nursing_facility_ids', JSON.stringify(uniq(ids)))\n }\n\n isMyFacilitiesPage () {\n return window.location.pathname === '/my/facilities/'\n }\n\n facilityIds () {\n return JSON.parse(Cookies.get('check_nursing_facility_ids') || '[]')\n }\n\n disableMyFacilitiesModal () {\n this.element.querySelectorAll('.myfacilities-with-modal').forEach((element) => {\n element.dataset.action = `click->${this.controllerForAdding()}#add click->${this.controllerForUpdating()}#update`\n })\n }\n\n disableInquiryModal () {\n this.element.querySelectorAll('.inquiry-with-modal').forEach((element) => {\n element.dataset.action = ''\n })\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport Swiper, { Navigation, Thumbs, Pagination, Lazy } from 'swiper/core'\n\nSwiper.use([Navigation, Thumbs, Pagination, Lazy])\nexport default class extends Controller {\n static targets = ['large']\n\n connect () {\n if (this.hasLargeTarget) {\n this.slider = new Swiper(this.largeTarget, {\n loop: false,\n centeredSlides: false,\n slidesPerView: 3,\n spaceBetween: 10,\n lazyLoading: true,\n navigation: {\n nextEl: '#swiperButtonNext',\n prevEl: '#swiperButtonPrev',\n },\n })\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n className () {\n return this.element.dataset.classname\n }\n\n toggle (e) {\n const target = e.target.parentNode\n\n if (target.classList.contains(`${this.className()}::accordion-close`)) {\n this.open(target)\n } else {\n this.close(target)\n }\n }\n\n open (target) {\n target.classList.remove(`${this.className()}::accordion-close`)\n target.classList.add(`${this.className()}::accordion-open`)\n }\n\n close (target) {\n target.classList.remove(`${this.className()}::accordion-open`)\n target.classList.add(`${this.className()}::accordion-close`)\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n get className () {\n return this.element.dataset.classname\n }\n\n toggle () {\n if (this.element.classList.contains(`${this.className}::accordion-close`)) {\n this.open()\n } else {\n this.close()\n }\n }\n\n open () {\n this.element.classList.remove(`${this.className}::accordion-close`)\n this.element.classList.add(`${this.className}::accordion-open`)\n }\n\n close () {\n this.element.classList.remove(`${this.className}::accordion-open`)\n this.element.classList.add(`${this.className}::accordion-close`)\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = ['select', 'link']\n\n get className () {\n return this.element.dataset.classname\n }\n\n initialize () {\n if (this.hasSelectTarget) {\n if (!('URLSearchParams' in window)) return\n\n const urlParams = new URLSearchParams(location.search)\n const currentSortKey = urlParams.get('sort_order')\n\n Array.from(this.selectTarget.options).forEach(option => {\n if (option.value === currentSortKey) {\n option.selected = true\n } else if (!currentSortKey && option.value === 'recommend_reviews') {\n option.selected = true\n }\n })\n }\n }\n\n setUrl (e, sortId) {\n const currentUrl = new URL(window.location.href)\n const currentParams = new URLSearchParams(currentUrl.search)\n\n if (sortId) {\n currentParams.set('sort_order', sortId)\n } else {\n currentParams.delete('sort_order')\n }\n\n currentUrl.search = currentParams.toString()\n const targetUrl = currentUrl.toString()\n\n return targetUrl\n }\n\n chengeSelect (e) {\n const sortId = e.target.value\n location.href = this.setUrl(e, sortId)\n }\n\n toggle () {\n if (this.element.classList.contains(`${this.className}::accordion-close`)) {\n this.open()\n } else {\n this.close()\n }\n }\n\n open () {\n this.element.classList.remove(`${this.className}::accordion-close`)\n this.element.classList.add(`${this.className}::accordion-open`)\n }\n\n close () {\n this.element.classList.remove(`${this.className}::accordion-open`)\n this.element.classList.add(`${this.className}::accordion-close`)\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport SmoothScroll from 'smooth-scroll'\n\nexport default class extends Controller {\n static targets = ['container']\n\n initialize () {\n this.scroll = new SmoothScroll(null, {\n offset: 55,\n speed: 600,\n speedAsDuration: true,\n easing: 'linear',\n updateURL: false,\n popstate: false,\n })\n\n let lastScrollPosition = 0\n let ticking = false\n\n window.addEventListener('scroll', () => {\n lastScrollPosition = window.scrollY\n\n if (!ticking) {\n window.requestAnimationFrame(() => {\n this.toggleVisibility(lastScrollPosition)\n ticking = false\n })\n\n ticking = true\n }\n })\n }\n\n className () {\n return this.element.dataset.classname\n }\n\n toggleVisibility (scrollPosition) {\n if (scrollPosition > 200) {\n this.containerTarget.classList.add(`${this.className()}::visible`)\n } else {\n this.containerTarget.classList.remove(`${this.className()}::visible`)\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport SmoothScroll from 'smooth-scroll'\n\nconst VISIBLE_POSITION = 400\n\nexport default class extends Controller {\n static targets = ['button']\n\n get className () {\n return this.element.dataset.classname\n }\n\n initialize () {\n this.scroll = new SmoothScroll(null, {\n speed: 600,\n speedAsDuration: true,\n easing: 'linear',\n updateURL: false,\n popstate: false,\n })\n\n let lastScrollPosition = 0\n let ticking = false\n\n window.addEventListener('scroll', () => {\n lastScrollPosition = window.scrollY\n\n if (!ticking) {\n window.requestAnimationFrame(() => {\n this.toggleVisibility(lastScrollPosition)\n ticking = false\n })\n\n ticking = true\n }\n })\n }\n\n toggleVisibility (scrollPosition) {\n if (scrollPosition > VISIBLE_POSITION) {\n this.buttonTarget.classList.add(`${this.className}::visible`)\n } else {\n this.buttonTarget.classList.remove(`${this.className}::visible`)\n }\n }\n\n scrollTo () {\n this.scroll.animateScroll(document.documentElement)\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport Cookies from 'js-cookie'\n\nexport default class extends Controller {\n // 通常のヘッダーに加えてスクロールすると表示される固定ヘッダーがあるため、同名のターゲットが2つずつある\n static targets = ['badge', 'tooltip']\n\n connect () {\n this.updateBadges()\n }\n\n count () {\n return JSON.parse(Cookies.get('check_nursing_facility_ids') || '[]').length\n }\n\n update () {\n if (this.isCountIncreased()) this.flashTooltips()\n\n this.updateBadges()\n }\n\n isCountIncreased () {\n return this.count() > parseInt(this.badgeTargets[0].innerHTML)\n }\n\n flashTooltips () {\n this.tooltipTargets.forEach((tooltip) => {\n tooltip.classList.add('viewcomponent::site::parts::header::my::mobile::fade-in')\n tooltip.style.display = 'block'\n\n setTimeout(() => {\n tooltip.classList.remove('viewcomponent::site::parts::header::my::mobile::fade-in')\n tooltip.classList.add('viewcomponent::site::parts::header::my::mobile::fade-out')\n\n setTimeout(() => {\n tooltip.style.display = 'none'\n tooltip.classList.remove('viewcomponent::site::parts::header::my::mobile::fade-out')\n }, 1000) // ここで指定する時間はfadeOutのアニメーション時間と一致させてください\n }, 2000)\n })\n }\n\n updateBadges () {\n this.badgeTargets.forEach((badge) => { badge.innerHTML = this.count() })\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport Cookies from 'js-cookie'\n\nexport default class extends Controller {\n static targets = ['modal', 'myFacilitiesModalA', 'inquiryModalA', 'modalB', 'myfacilitiesSentenceB', 'inquirySentenceB']\n\n modalId () {\n return this.element.dataset.modalid\n }\n\n controllerForAdding () {\n return this.element.dataset.controllerforadding\n }\n\n controllerForUpdating () {\n return this.element.dataset.controllerforupdating\n }\n\n openMyFacilitiesModal (e) {\n e.preventDefault()\n\n this.modalTarget.style.display = 'flex'\n this.myFacilitiesModalATarget.style.display = 'block'\n this.modalBTarget.style.display = 'none'\n }\n\n openInquiryModal (e) {\n e.preventDefault()\n\n this.modalTarget.style.display = 'flex'\n this.inquiryModalATarget.style.display = 'block'\n this.modalBTarget.style.display = 'none'\n }\n\n closeModal () {\n this.modalTarget.style.display = 'none'\n this.inquiryModalATarget.style.display = 'none'\n this.myFacilitiesModalATarget.style.display = 'none'\n this.modalBTarget.style.display = 'none'\n }\n\n enableMyFacilitiesModalB () {\n this.inquiryModalATarget.style.display = 'none'\n this.myFacilitiesModalATarget.style.display = 'none'\n this.modalBTarget.style.display = 'block'\n this.myfacilitiesSentenceBTarget.style.display = 'block'\n this.inquirySentenceBTarget.style.display = 'none'\n }\n\n enableInquiryModalB () {\n this.inquiryModalATarget.style.display = 'none'\n this.myFacilitiesModalATarget.style.display = 'none'\n this.modalBTarget.style.display = 'block'\n this.inquirySentenceBTarget.style.display = 'block'\n this.myfacilitiesSentenceBTarget.style.display = 'none'\n }\n\n registerVerifiedModalId (e) {\n const modalId = e.target.dataset.modalid\n Cookies.set('verified_modal_id', modalId)\n this.disableMyFacilitiesModal(modalId)\n this.disableInquiryModal(modalId)\n }\n\n disableMyFacilitiesModal (modalId) {\n if (!this.controllerForAdding() || !this.controllerForUpdating) return\n\n document.querySelectorAll('.myfacilities-with-modal').forEach((element) => {\n if (element.dataset.modalid === modalId) {\n element.dataset.action = `click->${this.controllerForAdding()}#add click->${this.controllerForUpdating()}#update`\n }\n })\n }\n\n disableInquiryModal (modalId) {\n document.querySelectorAll('.inquiry-with-modal').forEach((element) => {\n if (element.dataset.modalid === modalId) {\n element.dataset.action = ''\n }\n })\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n componentName = 'viewcomponent::site::parts::nursing_facilities::category_description::mobile'\n\n open (event) {\n const index = event.currentTarget.getAttribute('data-value')\n document.getElementById(`category-description-text-container-${index}`).classList.remove(this.componentName + '::hidden-field')\n document.getElementById(`category-description-close-button-${index}`).classList.remove(this.componentName + '::d-none')\n document.getElementById(`category-description-open-button-${index}`).classList.add(this.componentName + '::d-none')\n }\n\n close (event) {\n const index = event.currentTarget.getAttribute('data-value')\n document.getElementById(`category-description-text-container-${index}`).classList.add(this.componentName + '::hidden-field')\n document.getElementById(`category-description-close-button-${index}`).classList.add(this.componentName + '::d-none')\n document.getElementById(`category-description-open-button-${index}`).classList.remove(this.componentName + '::d-none')\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n componentName = 'viewcomponent::site::parts::nursing_facilities::charm::mobile'\n\n open () {\n document.getElementById('charm-inner').classList.remove(this.componentName + '::hidden-field')\n document.getElementById('charm-close-button').classList.remove(this.componentName + '::d-none')\n document.getElementById('charm-open-button').classList.add(this.componentName + '::d-none')\n }\n\n close () {\n document.getElementById('charm-inner').classList.add(this.componentName + '::hidden-field')\n document.getElementById('charm-close-button').classList.add(this.componentName + '::d-none')\n document.getElementById('charm-open-button').classList.remove(this.componentName + '::d-none')\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nconst VIEW_LIMIT = 5\n\nexport default class extends Controller {\n static targets = ['row', 'open', 'close']\n\n initialize () {\n if (this.rowTargets.length > VIEW_LIMIT) {\n this.openTarget.style.display = 'flex'\n }\n\n this.rowTargets.forEach((row, index) => {\n if (index >= VIEW_LIMIT) {\n row.classList.add(`${this.className()}::hidden`)\n }\n })\n }\n\n className () {\n return this.element.dataset.classname\n }\n\n open () {\n this.rowTargets.map((facility, index) => {\n if (index >= VIEW_LIMIT) {\n facility.classList.remove(`${this.className()}::hidden`)\n }\n })\n this.openTarget.style.display = 'none'\n this.closeTarget.style.display = 'flex'\n }\n\n close () {\n this.rowTargets.map((facility, index) => {\n if (index >= VIEW_LIMIT) {\n facility.classList.add(`${this.className()}::hidden`)\n }\n })\n this.openTarget.style.display = 'flex'\n this.closeTarget.style.display = 'none'\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n componentName = 'viewcomponent::site::parts::nursing_facilities::elderly_assistance_policies::mobile'\n\n open () {\n document.getElementById('elder-assistance-policy-inner').classList.remove(this.componentName + '::hidden-field')\n document.getElementById('elder-assistance-policy-close-button').classList.remove(this.componentName + '::d-none')\n document.getElementById('elder-assistance-policy-open-button').classList.add(this.componentName + '::d-none')\n }\n\n close () {\n document.getElementById('elder-assistance-policy-inner').classList.add(this.componentName + '::hidden-field')\n document.getElementById('elder-assistance-policy-close-button').classList.add(this.componentName + '::d-none')\n document.getElementById('elder-assistance-policy-open-button').classList.remove(this.componentName + '::d-none')\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n get className () {\n return this.element.dataset.classname\n }\n\n toggle (e) {\n if (this.element.classList.contains(`${this.className}::accordion-close`)) {\n this.open()\n } else {\n this.close()\n }\n }\n\n open () {\n this.element.classList.remove(`${this.className}::accordion-close`)\n this.element.classList.add(`${this.className}::accordion-open`)\n }\n\n close () {\n this.element.classList.remove(`${this.className}::accordion-open`)\n this.element.classList.add(`${this.className}::accordion-close`)\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nconst VISIBLE_POSITION = 400\n\nexport default class extends Controller {\n initialize () {\n let lastScrollPosition = 0\n let ticking = false\n\n window.addEventListener('scroll', () => {\n lastScrollPosition = window.scrollY\n const isEnabled = this.element.classList.contains('js-enable')\n\n if (!ticking && isEnabled) {\n window.requestAnimationFrame(() => {\n this.toggleVisibility(lastScrollPosition)\n ticking = false\n })\n\n ticking = true\n }\n })\n }\n\n className () {\n return this.element.dataset.classname\n }\n\n toggleVisibility (scrollPosition) {\n if (scrollPosition > VISIBLE_POSITION) {\n this.element.classList.add(`${this.className()}::visible`)\n } else {\n this.element.classList.remove(`${this.className()}::visible`)\n }\n }\n\n close (e) {\n e.preventDefault()\n\n this.element.classList.add(`${this.className()}::disabled`)\n }\n}\n","import axios from 'axios'\n\nexport const client = axios.create()\n","import { client } from './client'\n\nexport const getCount = async (params) => {\n const response = await client.get('/api/nursing_facilities/count/', { params })\n const data = response.data\n return data\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = [\n 'modal',\n ]\n\n get className () {\n return this.element.dataset.classname\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n get className () {\n return this.element.dataset.classname\n }\n\n toggleAccordion (e) {\n e.preventDefault()\n\n const target = e.target.parentNode\n if (target.classList.contains(`${this.className}::accordion-open`)) {\n target.classList.remove(`${this.className}::accordion-open`)\n } else {\n target.classList.add(`${this.className}::accordion-open`)\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport { getCount } from '../api/common/count'\n\nexport default class extends Controller {\n static targets = [\n 'modal',\n 'tab',\n 'panel',\n 'form',\n 'submit',\n 'loading',\n 'accordion',\n 'accordionButtonOpen',\n 'accordionButtonClose',\n 'notifyText',\n 'featureCheckbox',\n 'cityCheckbox',\n 'routeCheckbox',\n 'stationCheckbox',\n 'prefectureId',\n 'cityId',\n 'ordinanceDesignatedCityId',\n 'stationId',\n 'stationList',\n 'cityList',\n 'ordinanceDesignatedCityList',\n 'citySelectedContent',\n 'submitButton',\n 'checkboxAll',\n 'checkboxes',\n ]\n\n connect () {\n this.setFacilitiesCount()\n }\n\n get className () {\n return this.element.dataset.classname\n }\n\n changeRoutePanel () {\n this.cityIdTargets.forEach((element, _index) => element.remove())\n this.ordinanceDesignatedCityIdTargets.forEach((element, _index) => element.remove())\n this.cityListTargets.forEach((element, _index) => { element.checked = false })\n this.ordinanceDesignatedCityListTargets.forEach((element, _index) => { element.checked = false })\n }\n\n changeAreaPanel () {\n this.stationIdTargets.forEach((element, _index) => element.remove())\n this.stationListTargets.forEach((element, _index) => { element.checked = false })\n }\n\n toggleModal (e) {\n e.preventDefault()\n const targetModalIndex = e.target.dataset.modalIndex\n\n if (this.modalTarget.classList.contains(`${this.className}::modal-open`)) {\n document.documentElement.classList.remove('base-fixed')\n this.modalTarget.classList.remove(`${this.className}::modal-open`)\n } else {\n document.documentElement.classList.add('base-fixed')\n this.modalTarget.classList.add(`${this.className}::modal-open`)\n this.modalInitialize(targetModalIndex)\n if (targetModalIndex * 1 === 0) {\n this.scrollToselectedPrefecture()\n }\n }\n }\n\n modalInitialize (targetModalIndex) {\n if (this.hasTabTarget && this.tabTargets.length > targetModalIndex) {\n this.tabTargets[targetModalIndex].classList.add('viewcomponent::site::parts::retry_search::modal::mobile::active')\n }\n if (this.hasPanelTarget && this.panelTargets.length > targetModalIndex) {\n this.panelTargets[targetModalIndex].classList.remove('viewcomponent::site::parts::retry_search::modal::mobile::hidden')\n }\n }\n\n ga () {\n window.gtagEvent('event', '', 'search_tap_modal')\n }\n\n validate (e) {\n e.preventDefault()\n\n // city_listとordinance_designated_city_list、station_listのいずれかがチェックされている場合\n if (this.cityListTargets.some((element) => element.checked) ||\n this.ordinanceDesignatedCityListTargets.some((element) => element.checked) ||\n this.stationListTargets.some((element) => element.checked)\n ) {\n // prefecture_idが存在したら削除し、該当のhidden_fieldを削除する\n if (this.prefectureIdTargets.length > 0) {\n this.prefectureIdTargets.forEach((element) => element.remove())\n }\n }\n\n this.formTarget.submit()\n }\n\n clickAreaCheckBox (e) {\n // 駅の場合は別路線の同一駅チェックも変更する必要がある\n if (e.target.name === 'station_ids[]') {\n Array.from(this.stationListTargets).filter(stationList => stationList.value === e.target.value).forEach(stationList => { return (stationList.checked = e.target.checked) })\n }\n\n // 路線・エリアの場合は選択中のものを下部に表示する\n if (['station_ids[]', 'city_ids[]', 'ordinance_designated_city_ids[]'].includes(e.target.name)) {\n this.setSelectedContentList(e)\n }\n }\n\n changeFormValue (e) {\n this.setFacilitiesCount()\n }\n\n manipulateString (a, b) {\n // 文字列aに文字列bが含まれているかチェック\n if (a.includes(b)) {\n // 文字列bが含まれている場合は、文字列aから文字列bを削除して返す\n return a.replace(b, '')\n } else {\n // 文字列bが含まれていない場合は、文字列aに文字列bを追加して返す\n return a + ` ${b}`\n }\n }\n\n setSelectedContentList (e) {\n const selectedContent = e.target.closest('label').querySelector('span').textContent\n const replacementText = this.manipulateString(this.citySelectedContentTarget.textContent, selectedContent)\n this.citySelectedContentTarget.innerHTML = replacementText\n }\n\n setFacilitiesCount () {\n if (typeof FormData !== 'function') {\n return\n }\n\n const formData = new FormData(this.formTarget)\n // city_ids, ordinance_designated_city_ids, station_idsのいずれかがチェックされている場合、prefecture_idは検索条件に含めない\n const prefectureId = formData.getAll('city_ids[]').length > 0 || formData.getAll('ordinance_designated_city_ids[]').length > 0 || formData.getAll('station_ids[]').length > 0 ? null : formData.get('prefecture_id')\n\n const params = {\n prefecture_id: prefectureId,\n city_ids: formData.getAll('city_ids[]'),\n ordinance_designated_city_ids: formData.getAll('ordinance_designated_city_ids[]'),\n station_ids: formData.getAll('station_ids[]'),\n admission_fee_min: formData.get('admission_fee_min'),\n admission_fee_max: formData.get('admission_fee_max'),\n monthly_fee_min: formData.get('monthly_fee_min'),\n monthly_fee_max: formData.get('monthly_fee_max'),\n walking_time: formData.get('walking_time'),\n care_level_ids: formData.getAll('care_level_ids[]'),\n feature_content_ids: formData.getAll('feature_content_ids[]'),\n category_ids: formData.getAll('category_ids[]'),\n medical_care_ids: formData.getAll('medical_care_ids[]'),\n with_review: formData.get('with_review'),\n vacancies_exist: formData.get('vacancies_exist'),\n welfare_acceptable: formData.get('welfare_acceptable'),\n dementia_acceptable: formData.get('dementia_acceptable'),\n no_joint_surety_required: formData.get('no_joint_surety_required'),\n }\n\n getCount(params).then((count) => {\n const countElement = this.submitTargets[0]\n const startNumber = parseInt(countElement.textContent)\n const endNumber = count.result\n\n this.submitTargets.forEach((element) => {\n if (count.result >= 10000) {\n element.innerText = '10000+'\n this.notifyFacilitiesCountIsOver()\n this.submitButtonEnabled()\n } else if (count.result <= 0) {\n this.submitButtonDisabled()\n element.innerText = count.result\n window.gtagEvent('event', '', '0_facilities_modal')\n } else {\n this.submitButtonEnabled()\n element.innerText = count.result\n this.animateCount(countElement, startNumber, endNumber)\n }\n })\n })\n }\n\n submitButtonEnabled () {\n this.submitButtonTarget.disabled = false\n this.submitButtonTarget.classList.remove('viewcomponent::site::parts::retry_search::modal::mobile::disabled')\n }\n\n submitButtonDisabled () {\n this.submitButtonTarget.disabled = true\n this.submitButtonTarget.classList.add('viewcomponent::site::parts::retry_search::modal::mobile::disabled')\n }\n\n notifyFacilitiesCountIsOver () {\n if (this.hasNotifyTextTarget) {\n this.notifyTextTarget.style.display = 'block'\n }\n }\n\n animateCount (element, start, end) {\n let startTime = null\n\n const updateNumber = (timestamp) => {\n if (!startTime) startTime = timestamp\n const progress = Math.min((timestamp - startTime) / 200, 1)\n const currentNumber = Math.floor(start + (end - start) * progress)\n element.textContent = currentNumber\n\n if (progress < 1) {\n requestAnimationFrame(updateNumber)\n }\n }\n\n requestAnimationFrame(updateNumber)\n }\n\n toggleAccordion (e) {\n e.preventDefault()\n\n const target = e.target.parentNode\n if (target.classList.contains(`${this.className}::accordion-open`)) {\n target.classList.remove(`${this.className}::accordion-open`)\n } else {\n target.classList.add(`${this.className}::accordion-open`)\n }\n }\n\n uncheckAssociatedFeatureCheckboxes (e) {\n if (!e.target.checked) {\n const uncheckFeatureId = e.target.getAttribute('data-feature-content-id')\n this.featureCheckboxTargets.forEach((checkbox) => {\n if (checkbox.checked && checkbox.getAttribute('data-feature-content-id') === uncheckFeatureId) {\n checkbox.checked = false\n const changeEvent = new Event('change')\n checkbox.dispatchEvent(changeEvent)\n }\n })\n }\n }\n\n hideLoading (target) {\n target.style.display = 'none'\n }\n\n classNameModal () {\n return 'viewcomponent::site::parts::retry_search::modal::mobile'\n }\n\n modalMobileComponentTarget () {\n return 'data-site--parts--retry-search--modal--mobile--component-target'\n }\n\n mobileComponentTarget () {\n return 'data-site--parts--retry-search--mobile--component-target'\n }\n\n scrollToselectedPrefecture () {\n const element = document.querySelector('[data-prefecture-ids]')\n const prefectureIdsString = element.dataset.prefectureIds\n const prefectureIdsArray = JSON.parse(prefectureIdsString)\n const minPrefectureId = Math.min(...prefectureIdsArray)\n const target = document.querySelectorAll(`[data-value-pref=\"${minPrefectureId}\"]`)[0]\n if (target) this.scrollToParent(target)\n }\n\n scrollToParent (target) {\n const parentElement = document.getElementById('panel-container')\n const parentOffset = parentElement.getBoundingClientRect().top\n const childOffset = target.getBoundingClientRect().top\n const scrollTo = childOffset - parentOffset + parentElement.scrollTop\n\n parentElement.scroll({\n top: scrollTo,\n behavior: 'smooth',\n })\n }\n\n getPrefecture (e) {\n e.preventDefault()\n const { valuePref } = e.target.dataset\n const loading = this.loadingTargets.filter(element => element.dataset.valuePref === e.target.dataset.valuePref)\n const hasElement = this.cityCheckboxTargets.find(element => element.dataset.valuePref === valuePref)\n\n if (hasElement && !hasElement.innerHTML) {\n const params = new URLSearchParams()\n params.append('prefecture_ids[]', valuePref)\n const path = '/api/areas/cities?' + params.toString()\n\n fetch(path)\n .then(data => data.json())\n .then(res => {\n this.hideLoading(loading[0])\n this.cities(res)\n this.scrollToParent(e.target)\n })\n }\n }\n\n cities (data) {\n // eslint-disable-next-line camelcase\n const { id, cities, ordinance_designated_cities } = data.prefectures[0]\n const prefectureId = String(id)\n const ordinanceDesignatedCitiesList = this.createOrdinanceDesignatedCitiesList(ordinance_designated_cities)\n const citiesList = this.createCityList(cities)\n const target = this.cityCheckboxTargets.find(element => element.dataset.valuePref === prefectureId)\n if (target && !target.innerHTML) {\n target.innerHTML += ordinanceDesignatedCitiesList + citiesList\n }\n }\n\n shouldCheck (idList, inputTagValue) {\n return idList.includes(inputTagValue)\n }\n\n // MEMO: input hiddenとinput checkboxどちらのパラメータが送られてしまうのでチェックボックスが生成されたらhidden要素を削除する\n removeInputHidden (idList, inputTagValue) {\n const inputHidden = idList.filter((element, _index) => { return parseInt(element.value) === inputTagValue })[0]\n if (typeof inputHidden !== 'undefined') { inputHidden.remove() }\n }\n\n createOrdinanceDesignatedCitiesList (ordinanceDesignatedCities) {\n const ordinanceDesignatedCityIdTargets = this.ordinanceDesignatedCityIdTargets\n const ordinanceDesignatedCityIds = ordinanceDesignatedCityIdTargets.map(inputValue => parseInt(inputValue.value))\n return ordinanceDesignatedCities.map(ordinanceDesignatedCity => {\n const checked = this.shouldCheck(ordinanceDesignatedCityIds, ordinanceDesignatedCity.id)\n this.removeInputHidden(ordinanceDesignatedCityIdTargets, ordinanceDesignatedCity.id)\n return `\n
    • \n \n
    • `\n }).join('')\n }\n\n createCityList (cities) {\n const cityIdTargets = this.cityIdTargets\n const cityIds = cityIdTargets.map(inputCity => parseInt(inputCity.value))\n return cities.map((city) => {\n const checked = this.shouldCheck(cityIds, city.id)\n this.removeInputHidden(cityIdTargets, city.id)\n return `
    • \n \n
    • `\n }).join('')\n }\n\n getRoute (e) {\n e.preventDefault()\n const { valuePref } = e.target.dataset\n const loading = this.loadingTargets.filter(element => element.dataset.valuePref === e.target.dataset.valuePref)\n const hasElement = this.routeCheckboxTargets.find(element => element.dataset.valuePref === valuePref)\n\n if (hasElement && hasElement.childElementCount <= 2) {\n const params = new URLSearchParams()\n params.append('prefecture_ids[]', valuePref)\n const path = '/api/areas/stations?' + params.toString()\n\n fetch(path)\n .then(data => data.json())\n .then(res => {\n this.hideLoading(loading[1])\n this.routes(res)\n this.scrollToParent(e.target)\n })\n }\n }\n\n routes (data) {\n const { id } = data.prefectures[0]\n const prefectureId = String(id)\n const routeList = this.createRouteList(data)\n const target = this.routeCheckboxTargets.find(element => element.dataset.valuePref === prefectureId)\n\n if (target && !target.childElementCount <= 2) {\n target.innerHTML += routeList\n }\n }\n\n createRouteList (data) {\n // 路線会社>路線\n const prefectureId = String(data.prefectures[0].id)\n const companies = data.prefectures[0].company\n const routeList = companies.map(company => {\n const companyHeadingHTML = `\n
      ${company.name}
      \n `\n\n const routes = company.routes\n const routeHTML = routes.map(route => `\n
      \n
      \n
      site--parts--retry-search--modal--mobile--component#toggleAccordion click->site--parts--retry-search--mobile--component#getStation\">\n ${route.name}\n
      \n
      \n
      \n
      \n
      \n
        \n
      • \n \n
      • \n
      \n
        \n
        \n
        \n
        \n `).join('')\n\n return companyHeadingHTML + routeHTML\n }).join('')\n\n return routeList\n }\n\n checkAll (e) {\n const currentIndex = this.checkboxAllTargets.indexOf(e.currentTarget)\n const checkboxes = this.checkboxesTargets[currentIndex].querySelectorAll('input[type=\"checkbox\"]')\n const allCheckbox = e.currentTarget\n const isChecked = allCheckbox.checked\n\n function updateCheckboxes (isChecked) {\n checkboxes.forEach((checkbox) => {\n if (checkbox.checked !== isChecked) {\n checkbox.checked = isChecked\n }\n })\n\n // setTimeoutを使用して、非同期にイベントを発火する\n setTimeout(() => {\n checkboxes.forEach((checkbox) => {\n const event = new Event('click')\n checkbox.dispatchEvent(event)\n })\n }, 0)\n }\n\n updateCheckboxes(isChecked)\n\n this.setFacilitiesCount()\n }\n\n getStation (e) {\n e.preventDefault()\n const { valuePref, valueCompany, valueRoute } = e.target.dataset\n const loading = this.loadingTargets.filter(element => element.dataset.valueRoute === valueRoute && element.dataset.valuePref === valuePref)\n const hasElement = this.stationCheckboxTargets.find(element => element.dataset.valueRoute === valueRoute && element.dataset.valuePref === valuePref)\n\n if (hasElement && hasElement.childElementCount <= 2) {\n const params = new URLSearchParams()\n params.append('prefecture_ids[]', valuePref)\n const path = '/api/areas/stations?' + params.toString()\n\n fetch(path)\n .then(data => data.json())\n .then(res => {\n this.hideLoading(loading[0])\n this.createStationList(res, valueCompany, valuePref, valueRoute)\n this.scrollToParent(e.target)\n })\n }\n }\n\n createStationList (data, companyId, prefectureId, routeId) {\n const targetCompany = data.prefectures[0].company.find(item => item.id === parseInt(companyId))\n const targetRoute = targetCompany.routes.find(item => item.id === parseInt(routeId))\n const stations = targetRoute.stations\n const stationIdTargets = this.stationIdTargets\n // 県またぎの路線を選択した場合の対応。チェックボックスを作成する際に他のチェック済の路線のidを取得しこれから作成するstation idと比較し同一であればshouldCheckでtrueが返るようにする\n const selectedStationsValue = Array.from(this.stationListTargets).filter((e) => e.checked).map((e) => parseInt(e.value))\n const stationIds = stationIdTargets.map(inputValue => parseInt(inputValue.value)).concat(selectedStationsValue)\n\n const stationList = stations.map(station => {\n const checked = this.shouldCheck(stationIds, station.id)\n this.removeInputHidden(stationIdTargets, station.id)\n return `
      • \n \n
      • `\n }).join('')\n\n Array.from(this.stationCheckboxTargets).some(element => {\n if (element.dataset.valuePref === prefectureId && element.dataset.valueRoute === routeId && element.childElementCount <= 2) {\n element.innerHTML += stationList\n return true\n }\n })\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = ['scroll', 'tab', 'panel', 'accordion', 'checkAllAccordion']\n\n className () {\n return this.element.dataset.classname\n }\n\n toggleModal (e) {\n e.preventDefault()\n\n if (this.modalTarget.classList.contains(`${this.className()}::modal-open`)) {\n this.modalTarget.classList.remove(`${this.className()}::modal-open`)\n } else {\n this.modalTarget.classList.add(`${this.className()}::modal-open`)\n }\n }\n\n reset () {\n this.tabTargets.forEach(button => {\n button.classList.remove(`${this.className()}::active`)\n })\n\n this.panelTargets.forEach(panel => {\n if (panel.dataset.panel === 'tab-id-01') {\n panel.classList.add(`${this.className()}::hidden`)\n }\n })\n }\n\n changePanel (e) {\n this.openPanel(e.currentTarget)\n }\n\n openPanel (targetTab) {\n const tabId = targetTab.dataset.tab\n const tabs = this.tabTargets.filter(element => element.dataset.tab === tabId)\n const panels = this.panelTargets.filter(element => element.dataset.panel === tabId)\n\n const currentPanel = this.panelTargets.find(element => element.classList.contains(`${this.className()}::current`))\n const currentId = currentPanel ? currentPanel.dataset.panel : null\n const currentPanels = this.panelTargets.filter(element => element.dataset.panel === currentId)\n\n const currentIndex = tabs.indexOf(targetTab)\n\n this.hideAllTabs(tabs)\n this.closeAllPanel(panels)\n\n panels[currentIndex].classList.remove(`${this.className()}::hidden`)\n\n if (tabId === 'tab-id-01') {\n targetTab.classList.add(`${this.className()}::active`)\n document.getElementById('panel-container').scrollTo({ top: 0, left: 0 })\n } else {\n if (currentPanels) {\n currentPanels.forEach(element => {\n element.classList.remove(`${this.className()}::current`)\n })\n }\n panels[currentIndex].classList.add(`${this.className()}::current`)\n }\n }\n\n hideAllTabs (tabs) {\n tabs.forEach(button => {\n button.classList.remove(`${this.className()}::active`)\n if (button.dataset.tab !== 'tab-id-01') {\n button.classList.add(`${this.className()}::hidden`)\n }\n })\n }\n\n closeAllPanel (panels) {\n panels.forEach(panel => {\n panel.classList.add(`${this.className()}::hidden`)\n if (panel.dataset.panel !== 'tab-id-01') {\n panel.classList.remove(`${this.className()}::current`)\n }\n })\n }\n\n scrollToParent (target) {\n const parentElement = document.getElementById('panel-container')\n const parentOffset = parentElement.getBoundingClientRect().top\n const childOffset = target.getBoundingClientRect().top\n const scrollTo = childOffset - parentOffset + parentElement.scrollTop\n\n parentElement.scroll({\n top: scrollTo,\n behavior: 'smooth',\n })\n }\n\n toggleAccordion (e) {\n const target = e.target.parentNode\n\n if (target.classList.contains(`${this.className()}::accordion-close`)) {\n this.open(target)\n } else {\n this.close(target)\n }\n }\n\n open (target) {\n target.classList.remove(`${this.className()}::accordion-close`)\n target.classList.add(`${this.className()}::accordion-open`)\n setTimeout(() => {\n this.scrollToParent(target)\n }, 200)\n }\n\n close (target) {\n target.classList.remove(`${this.className()}::accordion-open`)\n target.classList.add(`${this.className()}::accordion-close`)\n }\n\n checkAllAccordion (e) {\n const allCheckbox = e.currentTarget\n const isChecked = allCheckbox.checked\n const target = this.checkAllAccordionTargets[0].parentNode\n\n if (isChecked) {\n if (target.classList.contains(`${this.className()}::accordion-close`)) {\n this.open(target)\n } else {\n setTimeout(() => {\n this.scrollToParent(target)\n }, 200)\n }\n }\n }\n\n back (e) {\n const targetId = e.target.closest('[role=\"panel\"]').dataset.panel\n\n const panels = this.panelTargets.filter(element => element.dataset.panel === targetId)\n panels.forEach(element => {\n element.classList.remove(`${this.className()}::hidden`)\n element.classList.remove(`${this.className()}::current`)\n element.classList.add(`${this.className()}::hidden`)\n })\n\n const tabs = this.tabTargets.filter(element => element.dataset.tab === targetId)\n tabs.forEach(button => {\n button.classList.remove(`${this.className()}::hidden`)\n })\n\n if (targetId === 'tab-id-05') {\n e.target.closest('[role=\"panel\"]').parentNode.closest('[role=\"panel\"]').classList.add(`${this.className()}::current`)\n } else {\n tabs[0].closest('[role=\"panel\"]').classList.add(`${this.className()}::current`)\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = [\n 'modal',\n ]\n\n get className () {\n return this.element.dataset.classname\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = ['bulkCheckbox', 'hiddenCheckbox']\n\n synchChecks (e) {\n this.hiddenCheckboxTargets.forEach((checkbox) => {\n checkbox.checked = e.target.checked\n // 非表示のチェックボックスでchangeイベントを発火させ、計算結果の計算を走らせる\n const changeEvent = new Event('change')\n setTimeout(() => {\n checkbox.dispatchEvent(changeEvent)\n }, 100)\n })\n\n if (!e.target.checked) {\n this.uncheckNewOpenFeatureCheckboxes(e)\n }\n }\n\n uncheckBulkCheckbox (e) {\n if (!e.target.checked) {\n this.bulkCheckboxTarget.checked = false\n }\n }\n\n uncheckNewOpenFeatureCheckboxes (e) {\n if (!e.target.checked) {\n const featureCheckboxTargets = document.querySelectorAll('input[name=\"feature_content_ids[]\"]')\n featureCheckboxTargets.forEach((checkbox) => {\n const featureContentId = checkbox.getAttribute('data-feature-content-id')\n\n if (checkbox.checked && (featureContentId === '305' || featureContentId === '306')) {\n checkbox.checked = false\n const changeEvent = new Event('change')\n checkbox.dispatchEvent(changeEvent)\n }\n })\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = [\n 'searchArea',\n 'form',\n 'loading',\n 'accordion',\n 'accordionButtonOpen',\n 'accordionButtonClose',\n 'cityCheckbox',\n 'cityId',\n 'ordinanceDesignatedCityId',\n 'cityList',\n 'ordinanceDesignatedCityList',\n 'checkboxAll',\n 'checkboxes',\n 'cityCheckBoxesModalNextButton',\n ]\n\n className () {\n return this.element.dataset.classname\n }\n\n toggleAccordion (e) {\n const target = e.target.parentNode\n if (target.classList.contains(`${this.className()}::accordion-close`)) {\n this.open(target)\n } else {\n this.close(target)\n }\n }\n\n open (target) {\n target.classList.remove(`${this.className()}::accordion-close`)\n target.classList.add(`${this.className()}::accordion-open`)\n\n setTimeout(() => {\n this.scrollToParent(target)\n }, 200)\n }\n\n close (target) {\n target.classList.remove(`${this.className()}::accordion-open`)\n target.classList.add(`${this.className()}::accordion-close`)\n }\n\n scrollToParent (target) {\n const parentElement = this.searchAreaTarget\n const parentOffset = parentElement.getBoundingClientRect().top\n const childOffset = target.getBoundingClientRect().top\n const scrollTo = childOffset - parentOffset + parentElement.scrollTop\n\n parentElement.scroll({\n top: scrollTo,\n behavior: 'smooth',\n })\n }\n\n getPrefecture (e) {\n e.preventDefault()\n const { valuePref } = e.target.dataset\n const loading = this.loadingTargets.filter(element => element.dataset.valuePref === e.target.dataset.valuePref)\n const hasElement = this.cityCheckboxTargets.find(element => element.dataset.valuePref === valuePref)\n\n if (hasElement && !hasElement.innerHTML) {\n const params = new URLSearchParams()\n params.append('prefecture_ids[]', valuePref)\n const path = '/api/areas/cities?' + params.toString()\n\n fetch(path)\n .then(data => data.json())\n .then(res => {\n this.hideLoading(loading[0])\n this.cities(res)\n this.scrollToParent(e.target)\n })\n }\n }\n\n cities (data) {\n // eslint-disable-next-line camelcase\n const { id, cities, ordinance_designated_cities } = data.prefectures[0]\n const prefectureId = String(id)\n const ordinanceDesignatedCitiesList = this.createOrdinanceDesignatedCitiesList(ordinance_designated_cities)\n const citiesList = this.createCityList(cities)\n const target = this.cityCheckboxTargets.find(element => element.dataset.valuePref === prefectureId)\n if (target && !target.innerHTML) {\n target.innerHTML += ordinanceDesignatedCitiesList + citiesList\n }\n }\n\n createOrdinanceDesignatedCitiesList (ordinanceDesignatedCities) {\n const ordinanceDesignatedCityIdTargets = this.ordinanceDesignatedCityIdTargets\n return ordinanceDesignatedCities.map(ordinanceDesignatedCity => {\n return `\n
      • \n \n
      • `\n }).join('')\n }\n\n createCityList (cities) {\n const cityIdTargets = this.cityIdTargets\n return cities.map((city) => {\n return `
      • \n \n
      • `\n }).join('')\n }\n\n cityCheckBoxesModalNextButtonStatus (e) {\n const checkedFlag = [\n ...this.ordinanceDesignatedCityListTargets,\n ...this.cityListTargets,\n ].some(function (checkbox) {\n return checkbox.checked\n })\n\n if (checkedFlag) {\n this.cityCheckBoxesModalNextButtonTarget.classList.remove(`${this.className()}::disabled`)\n } else {\n this.cityCheckBoxesModalNextButtonTarget.classList.add(`${this.className()}::disabled`)\n }\n }\n\n hideLoading (target) {\n target.style.display = 'none'\n }\n\n checkAll (e) {\n const currentIndex = this.checkboxAllTargets.indexOf(e.currentTarget)\n const checkboxes = this.checkboxesTargets[currentIndex].querySelectorAll('input[type=\"checkbox\"]')\n const allCheckbox = e.currentTarget\n const isChecked = allCheckbox.checked\n\n function updateCheckboxes (isChecked) {\n checkboxes.forEach((checkbox) => {\n if (checkbox.checked !== isChecked) {\n checkbox.checked = isChecked\n }\n })\n\n setTimeout(() => {\n checkboxes.forEach((checkbox) => {\n const event = new Event('click')\n checkbox.dispatchEvent(event)\n })\n }, 0)\n }\n\n updateCheckboxes(isChecked)\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = ['inputFeeNextButton', 'monthlyFeeMin', 'monthlyFeeMax']\n\n className () {\n return this.element.dataset.classname\n }\n\n inputFeeNextButtonStatus (e) {\n const selectedValue1 = this.monthlyFeeMinTarget.value\n const selectedValue2 = this.monthlyFeeMaxTarget.value\n let setButtonStatus\n\n if ((((selectedValue1 * 1 - selectedValue2 * 1) > 0 && !(selectedValue1 === '-1' || selectedValue2 === '-1')))) {\n setButtonStatus = false\n } else if (selectedValue1 === '-1' && selectedValue2 === '-1') {\n setButtonStatus = false\n } else {\n setButtonStatus = true\n }\n\n if (setButtonStatus) {\n this.inputFeeNextButtonTarget.classList.remove(`${this.className()}::disabled`)\n } else {\n this.inputFeeNextButtonTarget.classList.add(`${this.className()}::disabled`)\n }\n\n window.gtagEvent('gtm.click', '', 'list_price_limit_changed')\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = ['tab', 'panel']\n\n className () {\n return this.element.dataset.classname\n }\n\n connect () {\n // this.showTab(0)\n }\n\n changeTab (event) {\n event.preventDefault()\n const index = this.tabTargets.indexOf(event.currentTarget)\n\n this.showTab(index)\n }\n\n showTab (index) {\n this.tabTargets.forEach(tab => tab.classList.remove(`${this.className()}::active`))\n this.panelTargets.forEach(panel => panel.classList.remove(`${this.className()}::active`))\n\n this.tabTargets[index].classList.add(`${this.className()}::active`)\n this.panelTargets[index].classList.add(`${this.className()}::active`)\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n // static targets = [\n // 'doubleRoom',\n // 'featureContent',\n // 'normalRoom',\n // 'privateRoom',\n // 'recreation',\n // 'twentyFourHourNursing',\n // ]\n\n // connect () {\n // this.changeTagColor()\n // }\n\n // get className () {\n // return this.element.dataset.classname\n // }\n\n // changeTagColor () {\n // if (!this.featureContentTarget.dataset.featureContentIds) return\n\n // const featureContentIds = JSON.parse(this.featureContentTarget.dataset.featureContentIds)\n // this.changeNursingTagColor(featureContentIds)\n // this.changeRoomTypeTagColor(featureContentIds)\n // this.changeRecreationTagColor(featureContentIds)\n // }\n\n // changeNursingTagColor (featureContentIds) {\n // const twentyFourHourNursingId = '103'\n\n // if (featureContentIds.includes(twentyFourHourNursingId)) {\n // this.twentyFourHourNursingTarget.classList.remove(`${this.className}::content-item-tag`)\n // this.twentyFourHourNursingTarget.classList.add(`${this.className}::content-item-tag-active`)\n // }\n // }\n\n // changeRoomTypeTagColor (featureContentIds) {\n // const privateRoomId = '201'\n // const doubleRoomId = '202'\n\n // if (featureContentIds.includes(privateRoomId)) {\n // this.normalRoomTarget.classList.remove(`${this.className}::content-item-tag-active`)\n // this.normalRoomTarget.classList.add(`${this.className}::content-item-tag`)\n // this.privateRoomTarget.classList.remove(`${this.className}::content-item-tag`)\n // this.privateRoomTarget.classList.add(`${this.className}::content-item-tag-active`)\n // } else if (featureContentIds.includes(doubleRoomId)) {\n // this.normalRoomTarget.classList.remove(`${this.className}::content-item-tag-active`)\n // this.normalRoomTarget.classList.add(`${this.className}::content-item-tag`)\n // this.doubleRoomTarget.classList.remove(`${this.className}::content-item-tag`)\n // this.doubleRoomTarget.classList.add(`${this.className}::content-item-tag-active`)\n // }\n // }\n\n // changeRecreationTagColor (featureContentIds) {\n // const recreationId = '401'\n\n // if (featureContentIds.includes(recreationId)) {\n // this.recreationTarget.classList.remove(`${this.className}::content-item-tag`)\n // this.recreationTarget.classList.add(`${this.className}::content-item-tag-active`)\n // }\n // }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = ['select']\n\n get className () {\n return this.element.dataset.classname\n }\n\n initialize () {\n if (this.hasSelectTarget) {\n if (!('URLSearchParams' in window)) return\n\n const urlParams = new URLSearchParams(location.search)\n const currentSortKey = urlParams.get('sort_order')\n\n Array.from(this.selectTarget.options).forEach(option => {\n if (option.value === currentSortKey) {\n option.selected = true\n }\n })\n }\n }\n\n setUrl (e, sortId) {\n const currentUrl = new URL(window.location.href)\n const currentParams = new URLSearchParams(currentUrl.search)\n\n if (sortId) {\n currentParams.set('sort_order', sortId)\n } else {\n currentParams.delete('sort_order')\n }\n\n currentParams.delete('page')\n\n currentUrl.search = currentParams.toString()\n const targetUrl = currentUrl.toString()\n\n return targetUrl\n }\n\n chengeSelect (e) {\n const sortId = e.target.value\n location.href = this.setUrl(e, sortId)\n }\n}\n"],"names":["Swiper","use","Navigation","Thumbs","Pagination","connect","imagesCount","this","largeTarget","dataset","hasSmallTarget","thumbs","smallTarget","loop","slidesPerView","slidesPerGroup","spaceBetween","spaceBefore","spaceAfter","aspectRatio","watchSlidesVisibility","watchSlidesProgress","slideToClickedSlide","slider","pagination","el","type","formatFractionTotal","number","navigation","nextEl","prevEl","swiper","modalSlider","largeModalTarget","observer","observeParents","seeMore","e","target","parentElement","classList","add","element","classname","nextElementSibling","show","preventDefault","imageSrc","getAttribute","Number","currentTarget","index","modalTarget","hide","remove","Controller","modalId","Cookies","get","disableMyFacilitiesModal","disableInquiryModal","modalid","controllerForAdding","controllerforadding","controllerForUpdating","controllerforupdating","querySelectorAll","forEach","action","_this","panoramaThumbImages","initialize","panoramaThumbTarget","screen","screenTarget","thumb","addEventListener","pannellum","viewer","panorama","autoLoad","compass","click","className","restToggle","event","classificationIndex","restPhotosTargetElement","restPhotosTargets","find","contains","restOpen","restClose","style","maxHeight","scrollHeight","openTargets","display","closeTargets","scroll","SmoothScroll","offset","speed","speedAsDuration","easing","updateURL","popstate","lastScrollPosition","ticking","window","scrollY","requestAnimationFrame","toggleVisibility","doWhenIntersect","document","querySelector","panoramaTarget","classificationFirstTarget","classificationSecondTarget","classificationThirdTarget","targetSection","targetTab","IntersectionObserver","entries","entry","isIntersecting","_this2","rootMargin","threshold","observe","scrollPosition","containerTarget","scrollTo","id","anchor","animateScroll","scrollToPanorama","scrollToClassificationFirst","scrollToClassificationSecond","scrollToClassificationThird","toggle","parentNode","open","close","planTargets","plan","hasPlansOpenTarget","hasPlansCloseTarget","length","plansOpenTarget","plansCloseTarget","hasPlanNoneTarget","planNoneTarget","hasCareLevelSelectTarget","hasCareInsuranceRateSelectTarget","filterBySelect","updateLabel","selectState","careLevelSelectTarget","value","careInsuranceRateSelectTarget","checkValues","roomTypeSelectTargets","checked","push","checkState","step1Target","step2Target","filterByRoomType","count","includes","roomCategory","changeNursingInsurance","unit","unitValue","category_id","_this3","categoryValue","care_level_id","kaigoHoken","areaPriceValue","kaigoHokenRound","Math","round","insertKaigoHoken","monthlyFee","innerHTML","_this4","feeToString","kaigoHokenTargets","tenThousandAmount","split","String","slice","join","_this5","_this6","Array","category","areaPrice","tabTargets","panelTargets","planToggle","planOpen","planClose","gtag","changePanel","openPanel","currentIndex","indexOf","inactiveAllButton","closeAllPanel","currentButton","button","panel","modalShowedCounter","setTimeout","showModal","firstTime","hasModalTarget","secondTime","setRestraintModal","restartTime","firsttime","secondtime","restarttime","scrollOrRedirectToReviews","getElementById","location","href","url","overlayTargets","scrollOrRedirectToAccess","more","moreButtonTarget","moreTextTarget","IntersectionObserverEntry","prototype","basicTarget","plansTarget","photosTarget","reviewsTarget","medicalCaresTarget","accessTarget","admissionConditionObserveIntersection","tabPosition","offsetTop","targetElement","fired","console","log","unobserve","scrollToBasic","scrollToFeatures","scrollToPlans","scrollToPhotos","scrollToReviews","scrollToMedicalCares","scrollToAccess","scrollToBuilding","facilityId","parseInt","facilityid","ids","JSON","parse","isArray","from","children","child","innerText","client","axios","getCount","params","response","data","toggleAccordion","setFacilitiesCount","changeRoutePanel","cityIdTargets","_index","ordinanceDesignatedCityIdTargets","cityListTargets","ordinanceDesignatedCityListTargets","changeAreaPanel","stationIdTargets","stationListTargets","toggleModal","targetModalIndex","modalIndex","documentElement","modalInitialize","scrollToselectedPrefecture","hasTabTarget","hasPanelTarget","ga","gtagEvent","validate","some","prefectureIdTargets","formTarget","submit","clickAreaCheckBox","name","filter","stationList","setSelectedContentList","changeFormValue","manipulateString","a","b","replace","selectedContent","closest","textContent","replacementText","citySelectedContentTarget","FormData","formData","prefecture_id","getAll","city_ids","ordinance_designated_city_ids","station_ids","admission_fee_min","admission_fee_max","monthly_fee_min","monthly_fee_max","walking_time","care_level_ids","feature_content_ids","category_ids","medical_care_ids","with_review","vacancies_exist","welfare_acceptable","dementia_acceptable","no_joint_surety_required","then","countElement","submitTargets","startNumber","endNumber","result","notifyFacilitiesCountIsOver","submitButtonEnabled","submitButtonDisabled","animateCount","submitButtonTarget","disabled","hasNotifyTextTarget","notifyTextTarget","start","end","startTime","updateNumber","timestamp","progress","min","currentNumber","floor","uncheckAssociatedFeatureCheckboxes","uncheckFeatureId","featureCheckboxTargets","checkbox","changeEvent","Event","dispatchEvent","hideLoading","classNameModal","modalMobileComponentTarget","mobileComponentTarget","prefectureIdsString","prefectureIds","prefectureIdsArray","minPrefectureId","scrollToParent","parentOffset","getBoundingClientRect","top","scrollTop","behavior","getPrefecture","valuePref","loading","loadingTargets","hasElement","cityCheckboxTargets","URLSearchParams","append","path","toString","fetch","json","res","cities","prefectures","ordinance_designated_cities","prefectureId","ordinanceDesignatedCitiesList","createOrdinanceDesignatedCitiesList","citiesList","createCityList","shouldCheck","idList","inputTagValue","removeInputHidden","inputHidden","ordinanceDesignatedCities","ordinanceDesignatedCityIds","map","inputValue","ordinanceDesignatedCity","cityIds","inputCity","city","getRoute","routeCheckboxTargets","childElementCount","routes","routeList","createRouteList","company","route","checkAll","checkboxAllTargets","checkboxes","checkboxesTargets","isChecked","updateCheckboxes","getStation","valueCompany","valueRoute","stationCheckboxTargets","_this7","createStationList","companyId","routeId","stations","item","selectedStationsValue","stationIds","concat","station","_this8","reset","tabId","tab","tabs","panels","currentPanel","currentId","currentPanels","hideAllTabs","left","checkAllAccordion","checkAllAccordionTargets","back","targetId","hasSelectTarget","currentSortKey","search","selectTarget","options","option","selected","setUrl","sortId","currentUrl","URL","currentParams","set","delete","chengeSelect","synchChecks","hiddenCheckboxTargets","uncheckNewOpenFeatureCheckboxes","uncheckBulkCheckbox","bulkCheckboxTarget","featureContentId","isEnabled","similarFacilitiesBnr","getElementsByClassName","bottom","rowTargets","openTarget","row","facility","closeTarget","collapsible","stringify","uniq","splice","scrollOrRedirectToAdmissionCondition","facilityItemTargets","activeScrollTarget","facilityTableTarget","handleScroll","bind","classNames","classnames","facilityName","facilityname","clickedButton","targetFacility","confirm","removeId","reload","facilityIds","Lazy","centeredSlides","lazyLoading","lazy","loadPrevNext","clickable","bulletActiveClass","enable","rank","rankTargets","hasLargeModalTarget","slideTo","scrollOrRedirectToPlans","feeTarget","initializeSwipers","largeTargets","nextTargets","prevTargets","hasCatchphraseTarget","catchphraseTargets","catchphrase","showTarget","hideTarget","hideOverlay","isMyFacilitiesPage","pathname","hasLargeTarget","buttonTarget","updateBadges","update","isCountIncreased","flashTooltips","badgeTargets","tooltipTargets","tooltip","badge","openMyFacilitiesModal","myFacilitiesModalATarget","modalBTarget","openInquiryModal","inquiryModalATarget","closeModal","enableMyFacilitiesModalB","myfacilitiesSentenceBTarget","inquirySentenceBTarget","enableInquiryModalB","registerVerifiedModalId","componentName","searchAreaTarget","cityCheckBoxesModalNextButtonStatus","cityCheckBoxesModalNextButtonTarget","inputFeeNextButtonStatus","selectedValue1","monthlyFeeMinTarget","selectedValue2","monthlyFeeMaxTarget","inputFeeNextButtonTarget","changeTab","showTab"],"sourceRoot":""}