PageSourceSearch

https://marketresearchmalaysia.com/assets/js/sector_form-zFbtTPS.js

js marketresearchmalaysia.com collected 2026-09-29 20:30:01 UTC 2,451 bytes, 1 lines download raw bytes

1import"./summernote/summernote-bs5.min.js";import"./summernote/summernote-bs5.min.css";import"lite-uploader";import"parsleyjs";import routes from"./fos_routes.js";import Router from"@toyokumo/fos-router";Router.setRoutingData(routes);function slugify(e){if(!e)return"";var t=e.toLowerCase().trim(),t=t.normalize("NFD").replace(/[\u0300-\u036f]/g,""),t=t.replace(/[^a-z0-9\s-]/g," ").trim(),t=t.replace(/[\s-]+/g,"-");return t}window.Parsley.addValidator("validateSlug",{validateString:function(e,t,n){var s=n.parent.$element,o=s.attr("data-post-id")||"",i={slug:e,excludeId:o},a=$.post(Router.generate("app_admin_sectors_check_slug"),i);return a.then(function(e){if(e.slug_exists)return $.Deferred().reject("Slug already exists")})},messages:{en:"Slug already exists."}}),$(function(){$("#btn_slugify").on("click",function(e){e.preventDefault();var t=$("#name").val(),n=slugify(t);$("#slug").val(n)}),$("#content").summernote({height:340,toolbar:[["style",["style"]],["font",["bold","underline","clear"]],["color",["color"]],["para",["ul","ol","paragraph"]],["table",["table"]],["insert",["link","picture"]],["view",["fullscreen","codeview"]]],callbacks:{onImageUpload:function(e){var t=new FormData;t.append("file",e[0]),$.ajax({data:t,type:"POST",url:"/upload-files?blurhash=1&filter=post_lg,post_md,post_sm",cache:!1,processData:!1,contentType:!1,beforeSend:function(){$("#content_spinner").removeClass("d-none")},success:function(e){var t=JSON.parse(e),n=$("<img>").attr({src:t.relative_url,"data-file-id":t.id,"data-file-synced":!1,"data-lazy-load":!0,style:"width: 100%"});$("#content").summernote("insertNode",n[0]),$("#content_spinner").addClass("d-none")}})},onMediaDelete:function(e){var t=$(e[0]).attr("data-file-id");if(t===0[0])return;$.ajax({type:"DELETE",url:Router.generate("app_upload_files_delete",{id:t}),dataType:"json"})}}});var e=$("#header_image_pb");$("#header_file").liteUploader({url:"/upload-files?blurhash=1",ref:"file"}).on("lu:before",function(e,{files:t}){Array.prototype.forEach.call(t,function(e){const t=new FileReader;t.onload=function(e){const t=document.querySelector("#hero_image");t.src=e.target.result},t.readAsDataURL(e)})}).on("lu:progress",function(t,{percentage:n}){e.css("width",n+"%").attr("aria-valuenow",n).text(n+"%")}).on("lu:success",function(e,{response:t}){var n=JSON.parse(t);$("#header_image_id").val(n.id)}),$("#header_file").on("change",function(){$(this).data("liteUploader").startUpload()})})

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.