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EhD8B,EAAU4K,uBA/BI,SAuC9BtN,OAAOC,UAAUC,OAAM,SAAUC,GA8B7B,IA9BgC,WAE5B,aAAc,UACVC,KAAK0L,eAAiB3L,EAAE,4BACmB,OAAvCoD,eAAewI,sBACf3L,KAAKC,SALe,gCAU5B,WACID,KAAK4L,uBAXmB,gCAc5B,WACI7L,EAAE+C,KAAK9C,KAAK0L,gBAAgB,SAAUnK,EAAGC,GACrC,IAAIE,EAAiB+D,KAAK0G,MAAMpM,EAAEyB,GAAMb,KAAK,wBAEzCc,EAAa1B,EAAEyB,GAAMb,KAAK,mBAC1BgB,EAAW5B,EAAEyB,GAAMb,KAAK,YAExB2B,EAAY,IAAIhB,EAEpBgB,EAAUuK,oBAAoB9M,EAAGwB,EAAGC,EAAMC,EAAYC,EAAgBC,GAEtEW,EAAU4K,uBAzBU,S","sources":["webpack://google-spreadsheet-to-wp-table-sync/./assets/src/scripts/Chunk/Frontend/create_tab.js","webpack://google-spreadsheet-to-wp-table-sync/webpack/bootstrap","webpack://google-spreadsheet-to-wp-table-sync/./assets/src/scripts/Chunk/Frontend/common_func.js","webpack://google-spreadsheet-to-wp-table-sync/./assets/src/scripts/Chunk/Frontend/data_tables_async.js","webpack://google-spreadsheet-to-wp-table-sync/./assets/src/scripts/Chunk/Frontend/data_table_default.js"],"sourcesContent":["jQuery(document).ready(function ($) {\r\n    class ManageTab {\r\n        constructor() {\r\n            this.events();\r\n        }\r\n        events() {\r\n            $(document).on(\"click\", \".tab_hidden_input\", this.showContent);\r\n        }\r\n\r\n        showContent(e) {\r\n            let target = $(e.currentTarget);\r\n\r\n            target\r\n                .parents(\".tab_bottom_side\")\r\n                .find(`.tab_contents .tab-content`)\r\n                .removeClass(\"active\");\r\n\r\n            let inputID = target.attr(\"id\").match(/(\\d+)/)[0];\r\n\r\n            target\r\n                .parents(\".tab_bottom_side\")\r\n                .find(`.tab_contents #tab-content${inputID}`)\r\n                .addClass(\"active\");\r\n        }\r\n    }\r\n    new ManageTab();\r\n});\r\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","export default class Global_Table_Config {\r\n    table_configuration($, i, elem, table_name, table_settings, sheetUrl) {\r\n        let dom = `<\"filtering_input filtering_input_${i}\"${\r\n            table_settings.show_x_entries == \"true\" ? \"l\" : \"\"\r\n        }${table_settings.search_bar == \"true\" ? \"f\" : \"\"}>rt<\"bottom_options bottom_options_${i}\"${\r\n            table_settings.show_info_block == \"true\" ? \"i\" : \"\"\r\n        }p>`;\r\n\r\n        if (this.isProPluginActive()) {\r\n            dom = `B<\"filtering_input filtering_input_${i}\"${\r\n                table_settings.show_x_entries == \"true\" ? \"l\" : \"\"\r\n            }${\r\n                table_settings.search_bar == \"true\" ? \"f\" : \"\"\r\n            }>rt<\"bottom_options bottom_options_${i}\"${\r\n                table_settings.show_info_block == \"true\" ? \"i\" : \"\"\r\n            }p>`;\r\n\r\n            // change the cell format according to feature saved at database\r\n            this.changeCellFormat(\r\n                table_settings.cell_format,\r\n                $(elem).find(\"#create_tables th, td\"),\r\n                $\r\n            );\r\n\r\n            this.changeRedirectionType(\r\n                table_settings.redirection_type,\r\n                $(elem).find(\"#create_tables a\"),\r\n                $\r\n            );\r\n        }\r\n\r\n        $(elem)\r\n            .find(\"#create_tables\")\r\n            .DataTable(this.table_obj($, table_name, table_settings, dom));\r\n\r\n        this.setPdfUrl(sheetUrl, $(elem).find(\".dt-buttons\"));\r\n\r\n        if (this.isProPluginActive()) {\r\n            this.reveal_export_btns($, elem, table_settings);\r\n        }\r\n\r\n        this.swap_input_filter($, i, table_settings);\r\n\r\n        this.swap_bottom_options($, i, table_settings);\r\n    }\r\n\r\n    changeRedirectionType(type, links, $) {\r\n        if (!links.length) return;\r\n        $.each(links, function (i, link) {\r\n            $(link).attr(\"target\", type);\r\n        });\r\n    }\r\n\r\n    changeCellFormat(formatStyle, tableCell, $) {\r\n        switch (formatStyle) {\r\n            case \"wrap\":\r\n                $.each(tableCell, function (i, cell) {\r\n                    $(cell).removeClass(\"clip_style\");\r\n                    $(cell).removeClass(\"expanded_style\");\r\n                    $(cell).addClass(\"wrap_style\");\r\n                });\r\n                break;\r\n\r\n            case \"clip\":\r\n                $.each(tableCell, function (i, cell) {\r\n                    $(cell).removeClass(\"wrap_style\");\r\n                    $(cell).removeClass(\"expanded_style\");\r\n                    $(cell).addClass(\"clip_style\");\r\n                });\r\n                break;\r\n            case \"expand\":\r\n                $.each(tableCell, function (i, cell) {\r\n                    $(cell).removeClass(\"clip_style\");\r\n                    $(cell).removeClass(\"wrap_style\");\r\n                    $(cell).addClass(\"expanded_style\");\r\n                });\r\n                break;\r\n\r\n            default:\r\n                break;\r\n        }\r\n    }\r\n\r\n    isProPluginActive() {\r\n        if (front_end_data.isProActive) {\r\n            return true;\r\n        } else {\r\n            return false;\r\n        }\r\n    }\r\n\r\n    getSpreadsheetID(url) {\r\n        if (!url || url == \"\") return;\r\n\r\n        let sheetID = null;\r\n\r\n        sheetID = url.split(/\\//)[5];\r\n\r\n        if (sheetID) return sheetID;\r\n\r\n        return null;\r\n    }\r\n\r\n    getGridID(url) {\r\n        if (!url || url == \"\") return;\r\n\r\n        let gridID = null;\r\n\r\n        gridID = url.match(/gid=(\\w+)/)[1];\r\n\r\n        if (gridID) return gridID;\r\n\r\n        return null;\r\n    }\r\n\r\n    setPdfUrl(url, elem) {\r\n        let spreadsheetID = this.getSpreadsheetID(url);\r\n        let gridID = this.getGridID(url);\r\n        let pdfUrl = `https://docs.google.com/spreadsheets/d/${spreadsheetID}/export?format=pdf&id=${spreadsheetID}&gid=${gridID}`;\r\n\r\n        elem.append(\r\n            `<a class=\"ui inverted red button export_btns pdf_btn\"\r\n                href=\"${pdfUrl}\"\r\n                download>\r\n                <span>\r\n                    PDF &nbsp;<img src=\"${front_end_data.iconsURL.filePdf}\" />\r\n                </span>\r\n            </a>`\r\n        );\r\n    }\r\n\r\n    table_obj($, table_name, table_settings, dom) {\r\n        let table_object = {\r\n            dom: dom,\r\n            order: [],\r\n            responsive: true,\r\n            lengthMenu: [\r\n                [1, 5, 10, 15],\r\n                [1, 5, 10, 15],\r\n            ],\r\n            pageLength: parseInt(table_settings.default_rows_per_page),\r\n            lengthChange: true,\r\n            ordering: table_settings.allow_sorting == \"true\" ? true : false,\r\n            destroy: true,\r\n            scrollX: true,\r\n        };\r\n\r\n        if (this.isProPluginActive()) {\r\n            table_object.buttons = [\r\n                {\r\n                    text: `JSON &nbsp;<img src=\"${front_end_data.iconsURL.curlyBrackets}\" />`,\r\n                    className: \"ui inverted yellow button export_btns json_btn\",\r\n                    action: function (e, dt, button, config) {\r\n                        var data = dt.buttons.exportData();\r\n                        $.fn.dataTable.fileSave(\r\n                            new Blob([JSON.stringify(data)]),\r\n                            `${table_name}.json`\r\n                        );\r\n                    },\r\n                },\r\n                // {\r\n                //     text: `PDF &nbsp;<img src=\"${front_end_data.iconsURL.filePdf}\" />`,\r\n                //     extend: \"pdf\",\r\n                //     className: \"ui inverted red button export_btns pdf_btn\",\r\n                //     title: `${table_name}`,\r\n                // },\r\n                {\r\n                    text: `CSV &nbsp;<img src=\"${front_end_data.iconsURL.fileCSV}\" />`,\r\n                    extend: \"csv\",\r\n                    className: \"ui inverted green button export_btns csv_btn\",\r\n                    title: `${table_name}`,\r\n                },\r\n                {\r\n                    text: `Excel &nbsp;<img src=\"${front_end_data.iconsURL.fileExcel}\" />`,\r\n                    extend: \"excel\",\r\n                    className: \"ui inverted green button export_btns excel_btn\",\r\n                    title: `${table_name}`,\r\n                },\r\n                {\r\n                    text: `Print &nbsp;<img src=\"${front_end_data.iconsURL.printIcon}\" />`,\r\n                    extend: \"print\",\r\n                    className: \"ui inverted secondary button export_btns print_btn\",\r\n                    title: `${table_name}`,\r\n                },\r\n                {\r\n                    text: `Copy &nbsp;<img src=\"${front_end_data.iconsURL.copySolid}\" />`,\r\n                    extend: \"copy\",\r\n                    className: \"ui inverted violet button export_btns copy_btn\",\r\n                    title: `${table_name}`,\r\n                },\r\n            ];\r\n\r\n            table_object.lengthMenu = [\r\n                [1, 5, 10, 15, 25, 50, 100, -1],\r\n                [1, 5, 10, 15, 25, 50, 100, \"All\"],\r\n            ];\r\n\r\n            if (table_object.scrollY != \"default\") {\r\n                table_object.scrollY = `${table_settings.vertical_scroll}px`;\r\n            }\r\n\r\n            if (this.screenSize() === \"desktop\") {\r\n                if (table_settings.hide_column) {\r\n                    table_object.columnDefs = this.hideColumnByScreen(\r\n                        table_settings.hide_column.desktopValues\r\n                    );\r\n                }\r\n            } else {\r\n                if (table_settings.hide_column) {\r\n                    table_object.columnDefs = this.hideColumnByScreen(\r\n                        table_settings.hide_column.mobileValues\r\n                    );\r\n                }\r\n            }\r\n        }\r\n\r\n        return table_object;\r\n    }\r\n\r\n    // Return an array that will define the columns to hide\r\n    hideColumnByScreen(arrayValues) {\r\n        return [\r\n            {\r\n                targets: this.convertArrayStringToInteger(arrayValues),\r\n                visible: false,\r\n                searchable: false,\r\n            },\r\n        ];\r\n    }\r\n\r\n    // get the current screen size of user if greater than 740 return desktop or return mobile\r\n    screenSize() {\r\n        // Desktop screen size\r\n        if (screen.width > 740) {\r\n            return \"desktop\";\r\n        } else {\r\n            return \"mobile\";\r\n        }\r\n    }\r\n\r\n    // convert string to integer from arrays\r\n    convertArrayStringToInteger(arr) {\r\n        if (!arr) return [];\r\n        return arr.map((val) => parseInt(val));\r\n    }\r\n\r\n    reveal_export_btns($, elem, table_settings) {\r\n        if (!table_settings) return;\r\n\r\n        let export_btns = table_settings.table_export;\r\n\r\n        if (export_btns != \"empty\" && export_btns) {\r\n            export_btns.forEach((btn) => {\r\n                $(elem)\r\n                    .find(\".\" + btn + \"_btn\")\r\n                    .removeClass(\"export_btns\");\r\n            });\r\n        }\r\n    }\r\n\r\n    swap_input_filter($, i, table_settings) {\r\n        /* If checkbox is checked then swap filter */\r\n        if (table_settings.swap_filter_inputs == \"true\") {\r\n            $(\".filtering_input_\" + i + \"\").css(\"flex-direction\", \"row-reverse\");\r\n            $(\".filtering_input_\" + i + \" > #create_tables_length\").css({\r\n                \"margin-right\": \"0\",\r\n                \"margin-left\": \"auto\",\r\n            });\r\n            $(\".filtering_input_\" + i + \" > #create_tables_filter\").css({\r\n                \"margin-left\": \"0\",\r\n                \"margin-right\": \"auto\",\r\n            });\r\n        } else {\r\n            /* Set back to default position */\r\n            $(\".filtering_input_\" + i + \"\").css(\"flex-direction\", \"row\");\r\n            $(\".filtering_input_\" + i + \" > #create_tables_length\").css({\r\n                \"margin-right\": \"auto\",\r\n                \"margin-left\": \"0\",\r\n            });\r\n            $(\".filtering_input_\" + i + \" > #create_tables_filter\").css({\r\n                \"margin-left\": \"auto\",\r\n                \"margin-right\": \"0\",\r\n            });\r\n        }\r\n    }\r\n\r\n    swap_bottom_options($, i, table_settings) {\r\n        let style = {\r\n            flex_direction: \"row-reverse\",\r\n            table_info_style: {\r\n                margin_left: \"auto\",\r\n                margin_right: 0,\r\n            },\r\n            table_paginate_style: {\r\n                margin_left: 0,\r\n                margin_right: \"auto\",\r\n            },\r\n        };\r\n\r\n        if (table_settings.swap_bottom_options == \"true\") {\r\n            this.bottom_option_style($, style, i);\r\n        } else {\r\n            style[\"flex_direction\"] = \"row\";\r\n\r\n            style.table_info_style[\"margin_left\"] = 0;\r\n            style.table_info_style[\"margin_right\"] = \"auto\";\r\n\r\n            style.table_paginate_style[\"margin_left\"] = \"auto\";\r\n            style.table_paginate_style[\"margin_right\"] = 0;\r\n\r\n            this.bottom_option_style($, style, i);\r\n        }\r\n    }\r\n\r\n    bottom_option_style($, $arg, i) {\r\n        $(\".bottom_options_\" + i + \"\").css(\"flex-direction\", $arg[\"flex_direction\"]);\r\n        $(\".bottom_options_\" + i + \" > #create_tables_info\").css({\r\n            \"margin-left\": $arg[\"table_info_style\"][\"margin_left\"],\r\n            \"margin-right\": $arg[\"table_info_style\"][\"margin_right\"],\r\n        });\r\n        $(\".bottom_options_\" + i + \" > #create_tables_paginate\").css({\r\n            \"margin-left\": $arg[\"table_paginate_style\"][\"margin_left\"],\r\n            \"margin-right\": $arg[\"table_paginate_style\"][\"margin_right\"],\r\n        });\r\n    }\r\n\r\n    html_loader() {\r\n        let loader = `\r\n               <div class=\"ui segment gswpts_table_loader\">\r\n                        <div class=\"ui active inverted dimmer\">\r\n                            <div class=\"ui large text loader\">Loading</div>\r\n                        </div>\r\n                        <p></p>\r\n                        <p></p>\r\n                        <p></p>\r\n                </div>\r\n            `;\r\n        return loader;\r\n    }\r\n\r\n    clearOverflow() {\r\n        if (\r\n            /Android|webOS|iPhone|iPad|Mac|Macintosh|iPod|BlackBerry|IEMobile|Opera Mini/i.test(\r\n                navigator.userAgent\r\n            )\r\n        ) {\r\n            if (\r\n                this.detectBrowser() == \"Chrome\" ||\r\n                this.detectBrowser() == \"Safari\" ||\r\n                this.detectBrowser() == \"MSIE\"\r\n            ) {\r\n                let tableScrollBody = document.querySelectorAll(\r\n                    \".gswpts_tables_container .dataTables_scrollBody\"\r\n                );\r\n\r\n                if (tableScrollBody) {\r\n                    tableScrollBody.forEach((element) => {\r\n                        if (\r\n                            element.parentElement.parentElement.parentElement.parentElement.classList.contains(\r\n                                \"collapse_style\"\r\n                            )\r\n                        ) {\r\n                            element.style.overflow = \"unset\";\r\n                            element.style.height = \"unset\";\r\n                            element.style.maxHeight = \"unset\";\r\n                        }\r\n                    });\r\n                }\r\n\r\n                // this.hideEmptyCell();\r\n            }\r\n        }\r\n    }\r\n\r\n    detectBrowser() {\r\n        if ((navigator.userAgent.indexOf(\"Opera\") || navigator.userAgent.indexOf(\"OPR\")) != -1) {\r\n            return \"Opera\";\r\n        } else if (navigator.userAgent.indexOf(\"Chrome\") != -1) {\r\n            return \"Chrome\";\r\n        } else if (navigator.userAgent.indexOf(\"Safari\") != -1) {\r\n            return \"Safari\";\r\n        } else if (navigator.userAgent.indexOf(\"Firefox\") != -1) {\r\n            return \"Firefox\";\r\n        } else if (navigator.userAgent.indexOf(\"MSIE\") != -1 || !!document.documentMode == true) {\r\n            return \"IE\"; //crap\r\n        } else {\r\n            return \"Unknown\";\r\n        }\r\n    }\r\n\r\n    hideEmptyCell() {\r\n        let tableCells = document.querySelectorAll(\".gswpts_tables_container td\");\r\n        if (!tableCells) return;\r\n\r\n        tableCells.forEach((element) => {\r\n            if (element.innerText == \"\") {\r\n                // element.style.display = \"none\";\r\n                element.innerText = \"No data\";\r\n            }\r\n        });\r\n    }\r\n\r\n    bindDragScroll($container, $scroller) {\r\n        var $window = $(window);\r\n\r\n        var x = 0;\r\n        var y = 0;\r\n\r\n        var x2 = 0;\r\n        var y2 = 0;\r\n        var t = 0;\r\n\r\n        $container.on(\"mousedown\", down);\r\n        $container.on(\"click\", preventDefault);\r\n        $scroller.on(\"mousewheel\", horizontalMouseWheel); // prevent macbook trigger prev/next page while scrolling\r\n\r\n        function down(evt) {\r\n            if (evt.button === 0) {\r\n                t = Date.now();\r\n                x = x2 = evt.pageX;\r\n                y = y2 = evt.pageY;\r\n\r\n                $container.addClass(\"down\");\r\n                $window.on(\"mousemove\", move);\r\n                $window.on(\"mouseup\", up);\r\n\r\n                evt.preventDefault();\r\n            }\r\n        }\r\n\r\n        function move(evt) {\r\n            // alert(\"move\");\r\n            if ($container.hasClass(\"down\")) {\r\n                var _x = evt.pageX;\r\n                var _y = evt.pageY;\r\n                var deltaX = _x - x;\r\n                var deltaY = _y - y;\r\n\r\n                $scroller[0].scrollLeft -= deltaX;\r\n\r\n                x = _x;\r\n                y = _y;\r\n            }\r\n        }\r\n\r\n        function up(evt) {\r\n            $window.off(\"mousemove\", move);\r\n            $window.off(\"mouseup\", up);\r\n\r\n            var deltaT = Date.now() - t;\r\n            var deltaX = evt.pageX - x2;\r\n            var deltaY = evt.pageY - y2;\r\n            if (deltaT <= 300) {\r\n                $scroller.stop().animate(\r\n                    {\r\n                        scrollTop: \"-=\" + deltaY * 3,\r\n                        scrollLeft: \"-=\" + deltaX * 3,\r\n                    },\r\n                    500,\r\n                    function (x, t, b, c, d) {\r\n                        // easeOutCirc function from http://gsgd.co.uk/sandbox/jquery/easing/\r\n                        return c * Math.sqrt(1 - (t = t / d - 1) * t) + b;\r\n                    }\r\n                );\r\n            }\r\n\r\n            t = 0;\r\n\r\n            $container.removeClass(\"down\");\r\n        }\r\n\r\n        function preventDefault(evt) {\r\n            if (x2 !== evt.pageX || y2 !== evt.pageY) {\r\n                evt.preventDefault();\r\n                return false;\r\n            }\r\n        }\r\n\r\n        function horizontalMouseWheel(evt) {\r\n            evt = evt.originalEvent;\r\n            var x = $scroller.scrollLeft();\r\n            var max = $scroller[0].scrollWidth - $scroller[0].offsetWidth;\r\n            var dir = evt.deltaX || evt.wheelDeltaX;\r\n            var stop = dir > 0 ? x >= max : x <= 0;\r\n            if (stop && dir) {\r\n                evt.preventDefault();\r\n            }\r\n        }\r\n    }\r\n\r\n    addGrabCursonOnMouseDown(elem) {\r\n        elem.mousedown((e) => {\r\n            elem.css({\r\n                cursor: \"grab\",\r\n            });\r\n        });\r\n        elem.mouseup((e) => {\r\n            elem.css({\r\n                cursor: \"auto\",\r\n            });\r\n        });\r\n    }\r\n}\r\n","import Global_Table_Config from \"./common_func\";\r\n\r\nif (front_end_data.isProActive) {\r\n    $(document).ready(function () {\r\n        class Data_Tables_Async {\r\n            constructor() {\r\n                this.frontend_table = $(\".gswpts_tables_container\");\r\n                if (front_end_data.asynchronous_loading == \"on\") {\r\n                    this.events();\r\n                } else {\r\n                    return;\r\n                }\r\n            }\r\n            events() {\r\n                this.get_frontend_table();\r\n            }\r\n\r\n            get_frontend_table() {\r\n                $.each(this.frontend_table, function (i, elem) {\r\n                    let id = $(elem).attr(\"id\");\r\n                    $.ajax({\r\n                        url: front_end_data.admin_ajax,\r\n\r\n                        data: {\r\n                            action: \"gswpts_sheet_fetch\",\r\n                            id: id,\r\n                        },\r\n\r\n                        type: \"post\",\r\n\r\n                        success: (res) => {\r\n                            let tableClass = new Global_Table_Config();\r\n\r\n                            if (JSON.parse(res).response_type == \"success\") {\r\n                                let table_settings = JSON.parse(\r\n                                    JSON.parse(res).table_data.table_settings\r\n                                );\r\n\r\n                                if (tableClass.isProPluginActive()) {\r\n                                    if (table_settings.responsive_style) {\r\n                                        $(elem).addClass(table_settings.responsive_style);\r\n                                    }\r\n\r\n                                    if (table_settings.import_styles == \"true\") {\r\n                                        $(elem).addClass(`gswpts_default-style`);\r\n                                    } else {\r\n                                        $(elem).addClass(\r\n                                            `gswpts_${\r\n                                                table_settings.table_style\r\n                                                    ? table_settings.table_style\r\n                                                    : \"default-style\"\r\n                                            }`\r\n                                        );\r\n                                    }\r\n\r\n                                    $(elem).addClass(`gswpts_default-style`);\r\n                                }\r\n\r\n                                if (table_settings.table_title == \"true\") {\r\n                                    $(elem).find(\"h3\").html(JSON.parse(res).table_data.table_name);\r\n                                }\r\n\r\n                                $(elem).find(\".gswpts_tables_content\").html(JSON.parse(res).output);\r\n\r\n                                let table_name = JSON.parse(res).table_data.table_name;\r\n                                let sheetUrl = JSON.parse(res).table_data.source_url;\r\n\r\n                                tableClass.table_configuration(\r\n                                    $,\r\n                                    i,\r\n                                    elem,\r\n                                    table_name,\r\n                                    table_settings,\r\n                                    sheetUrl\r\n                                );\r\n\r\n                                let scrollerContainer = $(elem).find(\".dataTables_scroll\");\r\n                                let scrollerElement = $(elem).find(\".dataTables_scrollBody\");\r\n                                // add functionality of scolling the table\r\n                                tableClass.bindDragScroll(scrollerContainer, scrollerElement);\r\n                                tableClass.addGrabCursonOnMouseDown($(elem).find(\"#create_tables\"));\r\n\r\n                                tableClass.clearOverflow();\r\n                            } else {\r\n                                $(elem)\r\n                                    .find(\".gswpts_tables_content\")\r\n                                    .html(\"<strong>Table could not be loaded. Try again</strong>\");\r\n                            }\r\n                        },\r\n\r\n                        error: (err) => {\r\n                            alert(\"Something went wrong\");\r\n                            console.log(err);\r\n                            $(elem)\r\n                                .find(\".gswpts_tables_content\")\r\n                                .html(\"<strong>Table could not be loaded. Try again</strong>\");\r\n                        },\r\n                    });\r\n                });\r\n            }\r\n        }\r\n\r\n        new Data_Tables_Async();\r\n    });\r\n} else {\r\n    jQuery(document).ready(function ($) {\r\n        class Data_Tables_Async {\r\n            constructor() {\r\n                this.frontend_table = $(\".gswpts_tables_container\");\r\n                if (front_end_data.asynchronous_loading == \"on\") {\r\n                    this.events();\r\n                } else {\r\n                    return;\r\n                }\r\n            }\r\n            events() {\r\n                this.get_frontend_table();\r\n            }\r\n\r\n            get_frontend_table() {\r\n                $.each(this.frontend_table, function (i, elem) {\r\n                    let id = $(elem).attr(\"id\");\r\n                    $.ajax({\r\n                        url: front_end_data.admin_ajax,\r\n\r\n                        data: {\r\n                            action: \"gswpts_sheet_fetch\",\r\n                            id: id,\r\n                        },\r\n\r\n                        type: \"post\",\r\n\r\n                        success: (res) => {\r\n                            if (JSON.parse(res).response_type == \"success\") {\r\n                                let table_settings = JSON.parse(\r\n                                    JSON.parse(res).table_data.table_settings\r\n                                );\r\n\r\n                                if (table_settings.responsive_style) {\r\n                                    $(elem).addClass(table_settings.responsive_style);\r\n                                }\r\n\r\n                                if (table_settings.table_title == \"true\") {\r\n                                    $(elem).find(\"h3\").html(JSON.parse(res).table_data.table_name);\r\n                                }\r\n\r\n                                $(elem).find(\".gswpts_tables_content\").html(JSON.parse(res).output);\r\n\r\n                                let table_name = JSON.parse(res).table_data.table_name;\r\n                                let sheetUrl = JSON.parse(res).table_data.source_url;\r\n\r\n                                let tableClass = new Global_Table_Config();\r\n\r\n                                tableClass.table_configuration(\r\n                                    $,\r\n                                    i,\r\n                                    elem,\r\n                                    table_name,\r\n                                    table_settings,\r\n                                    sheetUrl\r\n                                );\r\n\r\n                                tableClass.clearOverflow();\r\n                            } else {\r\n                                $(elem)\r\n                                    .find(\".gswpts_tables_content\")\r\n                                    .html(\"<strong>Table could not be loaded. Try again</strong>\");\r\n                            }\r\n                        },\r\n\r\n                        error: (err) => {\r\n                            alert(\"Something went wrong\");\r\n                            console.log(err);\r\n                            $(elem)\r\n                                .find(\".gswpts_tables_content\")\r\n                                .html(\"<strong>Table could not be loaded. Try again</strong>\");\r\n                        },\r\n                    });\r\n                });\r\n            }\r\n        }\r\n\r\n        new Data_Tables_Async();\r\n    });\r\n}\r\n","import Global_Table_Config from \"./common_func\";\r\n\r\nif (front_end_data.isProActive) {\r\n    $(document).ready(function () {\r\n        class Data_Tables_Default {\r\n            constructor() {\r\n                this.frontend_table = $(\".gswpts_tables_container\");\r\n                if (front_end_data.asynchronous_loading == \"off\") {\r\n                    this.events();\r\n                } else {\r\n                    return;\r\n                }\r\n            }\r\n            events() {\r\n                this.get_frontend_table();\r\n            }\r\n\r\n            get_frontend_table() {\r\n                $.each(this.frontend_table, function (i, elem) {\r\n                    let table_settings = JSON.parse($(elem).attr(\"data-table_settings\"));\r\n\r\n                    let table_name = $(elem).attr(\"data-table_name\");\r\n                    let sheetUrl = $(elem).attr(\"data-url\");\r\n\r\n                    let table_obj = new Global_Table_Config();\r\n\r\n                    table_obj.table_configuration($, i, elem, table_name, table_settings, sheetUrl);\r\n\r\n                    let scrollerContainer = $(elem).find(\".dataTables_scroll\");\r\n                    let scrollerElement = $(elem).find(\".dataTables_scrollBody\");\r\n                    // add functionality of scolling the table\r\n                    table_obj.bindDragScroll(scrollerContainer, scrollerElement);\r\n                    table_obj.addGrabCursonOnMouseDown($(elem).find(\"#create_tables\"));\r\n\r\n                    table_obj.clearOverflow();\r\n                });\r\n            }\r\n        }\r\n\r\n        new Data_Tables_Default();\r\n    });\r\n} else {\r\n    jQuery(document).ready(function ($) {\r\n        class Data_Tables_Default {\r\n            constructor() {\r\n                this.frontend_table = $(\".gswpts_tables_container\");\r\n                if (front_end_data.asynchronous_loading == \"off\") {\r\n                    this.events();\r\n                } else {\r\n                    return;\r\n                }\r\n            }\r\n            events() {\r\n                this.get_frontend_table();\r\n            }\r\n\r\n            get_frontend_table() {\r\n                $.each(this.frontend_table, function (i, elem) {\r\n                    let table_settings = JSON.parse($(elem).attr(\"data-table_settings\"));\r\n\r\n                    let table_name = $(elem).attr(\"data-table_name\");\r\n                    let sheetUrl = $(elem).attr(\"data-url\");\r\n\r\n                    let table_obj = new Global_Table_Config();\r\n\r\n                    table_obj.table_configuration($, i, elem, table_name, table_settings, sheetUrl);\r\n\r\n                    table_obj.clearOverflow();\r\n                });\r\n            }\r\n        }\r\n\r\n        new Data_Tables_Default();\r\n    });\r\n}\r\n"],"names":["jQuery","document","ready","$","this","events","on","showContent","e","target","currentTarget","parents","find","removeClass","inputID","attr","match","addClass","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","Global_Table_Config","i","elem","table_name","table_settings","sheetUrl","dom","show_x_entries","search_bar","show_info_block","isProPluginActive","changeCellFormat","cell_format","changeRedirectionType","redirection_type","DataTable","table_obj","setPdfUrl","reveal_export_btns","swap_input_filter","swap_bottom_options","type","links","length","each","link","formatStyle","tableCell","cell","front_end_data","isProActive","url","split","spreadsheetID","getSpreadsheetID","gridID","getGridID","pdfUrl","append","iconsURL","filePdf","table_object","order","responsive","lengthMenu","pageLength","parseInt","default_rows_per_page","lengthChange","ordering","allow_sorting","destroy","scrollX","buttons","text","curlyBrackets","className","action","dt","button","config","data","exportData","fn","dataTable","fileSave","Blob","JSON","stringify","fileCSV","extend","title","fileExcel","printIcon","copySolid","scrollY","vertical_scroll","screenSize","hide_column","columnDefs","hideColumnByScreen","desktopValues","mobileValues","arrayValues","targets","convertArrayStringToInteger","visible","searchable","screen","width","arr","map","val","export_btns","table_export","forEach","btn","swap_filter_inputs","css","style","flex_direction","table_info_style","margin_left","margin_right","table_paginate_style","bottom_option_style","$arg","test","navigator","userAgent","detectBrowser","tableScrollBody","querySelectorAll","element","parentElement","classList","contains","overflow","height","maxHeight","indexOf","documentMode","tableCells","innerText","$container","$scroller","$window","window","x","x2","y2","t","move","evt","hasClass","_x","pageX","deltaX","pageY","scrollLeft","up","off","deltaT","Date","now","deltaY","stop","animate","scrollTop","b","c","d","Math","sqrt","preventDefault","originalEvent","max","scrollWidth","offsetWidth","dir","wheelDeltaX","mousedown","cursor","mouseup","frontend_table","asynchronous_loading","get_frontend_table","id","ajax","admin_ajax","success","res","tableClass","parse","response_type","table_data","responsive_style","import_styles","table_style","table_title","html","output","source_url","table_configuration","scrollerContainer","scrollerElement","bindDragScroll","addGrabCursonOnMouseDown","clearOverflow","error","err","alert","console","log"],"sourceRoot":""}