{"version":3,"sources":["../js/_blocks/video.js"],"names":["initializeBlock","block","jQuery","modalVideo","channel","document","ready","each","this","window","acf","addAction"],"mappings":"aAAA,IAAIA,gBAAkB,SAASC,GAE3BC,OAAO,iBAAkBD,GAAOE,aACnCD,OAAO,eAAgBD,GAAOE,WAAW,CAACC,QAAQ,WAKnDF,OAAOG,UAAUC,OAAM,WACnBJ,OAAO,mBAAmBK,MAAK,WAC3BP,gBAAgBE,OAAOM,aAK5BC,OAAOC,KACND,OAAOC,IAAIC,UAAU,kCAAmCX","sourcesContent":["var initializeBlock = function(block){\n \n jQuery('.modal-youtube', block).modalVideo();\n\tjQuery('.modal-vimeo', block).modalVideo({channel:'vimeo'});\n \n}\n\n//initialize each block on front end\njQuery(document).ready(function(){\n jQuery('.wp-block-video').each(function(){\n initializeBlock(jQuery(this));\n });\n});\n\n//initialize dynamic block preview in the editor\nif(window.acf)\n window.acf.addAction('render_block_preview/type=video', initializeBlock);\n"]}