{"version":3,"sources":["webpack:///./LeLab.Gcv.Web/src/atomic/organism/o-room/o-room.chunk.js","webpack:///./LeLab.Gcv.Web/src/atomic/organism/o-room/o-room.scss"],"names":["require","Logger","$","$document","document","isIE","window","navigator","userAgent","indexOf","match","currentLang","attr","ariaLabelPrev","ariaLabelNext","RoomSlider","element","Log","$module","slick","dots","dotsClass","arrows","prevArrow","nextArrow","slidesToShow","slidesToScroll","infinite","focusOnSelect","useTransform","cssEase","responsive","breakpoint","settings","init","each","off","on","event","drawerContainer","roomSlider","Refresh"],"mappings":";;;;;;;;;;;;AAAA,mBAAAA,CAAQ,EAAR;AACA,mBAAAA,CAAQ,GAAR;AACA,IAAIC,SAAS,mBAAAD,CAAQ,EAAR,CAAb;AACA,IAAIE,IAAI,mBAAAF,CAAQ,CAAR,CAAR;AACA,IAAIG,YAAYD,EAAEE,QAAF,CAAhB;AACA,mBAAAJ,CAAQ,EAAR;;AAEA,IAAIK,OAAO,KAAX;AACA,IAAIC,OAAOC,SAAP,CAAiBC,SAAjB,CAA2BC,OAA3B,CAAmC,OAAnC,IAA8C,CAA9C,IAAmD,CAAC,CAACF,UAAUC,SAAV,CAAoBE,KAApB,CAA0B,mBAA1B,CAAzD,EAAyG;AACrGL,WAAO,IAAP;AACH;;AAED,IAAIM,cAAcT,EAAE,MAAF,EAAUU,IAAV,CAAe,MAAf,CAAlB;AACA,IAAIC,gBAAgBF,gBAAgB,IAAhB,GAAuB,WAAvB,GAAqC,UAAzD;AACA,IAAIG,gBAAgBH,gBAAgB,IAAhB,GAAuB,SAAvB,GAAmC,MAAvD;;IAEMI,U;AACF,wBAAYC,OAAZ,EAAqB;AAAA;;AAEjBf,eAAOgB,GAAP,CAAW,mBAAX,EAAgC,oBAAhC;;AAEA,aAAKC,OAAL,GAAehB,EAAEc,OAAF,CAAf;AACA,aAAKE,OAAL,CAAaC,KAAb,CAAmB;AACfC,kBAAM,IADS;AAEfC,uBAAW,qBAFI;AAGfC,oBAAQ,IAHO;AAIfC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C","file":"o-room.js","sourcesContent":["require(\"slick-carousel/slick/slick.scss\");\r\nrequire(\"./o-room.scss\");\r\nlet Logger = require(\"utils/log-utils\");\r\nlet $ = require('jquery');\r\nlet $document = $(document);\r\nrequire(\"slick-carousel/slick/slick.js\");\r\n\r\nlet isIE = false;\r\nif (window.navigator.userAgent.indexOf(\"MSIE \") > 0 || !!navigator.userAgent.match(/Trident.*rv\\:11\\./)) {\r\n isIE = true;\r\n}\r\n\r\nlet currentLang = $('html').attr('lang');\r\nlet ariaLabelPrev = currentLang === 'fr' ? 'précédent' : 'previous';\r\nlet ariaLabelNext = currentLang === 'fr' ? 'suivant' : 'next';\r\n\r\nclass RoomSlider {\r\n constructor(element) {\r\n\r\n Logger.Log('o-room-RoomSlider', 'Constructor called');\r\n\r\n this.$module = $(element);\r\n this.$module.slick({\r\n dots: true,\r\n dotsClass: 'o-room__slider-dots',\r\n arrows: true,\r\n prevArrow: '',\r\n nextArrow: '',\r\n slidesToShow: 1,\r\n slidesToScroll: 1,\r\n infinite: true,\r\n focusOnSelect: true,\r\n useTransform: (isIE ? false : true),\r\n cssEase: 'cubic-bezier(.38,.92,.75,1)',\r\n responsive: [\r\n {\r\n breakpoint: 992,\r\n settings: {\r\n arrows: false\r\n }\r\n }\r\n ]\r\n });\r\n }\r\n\r\n Refresh() {\r\n\r\n Logger.Log('o-room-RoomSlider', 'Refresh called');\r\n\r\n this.$module.slick('refresh');\r\n }\r\n}\r\n\r\nvar init = function () {\r\n $('.o-room__slider').each(function () {\r\n if (this.RoomSlider) {\r\n return;\r\n }\r\n this.RoomSlider = new RoomSlider(this);\r\n });\r\n};\r\n\r\ninit();\r\n\r\n// Correction de l'affichage du slider : lorsque le slider se trouve dans \r\n// un tiroir et qu'il était caché, la première photo est non visible.\r\n$document.off('ajaxdrawercontainer:open.RoomSlider');\r\n$document.on('ajaxdrawercontainer:open.RoomSlider', function (event, drawerContainer) {\r\n\r\n Logger.Log('o-room on ajaxdrawercontainer:open', {'event': event, 'drawerContainer': drawerContainer});\r\n\r\n var roomSlider = $(\".o-room__slider\", drawerContainer)[0];\r\n\r\n if (roomSlider.RoomSlider) {\r\n roomSlider.RoomSlider.Refresh();\r\n }\r\n});\r\n\r\n$document.off('jsInitAllScripts.o-room');\r\n$document.on('jsInitAllScripts.o-room', function () {\r\n\r\n Logger.Log('o-room', 'on jsInitAllScripts');\r\n\r\n init();\r\n});\n\n\n// WEBPACK FOOTER //\n// ./LeLab.Gcv.Web/src/atomic/organism/o-room/o-room.chunk.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./LeLab.Gcv.Web/src/atomic/organism/o-room/o-room.scss\n// module id = 614\n// module chunks = 56"],"sourceRoot":""}