芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/giga.mgaplay.com.br/web/dist/campaignBuilder.bundle.min.js
!function(){var e={20453:function(e,t,a){var n=document.querySelector("meta[name='public-path']").content;a.p=n+"dist/"},46426:function(e,t,a){(e.exports=a(23645)(!1)).push([e.id,"/*!\n * Copyright (C) 2022 Xibo Signage Ltd\n *\n * Xibo - Digital Signage - http://www.xibo.org.uk\n *\n * This file is part of Xibo.\n *\n * Xibo is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * any later version.\n *\n * Xibo is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Xibo. If not, see
.\n *//*!\n * Copyright (C) 2022 Xibo Signage Ltd\n *\n * Xibo - Digital Signage - http://www.xibo.org.uk\n *\n * This file is part of Xibo.\n *\n * Xibo is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * any later version.\n *\n * Xibo is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Xibo. If not, see
.\n */#content-wrapper .page-content>.row>div{margin:0}#content-wrapper .page-content>.row.header.header-side{height:50px;margin-bottom:0}#content-wrapper .page-content>.row.header.header-side .navbar-toggler-side{margin-top:8px;margin-right:8px}#content-wrapper .page-content>.row.header.header-side .user>.item{width:auto;height:50px;padding-right:16px}#content-wrapper .page-content>.row.header.header-side .user>.item>a{padding:7px 0}#content-wrapper .page-content>.row.header.header-side .user>.item img.nav-avatar{width:36px;height:36px;border-radius:2px}#content-wrapper .page-content>.row.header.header-side .xibo-logo-container{margin-left:50%;transform:translateX(-50%)}#content-wrapper .page-content>.row.header.header-side .xibo-logo-container .page{width:auto;padding:0}#content-wrapper .page-content>.row.header.header-side .xibo-logo-container .page .xibo-logo{height:30px;margin:10px 0}#content-wrapper .page-content>.row.header.header-side .user-notif>.item>a{padding:5px 0}#campaign-builder .back-button{position:fixed;left:16px;top:8px}#campaign-builder .back-button span{margin-left:6px;font-weight:bold}",""])},23645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var a=function(e,t){var a,n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var r=(a=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),o=i.sources.map((function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"}));return[n].concat(o).concat([r]).join("\n")}return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+a+"}":a})).join("")},t.i=function(e,a){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},i=0;i
OpenStreetMap'),subdomains:["a","b","c"]}).addTo(this.map);var i=new L.FeatureGroup;this.map.addLayer(i);var r=new L.Control.Draw({position:"topright",draw:{polyline:!1,circle:!1,marker:!1,circlemarker:!1},edit:{featureGroup:i}});this.map.addControl(r);var o=new L.Control.Search({url:"https://nominatim.openstreetmap.org/search?format=json&q={s}",jsonpParam:"json_callback",propertyName:"display_name",propertyLoc:["lat","lon"],marker:L.circleMarker([0,0],{radius:30}),autoCollapse:!0,autoType:!1,minLength:2,hideMarkerOnCollapse:!0,firstTipSubmit:!0});this.map.addControl(o),this.map.on("draw:created",(function(e){i.addLayer(e.layer),n.val(JSON.stringify(i.toGeoJSON()))})),this.map.on("draw:edited",(function(e){n.val(JSON.stringify(i.toGeoJSON()))})),this.map.on("draw:deleted",(function(e){e.layers.eachLayer((function(e){i.removeLayer(e)})),n.val(JSON.stringify(i.toGeoJSON()))})),n.val()&&L.geoJSON(JSON.parse(n.val()),{onEachFeature:function(e,t){i.addLayer(t),cB.map.fitBounds(i.getBounds())}})},getDataProperty:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=e.data(t);return n||a},initaliseDisplaySelect:function(e){e.select2({ajax:{url:e.data("searchUrl"),dataType:"json",data:function(e){var t={isDisplaySpecific:-1,forSchedule:1,displayGroup:e.term,start:0,length:10,columns:[{data:"isDisplaySpecific"},{data:"displayGroup"}],order:[{column:0,dir:"asc"},{column:1,dir:"asc"}]};return null!=e.page&&(t.start=10*(e.page-1)),t},processResults:function(t,a){var n=[],i=[];$.each(t.data,(function(e,t){1===t.isDisplaySpecific?i.push({id:t.displayGroupId,text:t.displayGroup}):n.push({id:t.displayGroupId,text:t.displayGroup})}));var r=a.page||1;return r=r>1?r-1:r,{results:[{text:e.data("transGroups"),children:n},{text:e.data("transDisplay"),children:i}],pagination:{more:10*r
0?$.ajax({method:"delete",url:t.data("assignmentRemoveUrl")+"&displayOrder="+e,complete:function(){refreshLayoutAssignmentsTable()}}):refreshLayoutAssignmentsTable()}))},errorElement:"span",highlight:function(e){$(e).closest(".form-group").removeClass("has-success").addClass("has-error")},success:function(e){$(e).closest(".form-group").removeClass("has-error").addClass("has-success")},invalidHandler:function(e,t){$(this).closest(".modal-dialog").find(".saving").remove(),$(this).closest(".modal-dialog").find(".save-button").removeClass("disabled")}})})).on("hidden.bs.modal",(function(){cB.$layoutSelect&&cB.$layoutSelect.val(null).trigger("change")}))},initialiseLayoutAssignmentsTable:function(e){this.layoutAssignments=e.DataTable({language:dataTablesLanguage,responsive:!0,dom:dataTablesTemplate,filter:!1,searchDelay:3e3,order:[[0,"asc"]],ajax:{url:e.data("searchUrl"),dataSrc:function(e){return e&&e.data&&e.data.length>0?e.data[0].layouts:[]}},columns:[{data:"layoutId",responsivePriority:5},{data:"layout",responsivePriority:1},{data:"duration",responsivePriority:1},{data:"dayPart",responsivePriority:1},{data:"daysOfWeek",responsivePriority:3,render:function(e){if(e){var t=[];return e.split(",").forEach((function(e){t.push(campaignBuilderTrans.daysOfWeek[e]||e)})),t.join(", ")}return""}},{data:"geoFence",responsivePriority:10,render:function(e,t){return"display"!==t?!!e:'
'}},{data:function(t,a,n,i){var r=[{id:"assignment_button_edit",text:campaignBuilderTrans.assignmentEditButton,url:"#",external:!1,class:"button-assignment-remove",dataAttributes:[{name:"row-id",value:i.row}]},{id:"assignment_button_delete",text:campaignBuilderTrans.assignmentDeleteButton,url:e.data("assignmentDeleteUrl")+"?displayOrder="+t.displayOrder}];return dataTableButtonsColumn({buttons:r},a,n,i)},orderable:!1,responsivePriority:1}]}),this.layoutAssignments.on("draw",(function(e,t){$("#"+e.target.id).find(".button-assignment-remove").on("click",(function(e){e.preventDefault();var t=$(this);return t.hasClass("assignment_button_edit")&&cB.openLayoutForm(cB.layoutAssignments.rows(t.data("rowId")).data()[0],campaignBuilderTrans.editLayoutFormTitle),!1})),XiboInitialise("#"+e.target.id)}))}},$((function(){var e=$("#campaign-builder");cB.initialise(e),cB.initaliseDisplaySelect(e.find('select[name="displayGroupIds[]"]')),cB.initialiseLayoutSelect(e.find('select[name="layoutId"]')),cB.initialiseLayoutAssignmentsTable(e.find("table#table-campaign-builder-layout-assignments"))})),window.refreshLayoutAssignmentsTable=function(){cB.layoutAssignments&&cB.layoutAssignments.ajax.reload()}}();