PageSourceSearch

https://pika.page/assets/stimulus-sortable-fa10c3c2667e43f610811ee6889d0dec76c9a8969c7653c260721486929789f8.js

js pika.page collected 2026-10-03 21:41:00 UTC 1,117 bytes, 4 lines download raw bytes

vendor: 1,117 bytes, lines 1-4
1// [email protected] downloaded from https://ga.jspm.io/npm:[email protected]/dist/stimulus-sortable.mjs
2
3import{Controller as t}from"@hotwired/stimulus";import e from"sortablejs";import{patch as a}from"@rails/request.js";class r extends t{initialize(){this.onUpdate=this.onUpdate.bind(this)}connect(){this.sortable=new e(this.element,{...this.defaultOptions,...this.options})}disconnect(){this.sortable.destroy(),this.sortable=void 0}async onUpdate({item:t,newIndex:e}){if(!t.dataset.sortableUpdateUrl)return;const i=this.resourceNameValue?`${this.resourceNameValue}[${this.paramNameValue}]`:this.paramNameValue,s=new FormData;return s.append(i,e+1),await a(t.dataset.sortableUpdateUrl,{body:s,responseKind:this.responseKindValue})}get options(){return{animation:this.animationValue||this.defaultOptions.animation||150,handle:this.handleValue||this.defaultOptions.handle||void 0,onUpdate:this.onUpdate}}get defaultOptions(){return{}}}r.values={resourceName:String,paramName:{type:String,default:"position"},responseKind:{type:String,default:"html"},animation:Number,handle:String};export{r as default};
4

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.