PageSourceSearch

https://www.brottsoffermyndigheten.se/Dist/brom/order-list-checkout.7d71a7b642ba7896f334.js

js brottsoffermyndigheten.se collected 2026-10-02 04:25:59 UTC 1,991 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkbrom_web=globalThis.webpackChunkbrom_web||[]).push([[379],{5614:(t,e,n)=>{n.r(e),n.d(e,{default:()=>m});var i=n(8257);const s={id:"order-list-checkout",class:"publications-order-list"},l={key:0,class:"publications-list-item-image"},o=["src"],u={class:"publications-list-item-content"},a={class:"publications-list-item-buttons"},c=["onClick"],r=["onUpdate:modelValue","onInput"],m={__name:"_order-list-checkout",setup(t){const e=(0,i.Kh)({items:[],show:!1}),n=()=>{let t=sessionStorage.getItem("orderPublicationsList");if(t&&t.length){const e=JSON.parse(t);return Array.isArray(e)?e:[]}return[]};return(0,i.sV)((()=>{e.items=n(),e.show=e.items.length>0,document.addEventListener("orderPublicationsUpdate",(()=>{e.items=n(),e.show=e.items.length>0}))})),(t,n)=>((0,i.uX)(),(0,i.CE)("div",s,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(e.items,(t=>((0,i.uX)(),(0,i.CE)("div",{class:"publications-list-item publications-list-item-edit",key:t.id},[t.image.length?((0,i.uX)(),(0,i.CE)("figure",l,[(0,i.Lk)("img",{src:t.image,alt:""},null,8,o)])):(0,i.Q3)("v-if",!0),(0,i.Lk)("div",u,[(0,i.Lk)("p",null,(0,i.v_)(t.title),1),(0,i.Lk)("div",a,[(0,i.Lk)("button",{class:"btn btn-icon-left btn-pub btn-pub-neu",onClick:e=>(t=>{const e=new CustomEvent("OrderPublicationsRemoveItem",{detail:t});document.dispatchEvent(e)})(t)},[...n[0]||(n[0]=[(0,i.Lk)("i",{class:"icon-close"},null,-1),(0,i.eW)(),(0,i.Lk)("span",null,"Ta bort",-1)])],8,c),(0,i.Lk)("form",null,[(0,i.Lk)("label",null,[n[1]||(n[1]=(0,i.Lk)("span",null,"Antal",-1)),(0,i.bo)((0,i.Lk)("input",{"onUpdate:modelValue":e=>t.count=e,maxlength:"3",size:"3",type:"text",min:"0",max:"999",inputmode:"numeric",pattern:"[0-9]*",onInput:e=>((t,e)=>{t.count.length>e.target.maxLength&&(t.count=t.count.slice(0,e.target.maxLength));const n=new CustomEvent("OrderPublicationsUpdateItemCount",{detail:{id:t.id,count:t.count}});document.dispatchEvent(n)})(t,e)},null,40,r),[[i.Jo,t.count]])])])])])])))),128))]))}}}}]);

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.