{"version":3,"file":"static/js/wptelegram-widget--public.3735d259.js","mappings":"yBACA,IAAIA,EAAsB,CCA1BA,EAAwB,SAASC,GAChC,IAAIC,EAASD,GAAUA,EAAOE,WAC7B,WAAa,OAAOF,EAAgB,SACpC,WAAa,OAAOA,GAErB,OADAD,EAAoBI,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,GCLRF,EAAwB,SAASM,EAASC,GACzC,IAAI,IAAIC,KAAOD,EACXP,EAAoBS,EAAEF,EAAYC,KAASR,EAAoBS,EAAEH,EAASE,IAC5EE,OAAOC,eAAeL,EAASE,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,MCJ3ER,EAAwB,SAASc,EAAKC,GAAQ,OAAOL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,KCA3F,EAA+BI,OAAe,O,SCIlDC,GAAAA,EAAE,WACD,IAAMC,EAASD,GAAAA,CAAE,qCAEjBC,EAAOC,GAAG,iBAAiB,WAC1B,IAAMC,EAAQH,GAAAA,CAAEI,MACVC,EAASF,EAAMG,WAAWC,KAAK,QAAQF,SAE7CF,EAAME,OAAOA,MAGdJ,EAAOC,GAAG,QAAQ,WACjB,IAAMC,EAAQH,GAAAA,CAAEI,MACZD,EAAMG,WAAWC,KAAK,QAAQC,GAAG,UACpCL,EAAMM,SAASC,SAEfP,EAAMQ,QAAQ,oBAIhBX,GAAAA,CAAED,QAAQG,GAAG,UAAU,WACtBD,EAAOU,QAAQ,uB","sources":["../webpack/bootstrap","../webpack/runtime/compat get default export","../webpack/runtime/define property getters","../webpack/runtime/hasOwnProperty shorthand","../external window \"jQuery\"","../domains/wptelegram/widget/public/src/index.ts"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"jQuery\"];","import $ from 'jquery';\n\nimport './style.scss';\n\n$(() => {\n\tconst iframe = $('.wptelegram-widget-message iframe');\n\n\tiframe.on('resize_iframe', function () {\n\t\tconst $this = $(this);\n\t\tconst height = $this.contents().find('body').height();\n\n\t\t$this.height(height);\n\t});\n\n\tiframe.on('load', function () {\n\t\tconst $this = $(this);\n\t\tif ($this.contents().find('body').is(':empty')) {\n\t\t\t$this.parent().remove();\n\t\t} else {\n\t\t\t$this.trigger('resize_iframe');\n\t\t}\n\t});\n\n\t$(window).on('resize', () => {\n\t\tiframe.trigger('resize_iframe');\n\t});\n});\n"],"names":["__webpack_require__","module","getter","__esModule","d","a","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","window","$","iframe","on","$this","this","height","contents","find","is","parent","remove","trigger"],"sourceRoot":""}