PageSourceSearch

https://app.paa.ge/static/js/3332.fa5d44ff.chunk.js

js paa.ge collected 2026-09-24 17:10:04 UTC 19,675 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunklamaco=self.webpackChunklamaco||[]).push([[3332],{11645:(e,t,r)=>{r.d(t,{A:()=>n});const n=r(30227).A},23332:(e,t,r)=>{r.r(t),r.d(t,{default:()=>C});var n=r(65043),s=r(13382),c=r(89073),o=r(11645),a=r(8354),i=r(43801),l=r(15444),d=r(16569),u=r(1210),h=r(47419),f=r(31023),m=r(65425),g=r(91646),p=r(67298),y=r(26449),v=r(59806),x=r(98734),j=r(33385),b=r(67361),A=r.n(b),w=r(70579);const{Text:E,Title:O}=f.A,C=()=>{const[e]=i.A.useForm(),[t,r]=(0,n.useState)(null),[f,b]=(0,n.useState)(!1),[O,C]=(0,n.useState)(!1),[N,I]=(0,n.useState)(!1),[S,z]=(0,n.useState)(null),R=(0,n.useRef)(null),_=(0,n.useRef)(null),Q=(0,n.useRef)(null),G=(()=>{const e=window.location.pathname.split("/");return e[e.length-1].split("?")[0]})(),{mutateAsync:k,isLoading:L}=(0,m.QT)(),{mutateAsync:P,isLoading:T}=(0,m.OJ)(),{mutateAsync:D,isLoading:M}=(0,m.RY)(),Z=(0,n.useMemo)(()=>!(null===t||void 0===t||!t.ends_at)&&new Date(t.ends_at)<new Date,[null===t||void 0===t?void 0:t.ends_at]),F=()=>{if(t&&window.pos_addPayment){b(!0),C(!1);try{const e=async e=>{try{window.pos_addExternalReference("paage:",t.code),await D({amount:t.balance,method:"lightspeed",gift_card_id:t.id,lightspeed_integration_id:G}),window.pos_close(),d.Ay.success("Gift card redeemed successfully!"),b(!1)}catch(r){console.error("Error in redeem process:",r),d.Ay.error("Error completing redemption"),b(!1)}};window.pos_addPayment(t.balance,"PAAGE",e)}catch(e){console.error("Error starting redeem process:",e),d.Ay.error("Error starting redemption"),b(!1)}}else d.Ay.error("POS functions not available")},X=()=>{S&&(S.getTracks().forEach(e=>e.stop()),z(null)),R.current&&(R.current.srcObject=null),I(!1),Q.current&&(clearInterval(Q.current),Q.current=null)},U=()=>{Q.current&&clearInterval(Q.current),Q.current=setInterval(()=>{try{if(R.current&&_.current&&R.current.readyState===R.current.HAVE_ENOUGH_DATA&&R.current.videoWidth>0&&R.current.videoHeight>0){const e=_.current,t=e.getContext("2d");if(!t)return;const{videoWidth:r,videoHeight:n}=R.current;if(r<=0||n<=0)return;e.width=r,e.height=n,t.drawImage(R.current,0,0,r,n);const s=t.getImageData(0,0,r,n);if(!s||!s.data||0===s.data.length)return;const c=A()(s.data,s.width,s.height);c&&c.data&&(console.log("QR Code detected:",c.data),q(c.data))}}catch(e){console.error("Error during QR scanning:",e)}},200)},q=async t=>{try{if(!t||t.trim().length<3)return void console.warn("Invalid QR data detected, ignoring:",t);const u=t.match(/\/redeem-voucher\/(order_[A-Z0-9]+)/i),h=t.match(/\/redeem-voucher\/order_[A-Z0-9]+\?code=([A-Za-z0-9]+)/i),f=t.match(/(?:bonkdo\.com|mybeezbox\.com).*\/mygift\/([A-Za-z0-9]+)/i),m=t.match(/([A-Z0-9]{4}-[A-Z0-9]{4})/),g=t.match(/^[A-Z0-9]{6,8}$/),p=t.match(/^[a-z0-9]{8,12}$/);if(!u&&!h&&!f&&!m&&!g&&!p)return void console.warn("QR data doesn't match expected patterns, ignoring:",t);if(X(),u){const t=u[1],c=null===h||void 0===h?void 0:h[1];try{if(r(null),c){const t=await k({code:c});r(t.data),e.setFieldValue("voucherId",c)}else{const n=await P({id:t});r(n.data),n.data.code&&e.setFieldValue("voucherId",n.data.code)}d.Ay.success("Gift card found via QR scan!")}catch(l){var n,s;console.error("Error retrieving gift card by order ID:",l),r(null),404===(null===(n=l.response)||void 0===n?void 0:n.status)?d.Ay.error("Gift card not found"):400===(null===(s=l.response)||void 0===s?void 0:s.status)?d.Ay.error("Gift card is not active"):d.Ay.error("Error retrieving gift card")}}else if(f){const t=f[1];try{r(null);const n=await k({code:t});r(n.data),e.setFieldValue("voucherId",t),d.Ay.success("Gift card found via QR scan!")}catch(l){var c,o;console.error("Error retrieving gift card:",l),r(null),404===(null===(c=l.response)||void 0===c?void 0:c.status)?d.Ay.error("Gift card not found"):400===(null===(o=l.response)||void 0===o?void 0:o.status)?d.Ay.error("Gift card is not active"):d.Ay.error("Error retrieving gift card")}}else{let n=t;if(p)n=p[0];else{const e=t.match(/([A-Z0-9]{4}-[A-Z0-9]{4})/);e&&(n=e[1]);let r=n.replace(/[^A-Za-z0-9]/g,"").toUpperCase();r.length>8&&(r=r.substring(0,8)),r.length>4&&(r=r.substring(0,4)+"-"+r.substring(4)),n=r}if(n.length<3)return void d.Ay.error("Invalid QR code format");e.setFieldValue("voucherId",n);try{r(null);const e=await k({code:n});r(e.data),d.Ay.success("Gift card found via QR scan!")}catch(l){var a,i;console.error("Error retrieving gift card:",l),r(null),404===(null===(a=l.response)||void 0===a?void 0:a.status)?d.Ay.error("Gift card not found"):400===(null===(i=l.response)||void 0===i?void 0:i.status)?d.Ay.error("Gift card 
1is not active"):d.Ay.error("Error retrieving gift card")}}}catch(l){console.error("Error processing QR code:",l),X(),d.Ay.error("Error processing QR code")}};return(0,n.useEffect)(()=>{N&&S&&R.current&&(R.current.srcObject=S,R.current.play())},[N,S]),(0,n.useEffect)(()=>{!N&&S&&(S.getTracks().forEach(e=>e.stop()),z(null),Q.current&&(clearInterval(Q.current),Q.current=null),R.current&&(R.current.srcObject=null))},[N,S]),(0,n.useEffect)(()=>()=>{X()},[]),(0,w.jsx)(h.A,{className:"vh-100 w-100 p-0",style:{overflowY:"auto"},children:(0,w.jsxs)(o.A,{className:"d-flex flex-column pt-5 pb-5 align-items-center justify-content-center",xs:{span:22,offset:1},sm:{span:20,offset:2},md:{span:16,offset:4},lg:{span:12,offset:6},xl:{span:10,offset:7},children:[(0,w.jsx)("div",{className:"text-center mb-5",children:(0,w.jsx)(j.A,{disableClick:!0,width:150,height:50})}),(0,w.jsxs)(i.A,{form:e,onFinish:async e=>{try{r(null);const t=await k({code:e.voucherId});r(t.data),d.Ay.success("Gift card found!")}catch(s){var t,n;console.error("Error retrieving gift card:",s),r(null),404===(null===(t=s.response)||void 0===t?void 0:t.status)?d.Ay.error("Gift card not found"):400===(null===(n=s.response)||void 0===n?void 0:n.status)?d.Ay.error("Gift card is not active"):d.Ay.error("Error retrieving gift card")}},layout:"vertical",className:"w-100",style:{maxWidth:400},children:[(0,w.jsx)(i.A.Item,{name:"voucherId",rules:[{required:!0,message:"Please enter your voucher ID"}],children:(0,w.jsx)(l.A,{placeholder:"XXXX-XXXX or voucher code",size:"large",style:{height:48},autoCapitalize:"characters",onChange:t=>{let r=t.target.value.trim();/^[A-Za-z0-9-]*$/.test(r)&&/[A-Z-]/.test(r)&&(r=r.replace(/[^A-Za-z0-9]/g,"").toUpperCase(),r.length>8&&(r=r.substring(0,8)),r.length>4&&(r=r.substring(0,4)+"-"+r.substring(4))),e.setFieldValue("voucherId",r)}})}),(0,w.jsx)(i.A.Item,{className:"mb-3",children:(0,w.jsx)(s.Ay,{type:"primary",htmlType:"submit",loading:L||T,className:"w-100",children:(0,w.jsxs)("div",{className:"d-flex align-items-center justify-content-center gap-2",children:[(0,w.jsx)(p.n,{className:"mr-2",icon:y.Search01Icon,size:18}),(0,w.jsx)("span",{children:"Search"})]})})}),(0,w.jsx)(i.A.Item,{className:"mb-0",children:(0,w.jsx)(s.Ay,{type:"default",onClick:async()=>{try{const e={video:{facingMode:"environment",width:{ideal:1280},height:{ideal:720}}},t=await navigator.mediaDevices.getUserMedia(e);z(t),I(!0),setTimeout(()=>{R.current&&t&&U()},1e3)}catch(e){console.error("Error accessing camera:",e),d.Ay.error("Unable to access camera. Please check permissions.")}},loading:L||T,className:"w-100",style:{borderColor:"#1890ff",color:"#1890ff",background:"#f0f8ff"},children:(0,w.jsxs)("div",{className:"d-flex align-items-center justify-content-center gap-2",children:[(0,w.jsx)(p.n,{className:"mr-2",icon:y.Camera01Icon,size:18}),(0,w.jsx)("span",{children:"Scan QR Code"})]})})})]}),(0,w.jsx)(u.A,{title:"Scan QR Code",open:N,onCancel:X,footer:[(0,w.jsx)(s.Ay,{onClick:X,icon:(0,w.jsx)(p.n,{icon:y.Cancel01Icon,size:16}),children:"Close Camera"},"close")],width:600,centered:!0,children:(0,w.jsxs)("div",{className:"text-center",children:[(0,w.jsx)("video",{ref:R,style:{width:"100%",maxWidth:500,height:"auto",border:"2px solid #1890ff",borderRadius:8},playsInline:!0,muted:!0}),(0,w.jsx)("canvas",{ref:_,style:{display:"none"}}),(0,w.jsx)("div",{className:"mt-3",children:(0,w.jsx)(E,{type:"secondary",children:"Position the QR code within the camera view to scan automatically"})})]})}),t&&(0,w.jsxs)(c.A,{className:"w-100 mt-4",style:{maxWidth:400},title:"Gift Card Details",children:[(0,w.jsxs)("div",{className:"d-flex flex-column gap-2",children:[(0,w.jsxs)("div",{children:[(0,w.jsx)(E,{strong:!0,children:"Code: "}),(0,w.jsx)(E,{code:!0,children:t.code})]}),(0,w.jsxs)("div",{children:[(0,w.jsx)(E,{strong:!0,children:"Value: "}),(0,w.jsx)(E,{children:(0,g.E1)(t.value,t.region.currency_code)})]}),(0,w.jsxs)("div",{children:[(0,w.jsx)(E,{strong:!0,children:"Balance: "}),(0,w.jsx)(E,{children:(0,g.E1)(t.balance,t.region.currency_code)})]}),(0,w.jsxs)("div",{children:[(0,w.jsx)(E,{strong:!0,children:"Status: "}),(0,w.jsx)(E,{type:t.is_disabled?"danger":"success",children:t.is_disabled?"Disabled":"Active"})]}),t.ends_at&&(0,w.jsxs)("div",{children:[(0,w.jsx)(E,{strong:!0,children:"Expires: "}),(0,w.jsxs)(E,{type:Z?"danger":void 0,children:[new Date(t.ends_at).toLocaleDateString(),Z&&" (Expired)"]})]})]}),t.items&&t.items.length>0&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(a.A,{className:"my-3"}),(0,w.jsxs)("div",{className:"d-flex flex-column",style:{gap:12},children:[(0,w.jsx)(E,{strong:!0,children:"Items:"}),t.items.map(e=>(0,w.jsxs)(x.A,{alignItems:"center",gap:"sm",style:{marginBottom:8},children:[(0,w.jsx)(v.h,{src:e.thumbnail||"",alt:e.title,size:40}),(0,w.jsxs)(x.A,{flexDirection:"column",className:"w-100 cut-text-w-100",children:[(0,w.jsxs)("div",{className:"cut-text-w-100",children:[e.title," (x",e.quantity,")"]}),(0,w.jsx)("div",{className:"text-grey font-size-sm",children:(0,g.E1)(e.unit_price,t.region.currency_code)})]})]},e.id))]})]}),!t.is_disabled&&t.balance>0&&(0,w.jsx)("div",{className:"mt-3",children:(0,w.jsx)(s.Ay,{type:"primary",size:"large",className:"w-100",loading:f,onClick:()=>{t&&(Z?C(!0):F())},style:{backgroundColor:"#52c41a",borderColor:"#52c41a"},children:"Use for payment"})})]}),(0,w.jsx)(u.A,{title:"Gift Card Expired",open:O,onOk:F,onCancel:()=>C(!1),okText:"Yes, use it anyway",centered:!0,cancelText:"Cancel",confirmLoading:f,children:(0,w.jsxs)("p",{children:["This gift card expired on"," ",(0,w.jsx)("strong",{children:(null===t||void 0===t?void 0:t.ends_at)&&new Date(t.ends_at).toLocaleDateString()}),". Are you sure you want to use it for payment?"]})})]})})}},30227:(e,t,r)=>{r.d(t,{A:()=>h});var n=r(65043),s=r(98139),c=r.n(s),o=r(35296),a=r(95150),i=r(56055),l=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]])}return r};function d(e){return"number"===typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}const u=["xs","sm","md","lg","xl","xxl"];const h=n.forwardRef((e,t)=>
1{const{getPrefixCls:r,direction:s}=n.useContext(o.QO),{gutter:h,wrap:f}=n.useContext(a.A),{prefixCls:m,span:g,order:p,offset:y,push:v,pull:x,className:j,children:b,flex:A,style:w}=e,E=l(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),O=r("col",m),[C,N,I]=(0,i.xV)(O),S={};let z={};u.forEach(t=>{let r={};const n=e[t];"number"===typeof n?r.span=n:"object"===typeof n&&(r=n||{}),delete E[t],z=Object.assign(Object.assign({},z),{["".concat(O,"-").concat(t,"-").concat(r.span)]:void 0!==r.span,["".concat(O,"-").concat(t,"-order-").concat(r.order)]:r.order||0===r.order,["".concat(O,"-").concat(t,"-offset-").concat(r.offset)]:r.offset||0===r.offset,["".concat(O,"-").concat(t,"-push-").concat(r.push)]:r.push||0===r.push,["".concat(O,"-").concat(t,"-pull-").concat(r.pull)]:r.pull||0===r.pull,["".concat(O,"-rtl")]:"rtl"===s}),r.flex&&(z["".concat(O,"-").concat(t,"-flex")]=!0,S["--".concat(O,"-").concat(t,"-flex")]=d(r.flex))});const R=c()(O,{["".concat(O,"-").concat(g)]:void 0!==g,["".concat(O,"-order-").concat(p)]:p,["".concat(O,"-offset-").concat(y)]:y,["".concat(O,"-push-").concat(v)]:v,["".concat(O,"-pull-").concat(x)]:x},j,z,N,I),_={};if(h&&h[0]>0){const e=h[0]/2;_.paddingLeft=e,_.paddingRight=e}return A&&(_.flex=d(A),!1!==f||_.minWidth||(_.minWidth=0)),C(n.createElement("div",Object.assign({},E,{style:Object.assign(Object.assign(Object.assign({},_),w),S),className:R,ref:t}),b))})},33385:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(73216),s=r(70579);const c=e=>{const t=(0,n.Zp)();return(0,s.jsx)("img",{src:"/img/logo-paage-500.png",alt:"paage logo",onClick:e.disableClick?void 0:()=>t("/home"),style:{cursor:"pointer",width:e.width,height:e.height}})}},44210:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(65043);function s(){const[,e]=n.useReducer(e=>e+1,0);return e}},44320:(e,t,r)=>{r.d(t,{Ay:()=>a,ye:()=>o});var n=r(65043),s=r(80167),c=r(77340);const o=["xxl","xl","lg","md","sm","xs"],a=()=>{const[,e]=(0,s.Ay)(),t=(e=>({xs:"(max-width: ".concat(e.screenXSMax,"px)"),sm:"(min-width: ".concat(e.screenSM,"px)"),md:"(min-width: ".concat(e.screenMD,"px)"),lg:"(min-width: ".concat(e.screenLG,"px)"),xl:"(min-width: ".concat(e.screenXL,"px)"),xxl:"(min-width: ".concat(e.screenXXL,"px)")}))((e=>{const t=e,r=[].concat(o).reverse();return r.forEach((e,n)=>{const s=e.toUpperCase(),c="screen".concat(s,"Min"),o="screen".concat(s);if(!(t[c]<=t[o]))throw new Error("".concat(c,"<=").concat(o," fails : !(").concat(t[c],"<=").concat(t[o],")"));if(n<r.length-1){const e="screen".concat(s,"Max");if(!(t[o]<=t[e]))throw new Error("".concat(o,"<=").concat(e," fails : !(").concat(t[o],"<=").concat(t[e],")"));const c=r[n+1].toUpperCase(),a="screen".concat(c,"Min");if(!(t[e]<=t[a]))throw new Error("".concat(e,"<=").concat(a," fails : !(").concat(t[e],"<=").concat(t[a],")"))}}),e})(e));return n.useMemo(()=>{const e=new Map;let r=-1,n={};return{responsiveMap:t,matchHandlers:{},dispatch:t=>(n=t,e.forEach(e=>e(n)),e.size>=1),subscribe(t){return e.size||this.register(),r+=1,e.set(r,t),t(n),r},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(e=>{let[t,r]=e;const s=e=>{let{matches:r}=e;this.dispatch(Object.assign(Object.assign({},n),{[t]:r}))},o=window.matchMedia(r);(0,c.e)(o,s),this.matchHandlers[r]={mql:o,listener:s},s(o)})},unregister(){Object.values(t).forEach(e=>{const t=this.matchHandlers[e];(0,c.p)(null===t||void 0===t?void 0:t.mql,null===t||void 0===t?void 0:t.listener)}),e.clear()}}},[e])}},47419:(e,t,r)=>{r.d(t,{A:()=>n});const n=r(74647).A},59806:(e,t,r)=>{r.d(t,{h:()=>m});var n=r(89379),s=r(80045),c=r(57528),o=r(63935),a=r(2826),i=r(70579);const l=["size","withBorder","overlay","radius","badge"];var d,u;const h=a.Ay.img(d||(d=(0,c.A)(["\n  min-width: ","px;\n  min-height: ","px;\n  max-width: ","px;\n  max-height: ","px;\n  border-radius: ","px;\n  border: 1px solid ",";\n"])),e=>{let{size:t}=e;return t},e=>{let{size:t}=e;return t},e=>{let{size:t}=e;return t},e=>{let{size:t}=e;return t},e=>{let{radius:t}=e;return t||8},o.Ug),f=a.Ay.div(u||(u=(0,c.A)(["\n  border-radius: 40px;\n  width: 20px;\n  height: 20px;\n  background-color: ",";\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  transform: translate(8px, -8px);\n"])),o.f),m=e=>{const{size:t=60,withBorder:r,overlay:c,radius:o,badge:a}=e,d=(0,s.A)(e,l);return(0,i.jsxs)("div",{className:"position-relative",children:[c&&(0,i.jsx)("div",{className:"position-absolute top-0 left-0 w-100 h-100",style:{zIndex:2},children:c}),a&&(0,i.jsx)("div",{className:"position-absolute top-0 right-0",style:{zIndex:3},children:(0,i.jsx)(f,{children:(0,i.jsx)("div",{className:"text-xs-medium text-white",children:a})})}),(0,i.jsx)(h,(0,n.A)((0,n.A)({style:{filter:c?"brightness(0.6)":"none",objectFit:"cover"}},d),{},{size:t,withBorder:r,radius:o}))]})}},65425:(e,t,r)=>{r.d(t,{Jy:()=>l,OJ:()=>i,QT:()=>a,RY:()=>d});var n=r(59781),s=r(12836),c=r(96444),o=r(68262);const a=()=>{const e=(0,n.jE)();return(0,s.n)({mutationKey:["get-gift-card-by-code"],mutationFn:async e=>(0,c.default)("/store/lightspeed/redeem/".concat(e.code),{method:"GET"}),onSuccess:async()=>
1{e.invalidateQueries({queryKey:["get-gift-card-by-code"]})}})},i=()=>{const e=(0,n.jE)();return(0,s.n)({mutationKey:["get-gift-card-by-order-id"],mutationFn:async e=>(0,c.default)("/store/lightspeed/redeem-with-order/".concat(e.id),{method:"GET"}),onSuccess:async()=>{e.invalidateQueries({queryKey:["get-gift-card-by-order-id"]})}})},l=()=>{const e=(0,n.jE)();return(0,s.n)({mutationKey:["connect-lightspeed"],mutationFn:async()=>(0,c.default)("/admin/store-integrations/lightspeed/connect",{method:"POST"}),onSuccess:async()=>{e.invalidateQueries(o.fdI.all)}})},d=()=>{const e=(0,n.jE)();return(0,s.n)({mutationKey:["create-lightspeed-redemption"],mutationFn:async e=>(0,c.default)("/store/lightspeed/voucher-redemptions",{method:"POST",data:e}),onSuccess:()=>{e.invalidateQueries({queryKey:["get-gift-card-by-code"]}),e.invalidateQueries({queryKey:["get-gift-card-by-order-id"]})}})}},74647:(e,t,r)=>{r.d(t,{A:()=>f});var n=r(65043),s=r(98139),c=r.n(s),o=r(44320),a=r(35296),i=r(99598);var l=r(95150),d=r(56055),u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]])}return r};function h(e,t){const[r,s]=n.useState("string"===typeof e?e:"");return n.useEffect(()=>{(()=>{if("string"===typeof e&&s(e),"object"===typeof e)for(let r=0;r<o.ye.length;r++){const n=o.ye[r];if(!t||!t[n])continue;const c=e[n];if(void 0!==c)return void s(c)}})()},[JSON.stringify(e),t]),r}const f=n.forwardRef((e,t)=>{const{prefixCls:r,justify:s,align:f,className:m,style:g,children:p,gutter:y=0,wrap:v}=e,x=u(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:j,direction:b}=n.useContext(a.QO),A=(0,i.A)(!0,null),w=h(f,A),E=h(s,A),O=j("row",r),[C,N,I]=(0,d.L3)(O),S=function(e,t){const r=[void 0,void 0],n=Array.isArray(e)?e:[e,void 0],s=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return n.forEach((e,t)=>{if("object"===typeof e&&null!==e)for(let n=0;n<o.ye.length;n++){const c=o.ye[n];if(s[c]&&void 0!==e[c]){r[t]=e[c];break}}else r[t]=e}),r}(y,A),z=c()(O,{["".concat(O,"-no-wrap")]:!1===v,["".concat(O,"-").concat(E)]:E,["".concat(O,"-").concat(w)]:w,["".concat(O,"-rtl")]:"rtl"===b},m,N,I),R={},_=null!=S[0]&&S[0]>0?S[0]/-2:void 0;_&&(R.marginLeft=_,R.marginRight=_);const[Q,G]=S;R.rowGap=G;const k=n.useMemo(()=>({gutter:[Q,G],wrap:v}),[Q,G,v]);return C(n.createElement(l.A.Provider,{value:k},n.createElement("div",Object.assign({},x,{className:z,style:Object.assign(Object.assign({},R),g),ref:t}),p)))})},77340:(e,t,r)=>{r.d(t,{e:()=>n,p:()=>s});const n=(e,t)=>{"undefined"!==typeof(null===e||void 0===e?void 0:e.addEventListener)?e.addEventListener("change",t):"undefined"!==typeof(null===e||void 0===e?void 0:e.addListener)&&e.addListener(t)},s=(e,t)=>{"undefined"!==typeof(null===e||void 0===e?void 0:e.removeEventListener)?e.removeEventListener("change",t):"undefined"!==typeof(null===e||void 0===e?void 0:e.removeListener)&&e.removeListener(t)}},95150:(e,t,r)=>{r.d(t,{A:()=>n});const n=(0,r(65043).createContext)({})},99598:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(65043),s=r(52664),c=r(44210),o=r(44320);const a=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=(0,n.useRef)(t),a=(0,c.A)(),i=(0,o.Ay)();return(0,s.A)(()=>{const t=i.subscribe(t=>{r.current=t,e&&a()});return()=>i.unsubscribe(t)},[]),r.current}}}]);

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.