{"version":3,"sources":["wpcc-elementor-script.js"],"names":["$","wpCalorieCalculator","_inherits","elementorModules","frontend","handlers","Base","_super","_createSuper","_classCallCheck","this","apply","arguments","_createClass","key","value","selectors","widget","getSettings","$widgets","findElement","_get2","window","wpcc","init","_len","length","args","Array","_key","_get","_getPrototypeOf","prototype","call","concat","on","elementorFrontend","elementsHandler","attachHandler","jQuery"],"mappings":"ghFAAA,SAAWA,GACG,IAEPC,EAAmB,WAAAC,UAAAD,EAASE,iBAAiBC,SAASC,SAASC,MAA5C,IAAAC,EAAAC,aAAAP,GAAA,SAAAA,IAAA,OAAAQ,gBAAAC,KAAAT,GAAAM,EAAAI,MAAAD,KAAAE,WAsBvB,OAtBuBC,aAAAZ,EAAA,CAAA,CAAAa,IAAA,qBAAAC,MACxB,WACC,MAAO,CACNC,UAAW,CACVC,OAAQ,4BAGV,CAAAH,IAAA,qBAAAC,MAED,WACC,IAAMC,EAAYN,KAAKQ,YAAY,aAbrC,MAAA,CACAC,SAAYT,KAAAU,YAAAJ,EAAAC,WAAC,CAAAH,IAAA,aAAAC,MAmBZ,cAjBwB,CAAAD,IAAA,SAAAC,MAmBxB,WAnBwB,IAAAM,EAoBvBC,OApBuBC,KAAAC,OAAA,IAAA,IAAAC,EAAAb,UAAAc,OAAAC,EAAA,IAAAC,MAAAH,GAAAI,EAAA,EAAAA,EAAAJ,EAAAI,IAAAF,EAAAE,GAAAjB,UAAAiB,IAqBvBR,EAAAS,KAAAC,gBAAA9B,EAAA+B,WAAA,SAAAtB,OAAAuB,KAAAtB,MAAAU,EAAA,CAAAX,MAAAwB,OArBuBP,QAsBvB1B,EAtBuB,GAyBzBD,EAAEsB,QAvBAa,GAAA,0BAAO,WAwBRC,kBAvBWC,gBAAEC,cAAA,+BAAArC,KANf,CA+BGsC","file":"wpcc-elementor-script.js","sourcesContent":["(function ($) {\n\t\"use strict\";\n\n\tclass wpCalorieCalculator extends elementorModules.frontend.handlers.Base {\n\t\tgetDefaultSettings() {\n\t\t\treturn {\n\t\t\t\tselectors: {\n\t\t\t\t\twidget: \".wpcc-elementor-block\",\n\t\t\t\t},\n\t\t\t};\n\t\t}\n\n\t\tgetDefaultElements() {\n\t\t\tconst selectors = this.getSettings(\"selectors\");\n\n\t\t\treturn {\n\t\t\t\t$widgets: this.findElement(selectors.widget),\n\t\t\t};\n\t\t}\n\n\t\tbindEvents() {}\n\n\t\tonInit(...args) {\n\t\t\twindow.wpcc.init();\n\t\t\tsuper.onInit(...args);\n\t\t}\n\t}\n\n\t$(window).on(\"elementor/frontend/init\", () => {\n\t\telementorFrontend.elementsHandler.attachHandler(\"wp-calorie-calculator-widget\", wpCalorieCalculator);\n\t});\n})(jQuery);\n"]}