PageSourceSearch

https://patternkid.com/js/2136.afd147ec.js

js patternkid.com collected 2026-10-07 15:32:45 UTC 3,532 bytes, 2 lines download raw bytes

1"use strict";(self["webpackChunkweb"]=self["webpackChunkweb"]||[]).push([[2136],{2136:function(t,s,a){a.r(s),a.d(s,{default:function(){return v}});var i=function(){var t=this,s=t._self._c;return s("div",[t._m(0),s("hr",{staticClass:"has-margin-0"}),s("div",{staticClass:"is-padded-18"},[s("div",{staticClass:"columns is-multiline is-mobile"},[t._e(),s("div",{staticClass:"column is-12"},[s("div",{staticClass:"field"},[s("label",{staticClass:"label has-text-weight-light has-text-grey-light no-margin"},[t._v("Number of Patterns")]),s("div",{staticClass:"control is-padded-top-12"},[s("div",{staticClass:"columns is-vcentered is-mobile"},[s("div",{staticClass:"column"},[s("Slider",{attrs:{min:2,max:25,height:4,"process-dragable":!0,useKeyboard:!1,clickable:!0,tooltip:"none"},model:{value:t.count,callback:function(s){t.count=s},expression:"count"}})],1),s("div",{staticClass:"column is-narrow"},[s("div",{staticClass:"tag is-primary is-light has-text-weight-semibold"},[t._v(" "+t._s(t.count)+" ")])])])])])]),s("div",{staticClass:"column is-12"},[s("div",{staticClass:"field"},[s("label",{staticClass:"label has-text-weight-light has-text-grey-light"},[t._v("Format")]),s("Toggle",{attrs:{options:["png","jpeg","svg"],action:t.setType,activeOption:t.type,propClass:"is-uppercase"}})],1)]),t._e()])]),s("SettingsTable"),s("hr",{staticClass:"has-margin-0"}),s("div",{staticClass:"is-padded-18"},[t.$wait.is("creating-batch")?s("div",{staticClass:"is-padded-12"},[s("ProgressBar",{attrs:{labels:["Uploading batch","Processing batch","Creating batch","Saving batch"]}})],1):s("div",{staticClass:"columns is-mobile is-vcentered"},[s("div",{staticClass:"column"}),s("div",{staticClass:"column is-narrow"},[s("div",{staticClass:"button is-primary has-text-weight-semibold",on:{click:t.createClicked}},[s("span",[t._v("Create Batch")]),t._m(2)])])])])],1)},e=[function(){var t=this,s=t._self._c;return s("div",{staticClass:"is-padded-18"},[s("div",{staticClass:"title is-4"},[t._v("Create Batch")]),s("div",{staticClass:"subtitle is-5 has-text-grey-light"},[t._v(" Create up to 15 patterns in just one go by setting a few parameters. ")])])},function(){var t=this,s=t._self._c;return s("span",{staticClass:"icon is-small is-right is-clickable"},[s("i",{staticClass:"fas fa-folder"})])},function(){var t=this,s=t._self._c;return s("span",{staticClass:"icon"},[s("i",{staticClass:"fas fa-hammer"})])}],l=a(623),c=a(3803),n=a.n(c),r=a(4296),o=a.n(r),d=a(4586),h=a(4580),u=a(6656),p={name:"Batch",components:{Slider:n(),Toggle:()=>a.e(2986).then(a.bind(a,2986)),SettingsTable:()=>a.e(1069).then(a.bind(a,1069)),ProgressBar:()=>a.e(8781).then(a.bind(a,8781))},data:function(){return{name:"",count:10,type:"png",palette:"current palette"}},computed:{...(0,l.Se)("workbench",["width","height","selectedTemplates","colours","density","borderView"])},methods:{...(0,l.OI)(["setModal"]),setType(t){this.type=t},setPalette(t){this.palette=t},async createClicked(){try{if(this.$wait.is("creating-batch"))return;this.$wait.start("creating-batch");const{count:t,type:s}=this,a=(0,u.uY)();a.images=[];const i={count:t,format:s,config:a},{data:e}=await d.h.post("/api/batch",i),l=(0,h.q$)(e,"application/zip");o().saveAs(l,`${this.name||"batch"}.zip`),this.$wait.end("creating-batch"),this.$notify({group:"success",title:"Created batch of patterns!"}),this.setModal(null)}catch{this.$notify({group:"danger",title:"Failed to create batch."})}}}},g=p,b=a(3483),m=(0,b.Z)(g,i,e,!1,null,null,null),v=m.exports}}]);
2//# sourceMappingURL=2136.afd147ec.js.map

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.