PageSourceSearch

https://www.jukeboxprint.com/dist/2665.e4c61a84.js

js jukeboxprint.com collected 2026-10-02 02:58:12 UTC 4,039 bytes, 1 lines download raw bytes

1(self.webpackChunkjukebox_website=self.webpackChunkjukebox_website||[]).push([[2665],{82665(e,t,r){var i,a;i=[r(19636),r(69727),r(85458)],void 0===(a=function(e,t){return ProductSize={initialize:function(){e((function(){e("select").select2(),0===window.hasChildren&&""!=e("#product_size_parent").val()&&e(".child-form div").show(),e("#product_size_parent, #product_size_fold, #product_size_hole, #product_size_roundedCorner").on("change",(function(t){var r,i,a,o,d;r=e("#product_size_parent"),i=e("#product_size_fold"),a=e("#product_size_hole"),o=e("#product_size_roundedCorner"),d=e("#product_size_dieCutter"),""==r.val()?(e(".child-form div").hide(),i.prop("required",!1),a.prop("required",!1),o.prop("required",!1),d.prop("required",!1)):(e(".child-form div").show(),""==i.val()&&""==a.val()&&""==o.val()?(i.prop("required",!0),a.prop("required",!0),o.prop("required",!0),d.prop("required",!1)):""!=i.val()?(i.prop("required",!0),a.prop("required",!1),o.prop("required",!1),d.prop("required",!1)):""!=a.val()?(i.prop("required",!1),a.prop("required",!0),o.prop("required",!1),d.prop("required",!1)):""!=o.val()&&(i.prop("required",!1),a.prop("required",!1),o.prop("required",!0),d.prop("required",!0)))})),new t.Views.CreatorTemplate({el:e(".template-container")})}))}},ProductSize}.apply(t,i))||(e.exports=a)},69727(e,t,r){var i,a;i=[r(19636),r(2543),r(21391),r(65222),r(96076),r(2826),r(19943)],void 0===(a=function(e,t,r,i){return i.Views.CreatorTemplate=r.View.extend({events:{"click .template-button":"openModal","click .edit-template-button":"editTemplate","click .save-template":"save"},initialize:function(t){this.model=new i.Models.ViewState({id:null}),this.$("#jukebox_creator_template_size").val(window.sizeId),this.$("#jukebox_creator_template_preview, #jukebox_creator_template_bleedMask, #jukebox_creator_template_trimMask, #jukebox_creator_template_safetyMask").each((function(){new i.Views.StaticUploadWidget({directory:"creator/templates",attachEl:e(this),static:!1})}))},render:function(e){var t="<td>".concat(e.id,"</td><td>").concat(e.category,"</td><td>").concat(e.name,"</td><td>").concat(e.active?"Active":"Inactive",'</td><td><button class="button button-small blue-button edit-template-button" data-id="').concat(e.id,'">Edit</button></td>');0==this.$('table.templates tr[data-id="'+e.id+'"]').length&&this.$("table.templates").append('<tr data-id="'+e.id+'"></tr>'),this.$('table.templates tr[data-id="'+e.id+'"]').html(t)},editTemplate:function(t){var r=this,i=e(t.currentTarget).data("id");this.model.set("id",i),e.get("/admin/api/creator/template/"+i,(function(e){r.setFormData(e),r.$(".creator-modal").modal()}))},openModal:function(){this.model.set("id",null),this.setFormData({name:e("#product_size_size").val(),active:!0,height:e("#product_size_printWidth").val(),width:e("#product_size_printHeight").val(),pageCount:2,flipMask:!1,preview:"",foldType:0,bleedMask:"",trimMask:"",safetyMask:""}),this.$(".creator-modal").modal()},setFormData:function(e){var r=this;t.each(Object.keys(e),(function(t){r.$("#jukebox_creator_template_"+t).is(":checkbox")?r.$("#jukebox_creator_template_"+t).prop("checked",e[t]):r.$("#jukebox_creator_template_"+t).val(e[t]).change()}))},save:function(){var r=this.$("form").serializeArray();if(this.$("form").valid()){this.$(".template-submit-warning").text("");var i={};t.each(r,(function(e){var t=e.name.substring(e.name.indexOf("[")+1,e.name.length-1);i[t]=e.value})),i.width=parseFloat(i.width),i.height=parseFloat(i.height),e.ajax({method:"POST",url:"/admin/api/creator/template"+(this.model.get("id")?"/"+this.model.get("id"):""),data:JSON.stringify(i),context:this}).done((function(e){this.render(e),this.$(".creator-modal").modal("hide"),alert("Template saved")})).fail((function(t){console.error(t),t.responseText=e.parseJSON(t.responseText),this.$(".template-submit-warning").text(t.responseText.message?t.responseText.message:t.responseText)}))}else this.$(".template-submit-warning").text("Please review form errors above.")}}),i}.apply(t,i))||(e.exports=a)}}]);

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.