{"version":3,"file":"home.recipe.min.js","names":["m","$","init","resizeTimeout","window","on","clearTimeout","setTimeout","resizeWindow","win","ingredientsContainer","directionsContainer","ingredientsContent","directionsContent","width","ooooby","deviceSizeSmall","appendTo","jQuery","document","ready"],"sources":["home.recipe.js"],"mappings":"CAAC,SAAUA,EAAGC,GAEVD,EAAEE,KAAO,WACL,IAAIC,EACJF,EAAEG,QAAQC,GAAG,UAAU,WACnBC,aAAaH,GACbA,EAAgBI,WAAWP,EAAEQ,aAAc,IAC/C,IAEAR,EAAEQ,cACN,EAEAR,EAAEQ,aAAe,WACb,IAAIC,EAAMR,EAAEG,QAERM,EAAuBT,EAAE,6BACzBU,EAAsBV,EAAE,4BACxBW,EAAqBX,EAAE,mBACvBY,EAAoBZ,EAAE,kBAEtBQ,EAAIK,QAAUC,OAAOC,iBACrBJ,EAAmBK,SAASP,GAC5BG,EAAkBI,SAASN,IAEtBF,EAAIK,SAAWC,OAAOC,kBAC3BJ,EAAmBK,SAASN,GAC5BE,EAAkBI,SAASP,GAEnC,CAEJ,CA9BA,CA8BEN,OAAOW,OAASX,OAAOW,QAAU,CAAC,EAAGG,QAEvCjB,EAAEkB,UAAUC,OAAM,WACdL,OAAOb,MACX","ignoreList":[],"sourcesContent":["(function (m, $) {\n\n m.init = function () {\n var resizeTimeout;\n $(window).on(\"resize\", function () {\n clearTimeout(resizeTimeout);\n resizeTimeout = setTimeout(m.resizeWindow, 500);\n });\n\n m.resizeWindow();\n };\n\n m.resizeWindow = function() {\n var win = $(window);\n\n var ingredientsContainer = $(\".ux-ingredients-container\");\n var directionsContainer = $(\".ux-directions-container\");\n var ingredientsContent = $(\".ux-ingredients\");\n var directionsContent = $(\".ux-directions\");\n\n if (win.width() < ooooby.deviceSizeSmall) {\n ingredientsContent.appendTo(ingredientsContainer);\n directionsContent.appendTo(directionsContainer);\n }\n else if (win.width() >= ooooby.deviceSizeSmall) {\n ingredientsContent.appendTo(directionsContainer);\n directionsContent.appendTo(ingredientsContainer);\n }\n };\n\n}(window.ooooby = window.ooooby || {}, jQuery));\n\n$(document).ready(function () {\n ooooby.init();\n});"]}