{“ast”:null,“code”:“// This file is automatically compiled by Webpack, along with any other filesn// present in this directory. You're encouraged to place your actual application logic inn// a relevant structure within app/javascript and only use these pack files to referencen// that code so it'll be compiled.n// alert("")n// alert('')nRails = require("/ujs");nRails.start();nnrequire("turbolinks").start();nnrequire("/activestorage").start();nnrequire("channels"); // require("chartkick")n// require("chart.js")n// require("chartkick")nnnrequire("chartkick").use(require("highcharts"));nndocument.addEventListener("turbolinks:load", function () {n $('[data-toggle="popover"]').popover();n var entityValueMarking = document.getElementById('entity-value-marking');n document.querySelectorAll(‘form').forEach(function (form) {n form.addEventListener('ajax:before', function (e) {n if (form.dataset.isComplete !== 'true') {n e.preventDefault();n entityValueMarking.style.display = 'block';n alert('Pls select the text that should be the extracted value for this property.');nn var onFinalSelectionChange = function onFinalSelectionChange() {n var selection = document.getSelection();n var isConfirmed = confirm('Confirm this property value? ' + selection);nn if (!isConfirmed) {n return;n }nn form.querySelector(’input[name="wit_ai_parse_model_example"]').value = selection;n form.querySelector(‘input[name="wit_ai_parse_model_example"]').value = selection.baseNode.parentElement.dataset.index;n form.querySelector(’input[name="wit_ai_parse_model_example"]').value = selection.extentNode.parentElement.dataset.index;n form.dataset.isComplete = 'true';n Rails.fire(form, 'submit');n };nn var lastTimeStamp = 0;n document.addEventListener('selectionchange', function (e) {n setTimeout(function () {n if (e.timeStamp === lastTimeStamp) {n onFinalSelectionChange();n }n }, 1000);n lastTimeStamp = e.timeStamp;n });n }n });n });n}); // Uncomment to copy all static images under ../images to the output folder and referencen// them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>)n// or the `imagePath` JavaScript helper below.n//n// const images = require.context('../images', true)n// const imagePath = (name) => images(name, truen// // import and load opal ruby filesn// import init_app from 'opal_loader.rb';n// init_app();n// Opal.load('opal_loader');nnrequire("trix");nnrequire("/actiontext");”,“map”:{“version”:3,“sources”:[“/Users/lemonandroid/Banal Dropbox/random/redux-os/app/javascript/packs/application.js”],“names”:,“mappings”:“AAAA;AACA;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HL,SAAS,CAACM,QAAV,CAAmBC,aAAnB,CAAiCd,OAAjC,CAAyCe,KAA5J;AACAjB,UAAAA,IAAI,CAACa,aAAL,CAAmB,oFAAnB,EAAyGC,KAAzG,GAAiHL,SAAS,CAACS,UAAV,CAAqBF,aAArB,CAAmCd,OAAnC,CAA2Ce,KAA5J;AAEAjB,UAAAA,IAAI,CAACE,OAAL,CAAaC,UAAb,GAA0B,MAA1B;AAEAf,UAAAA,KAAK,CAAC+B,IAAN,CAAWnB,IAAX,EAAiB,QAAjB;AACH,SAXD;;AAaA,YAAIoB,aAAa,GAAG,CAApB;AACA5B,QAAAA,QAAQ,CAACC,gBAAT,CAA0B,iBAA1B,EAA6C,UAACQ,CAAD,EAAO;AAEhDoB,UAAAA,UAAU,CAAC,YAAW;AAClB,gBAAGpB,CAAC,CAACqB,SAAF,KAAgBF,aAAnB,EAAkC;AAC9BZ,cAAAA,sBAAsB;AACzB;AACJ,WAJS,EAIP,IAJO,CAAV;AAOAY,UAAAA,aAAa,GAAGnB,CAAC,CAACqB,SAAlB;AACH,SAVD;AAWH;AACJ,KAjCD;AAkCH,GAnCD;AAoCH,CAzCD,E,CA6CA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;;AAGAjC,OAAO,CAAC,MAAD,CAAP;;AACAA,OAAO,CAAC,mBAAD,CAAP”,“sourcesContent”:[“// This file is automatically compiled by Webpack, along with any other filesn// present in this directory. You're encouraged to place your actual application logic inn// a relevant structure within app/javascript and only use these pack files to referencen// that code so it'll be compiled.nn// alert("")n// alert('')nnnnnRails = require("/ujs")nRails.start()nrequire("turbolinks").start()nrequire("/activestorage").start()nrequire("channels")nn// require("chartkick")n// require("chart.js")n// require("chartkick")nrequire("chartkick").use(require("highcharts"))nnnndocument.addEventListener("turbolinks:load", function(){n $('[data-toggle="popover"]').popover();nn var entityValueMarking = document.getElementById('entity-value-marking');nn document.querySelectorAll(‘form').forEach(function(form) {n form.addEventListener('ajax:before', function(e) {n if(form.dataset.isComplete !== 'true') {n e.preventDefault();n entityValueMarking.style.display = 'block';nn alert('Pls select the text that should be the extracted value for this property.');nn let onFinalSelectionChange = function() {n let selection = document.getSelection();n let isConfirmed = confirm('Confirm this property value? ' + selection);n if(!isConfirmed) { return; }n form.querySelector(’input[name="wit_ai_parse_model_example"]').value = selection;n form.querySelector(‘input[name="wit_ai_parse_model_example"]').value = selection.baseNode.parentElement.dataset.index;n form.querySelector(’input[name="wit_ai_parse_model_example"]').value = selection.extentNode.parentElement.dataset.index;nn form.dataset.isComplete = 'true';nn Rails.fire(form, 'submit');n }n n let lastTimeStamp = 0;n document.addEventListener('selectionchange', (e) => {nn setTimeout(function() {n if(e.timeStamp === lastTimeStamp) {n onFinalSelectionChange()n } n }, 1000)n n n lastTimeStamp = e.timeStamp;n });n }n })n });n});nnnn// Uncomment to copy all static images under ../images to the output folder and referencen// them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>)n// or the `imagePath` JavaScript helper below.n//n// const images = require.context('../images', true)n// const imagePath = (name) => images(name, truenn// // import and load opal ruby filesn// import init_app from 'opal_loader.rb';n// init_app();n// Opal.load('opal_loader');nnnrequire("trix")nrequire("/actiontext")”]},“metadata”:{},“sourceType”:“module”}