芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/portpulselogistics.com/public/assets/modules/js/widget.js.map
{"version":3,"file":"/assets/modules/js/widget.js","mappings":";;;;;AACA,IAAIA,KAAK,GAAGC,MAAM,CAACC,mBAAnB;AACA,IAAIC,mBAAmB,GAAG,IAA1B,EAEA;;AACAC,CAAC,CAAC,wCAAD,CAAD,CAA4CC,EAA5C,CAA+C,OAA/C,EAAwD,YAAY;AAChE,MAAIC,MAAM,GAAGF,CAAC,CAAC,IAAD,CAAD,CAAQG,OAAR,CAAgB,UAAhB,CAAb;AACAD,EAAAA,MAAM,CAACE,WAAP,CAAmB,QAAnB;AACAF,EAAAA,MAAM,CAACG,IAAP,CAAY,eAAZ,EAA6BC,WAA7B,CAAyC,GAAzC;AACAJ,EAAAA,MAAM,CAACG,IAAP,CAAY,eAAZ,EAA6BD,WAA7B,CAAyC,WAAzC;AACH,CALD;AAMA;AAEA;;AACAJ,CAAC,CAACO,QAAD,CAAD,CAAYN,EAAZ,CAAe,OAAf,EAAwB,wEAAxB,EAAkG,UAAUO,CAAV,EAAa;AAC3G,MAAI,CAACR,CAAC,CAACQ,CAAC,CAACC,MAAH,CAAD,CAAYN,OAAZ,CAAoB,2BAApB,EAAiDO,MAAlD,IAA4DV,CAAC,CAACQ,CAAC,CAACC,MAAH,CAAD,CAAYE,QAAZ,CAAqB,yBAArB,CAA5D,IAA+GX,CAAC,CAACQ,CAAC,CAACC,MAAH,CAAD,CAAYE,QAAZ,CAAqB,8BAArB,CAAnH,EAAyK;AACrK,QAAIT,MAAM,GAAGF,CAAC,CAAC,IAAD,CAAD,CAAQG,OAAR,CAAgB,mBAAhB,CAAb;AACAD,IAAAA,MAAM,CAACG,IAAP,CAAY,iCAAZ,EAA+CC,WAA/C,CAA2D,GAA3D;AACAN,IAAAA,CAAC,CAAC,IAAD,CAAD,CAAQK,IAAR,CAAa,4BAAb,EAA2CD,WAA3C,CAAuD,YAAvD;AACH;AACJ,CAND;AAOA;AAIA;;A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AACA,SAAKc,KAAL,IAAcmB,MAAM,CAACD,MAArB,EAA6B;AACzB,UAAII,QAAQ,GAAGH,MAAM,CAACD,MAAP,CAAclB,KAAd,EAAqB,CAArB,CAAf;AAAA,UACIuB,UAAU,GAAGH,GAAG,CAACvG,IAAJ,mBAAmBmF,KAAnB,SADjB;AAEAuB,MAAAA,UAAU,CAAC5F,QAAX,CAAoB,YAApB,EAAkC2C,KAAlC,2CAAyEgD,QAAzE;AACH;AACJ,GAPD;AAQH;;AACD,SAASX,mBAAT,GAA+B;AAC3BnG,EAAAA,CAAC,CAAC,gCAAD,CAAD,CAAoCoE,MAApC;AACApE,EAAAA,CAAC,CAAC,0BAAD,CAAD,CAA8BoB,WAA9B,CAA0C,YAA1C;AACH;AACD,kF","sources":["webpack:///./Modules/Widget/Resources/assets/js/app.js"],"sourcesContent":["\r\nvar trans = window.widget_translations\r\nvar timerHideNewSection = 2000\r\n\r\n// toggle open sidebar\r\n$('#sidebar_list .sidebar .sidebar-header').on('click', function () {\r\n let parent = $(this).parents('.sidebar');\r\n parent.toggleClass('opened')\r\n parent.find('.sidebar-body').slideToggle(200)\r\n parent.find('.sidebar-icon').toggleClass('flip-icon')\r\n});\r\n/********************************************************************************/\r\n\r\n// toggle open sidebar\r\n$(document).on('click', '#sidebar_list .sidebar-body .widget-component .widget-component-header', function (e) {\r\n if (!$(e.target).parents('.widget-component-control').length || $(e.target).hasClass('widget-component-toggle') || $(e.target).hasClass('widget-component-toggle-icon')) {\r\n let parent = $(this).parents('.widget-component')\r\n parent.find('.widget-component-wrapper-forms').slideToggle(200)\r\n $(this).find('.widget-component-toggle i').toggleClass('rotate-180')\r\n }\r\n});\r\n/********************************************************************************/\r\n\r\n\r\n\r\n// open widget list\r\n$('.add_new_widget_btn').on('click', function(e) {\r\n e.stopPropagation()\r\n var self = $(this),\r\n sidebarId = self.parents('.sidebar').data('sidebar-id'),\r\n sidebarTheme = self.parents('.sidebar').data('sidebar-theme'),\r\n widget_class_list = $('#widget_class_list');\r\n widget_class_list.attr('data-sidebar-id', sidebarId).attr('data-sidebar-theme', sidebarTheme).addClass('open')\r\n});\r\n\r\n// close widget list\r\n$('#widget_class_list').on('click', function(e) {\r\n if ($(e.target).attr('id') == 'widget_class_list') {\r\n $(this).removeClass('open');\r\n }\r\n});\r\n/********************************************************************************/\r\n\r\n\r\n// search in widget list\r\n$('#widget_class_list .widgets-search .widgets-search-input').on('input', function (e) {\r\n e.preventDefault();\r\n var self = $(this),\r\n searchValue = self.val().trim().toLowerCase(),\r\n boxClass = '.widget-list .widget-box',\r\n notMatchedSearch = $(boxClass).filter(`:not([data-title-search*=\"${searchValue}\"])`);\r\n\r\n // hide widget box\r\n $(boxClass).removeClass('hide-box'); // show all\r\n if (searchValue != '') {\r\n notMatchedSearch.addClass('hide-box'); // hide not matched only \r\n }\r\n // hide group title\r\n $('.widget-groups .widget-list').each(function () {\r\n var countChildren = $(this).find('.widget-box').length\r\n var countBoxHide = $(this).find('.widget-box').filter('.hide-box').length\r\n if (countChildren == countBoxHide) {\r\n $(this).prev('.group-title').addClass('hide-box')\r\n } else {\r\n $(this).prev('.group-title').removeClass('hide-box')\r\n }\r\n });\r\n});\r\n/********************************************************************************/\r\n\r\n// add new widget\r\n$('#widget_class_list .widget-list .widget-box').on('click', function(e) {\r\n var self = $(this),\r\n sidebarId = self.parents('#widget_class_list').attr('data-sidebar-id'),\r\n sidebarSelected = $('#sidebar_list .sidebar').filter(`[data-sidebar-id=\"${sidebarId}\"]`),\r\n widgetListSelected = sidebarSelected.find('.sidebar-body .widget_list'),\r\n dataForm = {\r\n title: self.data('title'),\r\n // name: self.attr('data-name'),\r\n namespace: self.data('namespace'),\r\n form: self.data('form'),\r\n },\r\n widgetFormRendred = widgetForm(dataForm);\r\n // add widget form\r\n widgetListSelected.append(widgetFormRendred);\r\n let widgetCreated = widgetListSelected.children('.widget-component').last()\r\n if (!sidebarSelected.hasClass('opened')) {\r\n sidebarSelected.find('.sidebar-header').click();\r\n }\r\n \r\n $('html, body').animate({\r\n scrollTop: widgetCreated.offset().top - 200\r\n }, 400)\r\n\r\n setTimeout(() => {\r\n widgetCreated.addClass('new')\r\n setTimeout(() => {\r\n widgetCreated.removeClass('new')\r\n }, timerHideNewSection)\r\n }, 300)\r\n\r\n // hide widget list\r\n $('#widget_class_list').removeClass('open');\r\n});\r\n/********************************************************************************/\r\n\r\n// transfrom widget form\r\nfunction widgetForm({title, namespace, form}) {\r\n return `\r\n
\r\n
\r\n
\r\n
${title}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n ${trans.to_top}\r\n
\r\n
\r\n ${trans.to_bottom}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n ${trans.duplicate}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n ${trans.remove_widget}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n ${form}\r\n
\r\n
\r\n
\r\n `;\r\n}\r\n/********************************************************************************/\r\n\r\n// duplicate widget\r\n$(document).on('click', '.widget-component-control .duplicate-widget', function(e) {\r\n e.preventDefault();\r\n var self = $(this),\r\n parentSelf = self.parents('.widget-component'),\r\n parentWidgetList = self.parents('.widget_list'),\r\n widgetCloned = parentSelf.clone();\r\n \r\n widgetCloned.removeAttr('data-id');\r\n parentSelf.after(widgetCloned)\r\n\r\n let widgetDuplicated = parentSelf.next('.widget-component');\r\n\r\n widgetDuplicated.find('.widget-component-wrapper-forms').slideDown(200)\r\n $('html, body').animate({\r\n scrollTop: widgetDuplicated.offset().top - 200\r\n }, 400)\r\n widgetDuplicated.addClass('new moving')\r\n setTimeout(() => {\r\n widgetDuplicated.removeClass('moving')\r\n }, 200)\r\n setTimeout(() => {\r\n widgetDuplicated.removeClass('new')\r\n }, timerHideNewSection)\r\n})\r\n/********************************************************************************/\r\n\r\n// remove widget\r\nvar widget_list_removed = []\r\n$(document).on('click', '.widget-component-control .remove-widget', function(e) {\r\n e.preventDefault();\r\n var self = $(this),\r\n parentSelf = self.parents('.widget-component');\r\n if (parentSelf.attr('data-id')) {\r\n widget_list_removed.push(parentSelf.attr('data-id'))\r\n }\r\n parentSelf.addClass('deleting')\r\n setTimeout(() => {\r\n parentSelf.remove()\r\n }, 350)\r\n})\r\n/********************************************************************************/\r\n\r\n// moving widget\r\n$(document).on('click', '.widget-component-control .btns-moving .btn-moving', function(e) {\r\n e.preventDefault();\r\n var self = $(this),\r\n movied = false,\r\n typeMove = self.data('move'),\r\n parentSelf = self.parents('.widget-component'),\r\n widgetList = parentSelf.parents('.widget_list');\r\n\r\n if (widgetList.children().length > 1) {\r\n if (typeMove == 'up') {\r\n if (parentSelf.prev().length) {\r\n parentSelf.insertBefore(parentSelf.prev()[0])\r\n movied = true\r\n }\r\n } else if (typeMove == 'down') {\r\n if (parentSelf.next().length) {\r\n movied = true\r\n parentSelf.insertAfter(parentSelf.next()[0])\r\n }\r\n } else if (typeMove == 'bottom') {\r\n if ((parentSelf.index() + 1) != widgetList.children().length) {\r\n movied = true\r\n parentSelf.appendTo(widgetList)\r\n }\r\n } else if (typeMove == 'top') {\r\n if (parentSelf.index() != 0) {\r\n movied = true\r\n parentSelf.prependTo(widgetList)\r\n }\r\n }\r\n }\r\n \r\n if (movied) {\r\n $('html, body').animate({\r\n scrollTop: parentSelf.offset().top - 200\r\n }, 200)\r\n \r\n parentSelf.addClass('new moving')\r\n setTimeout(() => {\r\n parentSelf.removeClass('moving')\r\n }, 200)\r\n setTimeout(() => {\r\n parentSelf.removeClass('new')\r\n }, timerHideNewSection)\r\n }\r\n})\r\n/********************************************************************************/\r\n\r\n// update all widgets\r\n$('#update_widgets').on('click', function (e) {\r\n e.preventDefault();\r\n var self = $(this),\r\n url = self.attr('href'),\r\n loading = self.find('.loading-in-btn'),\r\n data = [];\r\n \r\n $('.sidebar .widget_list .widget-component').each(function (i) {\r\n var WC = $(this),\r\n sidebarParent = WC.parents('.sidebar'),\r\n dataFormSerialized = WC.find('.widget-component-form form').serializeArray(),\r\n dataForm = {},\r\n dataWC = {\r\n id: WC.data('id') ?? null,\r\n widget: WC.data('widget'),\r\n // name: WC.data('name'),\r\n index: WC.index(),\r\n sidebarId: sidebarParent.data('sidebar-id'),\r\n sidebarTheme: sidebarParent.data('sidebar-theme'),\r\n };\r\n\r\n dataFormSerialized.forEach(field => {\r\n dataForm[field.name] = field.value\r\n })\r\n dataWC.form = dataForm\r\n data.push(dataWC)\r\n });\r\n\r\n // update widgets ajax\r\n loading.removeClass('d-none');\r\n self.addClass('disabled');\r\n axios.put(url, {data: data, 'widget_list_removed': widget_list_removed}).then(res => {\r\n Toast.fire({\r\n icon: 'success',\r\n title: res.data.message ? res.data.message : `Widgets has been updated successfully`\r\n })\r\n removeErrorMessages();\r\n setTimeout(() => {\r\n window.location.reload()\r\n }, 2000)\r\n }).catch(error => {\r\n loading.addClass('d-none');\r\n self.removeClass('disabled');\r\n if (error.response && error.response.status) {\r\n if (error.response.status == 403) {\r\n if (error.response.data.message) {\r\n Toast.fire({\r\n icon: 'error',\r\n title: error.response.data.message\r\n })\r\n }\r\n } else if (error.response.status == 500) {\r\n Toast.fire({\r\n icon: 'error',\r\n title: 'Server Error!'\r\n })\r\n } else if (error.response.status == 422) {\r\n Toast.fire({\r\n icon: 'error',\r\n title: error.response.data.message\r\n })\r\n handleError(error.response.data.errors)\r\n } else if (error.response.status == 404) {\r\n Toast.fire({\r\n icon: 'error',\r\n title: 'Request not found'\r\n })\r\n } else if (error.response.status == 401) {\r\n window.location.reload();\r\n }\r\n }\r\n });\r\n});\r\n/********************************************************************************/\r\n// handle error when update widgets\r\n\r\nfunction handleError(errors) {\r\n removeErrorMessages();\r\n errors.forEach(errBag => {\r\n var WCF = $('.sidebar').filter(`[data-sidebar-id=\"${errBag.sidebarId}\"]`).find('.widget_list .widget-component').eq(errBag.index)\r\n for (field in errBag.errors) {\r\n var errorMsg = errBag.errors[field][0],\r\n inputFound = WCF.find(`[name=\"${field}\"]`);\r\n inputFound.addClass('is-invalid').after(`
${errorMsg}
`)\r\n }\r\n })\r\n}\r\nfunction removeErrorMessages() {\r\n $('.widget_list .invalid-feedback').remove();\r\n $('.widget_list .is-invalid').removeClass('is-invalid');\r\n}\r\n/********************************************************************************/"],"names":["trans","window","widget_translations","timerHideNewSection","$","on","parent","parents","toggleClass","find","slideToggle","document","e","target","length","hasClass","stopPropagation","self","sidebarId","data","sidebarTheme","widget_class_list","attr","addClass","removeClass","preventDefault","searchValue","val","trim","toLowerCase","boxClass","notMatchedSearch","filter","each","countChildren","countBoxHide","prev","sidebarSelected","widgetListSelected","dataForm","title","namespace","form","widgetFormRendred","widgetForm","append","widgetCreated","children","last","click","animate","scrollTop","offset","top","setTimeout","to_top","to_bottom","move_up","move_down","duplicate","remove_widget","parentSelf","parentWidgetList","widgetCloned","clone","removeAttr","after","widgetDuplicated","next","slideDown","widget_list_removed","push","remove","movied","typeMove","widgetList","insertBefore","insertAfter","index","appendTo","prependTo","url","loading","i","WC","sidebarParent","dataFormSerialized","serializeArray","dataWC","id","widget","forEach","field","name","value","axios","put","then","res","Toast","fire","icon","message","removeErrorMessages","location","reload","error","response","status","handleError","errors","errBag","WCF","eq","errorMsg","inputFound"],"sourceRoot":""}