PageSourceSearch

https://eshop.ooredoo.qa/assets/CartItemsListingComp.BrJHT-x5.js

js ooredoo.qa collected 2026-09-24 09:00:11 UTC 1,807 bytes, 1 lines download raw bytes

1import{Q as d}from"./QVirtualScroll.Dn8p7456.js";import{bW as c,z as l,_ as C}from"./index.DWaaXrQu.js";import{j as I,f as y,H as f,p as s,q as n,I as m,V as v,F as q,U as L}from"./framework.DoT0Q_H5.js";import"./state.VUvqc9ZO.js";import"./date.B-YVwB4U.js";import"./sentry.hhiu05Mh.js";import"./extraFeatures.CTeKNlr9.js";import"./i18n.DXs_--yQ.js";const g=I({name:"CartItemsListingComp",components:{CartItem:c},props:{size:{type:String,required:!0},isDesktopOrLaptop:{type:Boolean,required:!0},cart:{type:Object,required:!0}},setup(){const t=l(),a=y(!1);async function p(r,i,o){a.value=!0,r.quantity=i,await t.updateCartItems([r],i<o)&&(r.quantity=o),a.value=!1}function u(r){a.value=!0,t.removeCartItems([r]),a.value=!1}return{isLoading:a,updateCartItemQuantity:p,removeCartItem:u}}}),Q={class:"cart-body"},k={key:1,class:"cart-items q-pb-md"};function z(t,a,p,u,r,i){const o=f("CartItem");return s(),n("div",Q,[t.isDesktopOrLaptop?(s(),m(d,{key:0,class:"cart-items cart-items-scroll-area q-pb-md",items:t.cart?.lines.nodes},{default:v(({item:e})=>[(s(),m(o,{cartItem:e,itemQuantity:e.quantity,size:t.size,isLoading:t.isLoading,key:e.id,class:"q-my-md",onUpdateCartItemQuantity:t.updateCartItemQuantity,onRemoveCartItem:t.removeCartItem},null,8,["cartItem","itemQuantity","size","isLoading","onUpdateCartItemQuantity","onRemoveCartItem"]))]),_:1},8,["items"])):(s(),n("div",k,[(s(!0),n(q,null,L(t.cart?.lines.nodes,e=>(s(),m(o,{cartItem:e,itemQuantity:e.quantity,size:t.size,isLoading:t.isLoading,key:e.id,class:"q-my-md",onUpdateCartItemQuantity:t.updateCartItemQuantity,onRemoveCartItem:t.removeCartItem},null,8,["cartItem","itemQuantity","size","isLoading","onUpdateCartItemQuantity","onRemoveCartItem"]))),128))]))])}const O=C(g,[["render",z],["__scopeId","data-v-13d5a858"]]);export{O as default};

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.