{"version":3,"sources":["webpack:///./LeLab.Gcv.Web/src/atomic/organism/o-widget-cart/o-widget-cart.chunk.js","webpack:///./LeLab.Gcv.Web/src/atomic/organism/o-widget-cart/o-widget-cart.scss"],"names":["require","$","isTouchEvent","widgetClassOpen","$document","document","getWidgetsToToggle","$widgets","doToggleWidgets","each","doToggleWidget","$widget","addClass","focus","setTimeout","removeClass","init","$toggleWidget","$hoverWidgets","$this","$targetWidget","data","on","$hoverWidget","timer","off","clearTimeout"],"mappings":";;;;;;;;AAAA,mBAAAA,CAAQ,GAAR;;AAEA,IAAIC,IAAI,mBAAAD,CAAQ,CAAR,CAAR;AAAA,IACIE,eAAe,mBAAAF,CAAQ,GAAR,CADnB;;AAGA,IAAIG,kBAAkB,qBAAtB;AAAA,IACIC,YAAYH,EAAEI,QAAF,CADhB;;AAGA,IAAIC,qBAAqB,SAArBA,kBAAqB,GAAY;AACjC,QAAIC,WAAWN,EAAE,eAAF,CAAf;AACA,WAAOM,QAAP;AACH,CAHD;;AAKA,IAAIC,kBAAkB,SAAlBA,eAAkB,GAAY;AAC9B,QAAID,WAAWD,oBAAf;AACAC,aAASE,IAAT,CAAc,YAAY;AACtBC,uBAAeT,EAAE,IAAF,CAAf;AACH,KAFD;AAGH,CALD;;AAOA,IAAIS,iBAAiB,SAAjBA,cAAiB,CAAUC,OAAV,EAAmB;AACpCA,YAAQC,QAAR,CAAiBT,eAAjB;AACAF,MAAE,qBAAF,EAAyB,CAAzB,EAA4BY,KAA5B;AACAC,eAAW,YAAY;AACnBH,gBAAQI,WAAR,CAAoBZ,eAApB;AACH,KAFD,EAEG,IAFH;AAGH,CAND;;AAQA,IAAIa,OAAO,SAAPA,IAAO,GAAY;;AAEnB,QAAIC,gBAAgBhB,EAAE,sBAAF,CAApB;AAAA,QACIiB,gBAAgBjB,EAAE,qBAAF,CADpB;;AAGAgB,kBAAcR,IAAd,CAAmB,YAAY;AAC3B,YAAIU,QAAQlB,EAAE,IAAF,CAAZ;AAAA,YACImB,g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AR,CAAoBZ,eAApB;AACH,iBAFO,EAEL,GAFK,CAAR;AAGH;AACJ,SAhBL;AAiBH,KAzCD;;AA2CAC,cACKqB,GADL,CACS,oBADT,EAEKH,EAFL,CAEQ,oBAFR,EAE8B,YAAY;AAClC,YAAIX,UAAUV,EAAE,eAAF,CAAd;AACA,YAAIC,cAAJ,EAAoB;AAChBS,oBAAQI,WAAR,CAAoBZ,eAApB;AACH;AACJ,KAPL;AAQH,CAlED;;AAoEAa;;AAEAZ,UACKqB,GADL,CACS,6BADT,EAEKH,EAFL,CAEQ,6BAFR,EAEuC,YAAY;AAC3CN;AACH,CAJL;;AAMAZ,UACKqB,GADL,CACS,8CADT,EAEKH,EAFL,CAEQ,8CAFR,EAEwD,YAAY;AAC5Dd;AACH,CAJL,E;;;;;;;ACxGA,yC","file":"o-widget-cart.js","sourcesContent":["require(\"./o-widget-cart.scss\");\r\n\r\nvar $ = require(\"jquery\"),\r\n isTouchEvent = require(\"../../../utils/is-touch-event\");\r\n\r\nvar widgetClassOpen = \"o-widget-cart--open\",\r\n $document = $(document);\r\n\r\nvar getWidgetsToToggle = function () {\r\n var $widgets = $('[data-widget]');\r\n return $widgets;\r\n};\r\n\r\nvar doToggleWidgets = function () {\r\n var $widgets = getWidgetsToToggle();\r\n $widgets.each(function () {\r\n doToggleWidget($(this));\r\n });\r\n};\r\n\r\nvar doToggleWidget = function ($widget) {\r\n $widget.addClass(widgetClassOpen);\r\n $('.o-header-cart__btn')[0].focus();\r\n setTimeout(function () {\r\n $widget.removeClass(widgetClassOpen);\r\n }, 5000);\r\n};\r\n\r\nvar init = function () {\r\n\r\n var $toggleWidget = $('[data-toggle-widget]'),\r\n $hoverWidgets = $('[data-hover-widget]');\r\n\r\n $toggleWidget.each(function () {\r\n var $this = $(this),\r\n $targetWidget = $this.data('toggle-widget'),\r\n $widget = $('[data-widget=\"' + $targetWidget + '\"]');\r\n\r\n $this.on('click.toggleWidget', function () {\r\n doToggleWidget($widget);\r\n });\r\n });\r\n\r\n $hoverWidgets.each(function () {\r\n var $hoverWidget = $(this),\r\n $targetWidget = $hoverWidget.data('hover-widget'),\r\n $widget = $('[data-widget=\"' + $targetWidget + '\"]'),\r\n timer;\r\n\r\n $hoverWidget\r\n .off('mouseover.hoverWidget')\r\n .on('mouseover.hoverWidget', function () {\r\n if (!isTouchEvent()) {\r\n clearTimeout(timer);\r\n $widget.addClass(widgetClassOpen);\r\n $('.o-header-cart__btn')[0].focus();\r\n }\r\n })\r\n .off('mouseleave.hoverWidget')\r\n .on('mouseleave.hoverWidget', function () {\r\n if (!isTouchEvent()) {\r\n timer = setTimeout(function () {\r\n $widget.removeClass(widgetClassOpen)\r\n }, 500);\r\n }\r\n });\r\n\r\n $widget\r\n .off('mouseover.hoverWidget')\r\n .on('mouseover.hoverWidget', function () {\r\n if (!isTouchEvent()) {\r\n clearTimeout(timer);\r\n $widget.addClass(widgetClassOpen);\r\n $('.o-header-cart__btn')[0].focus();\r\n }\r\n })\r\n .off('mouseleave.hoverWidget')\r\n .on('mouseleave.hoverWidget', function () {\r\n if (!isTouchEvent()) {\r\n timer = setTimeout(function () {\r\n $widget.removeClass(widgetClassOpen)\r\n }, 500);\r\n }\r\n });\r\n });\r\n\r\n $document\r\n .off('click.toggleWidget')\r\n .on('click.toggleWidget', function () {\r\n var $widget = $('[data-widget]');\r\n if (isTouchEvent()) {\r\n $widget.removeClass(widgetClassOpen);\r\n }\r\n });\r\n};\r\n\r\ninit();\r\n\r\n$document\r\n .off('jsInitAllScripts.widgetcart')\r\n .on('jsInitAllScripts.widgetcart', function () {\r\n init();\r\n });\r\n\r\n$document\r\n .off('animationToggleShoppingcartWidget.widgetcart')\r\n .on('animationToggleShoppingcartWidget.widgetcart', function () {\r\n doToggleWidgets();\r\n });\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// ./LeLab.Gcv.Web/src/atomic/organism/o-widget-cart/o-widget-cart.chunk.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./LeLab.Gcv.Web/src/atomic/organism/o-widget-cart/o-widget-cart.scss\n// module id = 659\n// module chunks = 40"],"sourceRoot":""}