1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2652],{32652:(e,t,o)=>{o.d(t,{Gu:()=>f,Hm:()=>s,Jb:()=>b,Q5:()=>x,Qk:()=>j,S1:()=>n,S5:()=>y,YW:()=>_,_0:()=>l,bf:()=>m,gE:()=>d,gi:()=>w,h0:()=>k,n3:()=>h,nm:()=>E,pZ:()=>p,sQ:()=>r,sS:()=>a,sb:()=>i,tn:()=>u});let n=o(95704).env.NEXT_PUBLIC_SELLTECH_API||"https://t.ogrepairs.com",l=e=>"\xa3".concat(Number.isInteger(e)?e:e.toFixed(2)),i=e=>Math.round(1.1*e);function r(e){if("controller"===e.category)return"controllers";let t="".concat(e.device_key," ").concat(e.display_name).toLowerCase();return/(^|[^a-z])ps\d|playstation|ps vita|psp/.test(t)?"playstation":/xbox/.test(t)?"xbox":/nintendo|switch|wii|game ?boy|(^|[^a-z])[23]?ds([^a-z]|$)/.test(t)?"nintendo":"other"}let a=e=>"fault_".concat(e);function s(e){let t=e.replace(/[_-]+/g," ").trim();return t.charAt(0).toUpperCase()+t.slice(1)}let c={home:["no_display","hdmi_port","disc_drive","overheating","fan_noise","cosmetic_damage","other"],handheld:["cracked_screen","wont_charge","battery","stick_drift","no_display","cosmetic_damage","other"],controller:["stick_drift","buttons","triggers","bumpers","wont_charge","battery","cosmetic_damage","other"]};function p(e){var t,o;return(null==e||null==(t=e.fault_options)?void 0:t.length)?e.fault_options:c[null!=(o=null==e?void 0:e.form_factor)?o:"home"]}let u={working:"condWorkingT",faulty:"condFaultyT",no_power:"condNoPowerT",other:"condOtherT"},d="incomplete_kit";function y(e){return e?["controller","dock","cables","other"]:["controller","cables","other"]}function h(e){return!!e&&"console"===e.category&&/switch/.test("".concat(e.device_key," ").concat(e.slug," ").concat(e.display_name).toLowerCase())}let g={controller:"controller",cables:"power/AV cables",dock:"dock"};function m(e,t,o){let n=e.filter(e=>e in g).map(e=>"controller"===e&&o?"Joy-Cons":g[e]),l=t.trim(),i=n.join(", ");return i||l?"Missing: ".concat([i,l].filter(Boolean).join(" â ")):"Missing: (unspecified)"}function _(e){var t;return(null==(t=e.device)?void 0:t.category)==="console"&&!1===e.complete}function f(e){return e.device&&"other"!==e.condition?e.device.estimates[e.condition]:null}let w=40;function b(e){return e.reduce((e,t)=>{let o=f(t);return null!=o?e+o*t.quantity:e},0)}function x(e){return e.some(e=>null==f(e))}function k(e,t,o){return t?e>0?"".concat(l(e)," + ").concat(o):o:l(e)}function v(e){return e.toLowerCase().normalize("NFD").replace(RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g," ").trim()}let C=[[/playstation 5|ps5/,["ps5","ps 5","playstation 5","sony"]],[/playstation 4|ps4/,["ps4","ps 4","playstation 4","sony"]],[/playstation 3|ps3/,["ps3","ps 3","playstation 3","sony"]],[/playstation 2|ps2/,["ps2","ps 2","playstation 2","sony"]],[/playstation portal/,["portal","ps portal","remote play"]],[/ps vita|psvita|vita/,["vita","ps vita","psvita","sony handheld"]],[/psp/,["psp","playstation portable","sony handheld"]],[/dualsense/,["dualsense","dual sense","ps5 controller","ps5 pad","sony pad"]],[/dualshock/,["dualshock","dual shock","ds4","ps4 controller","ps4 pad"]],[/xbox series x/,["series x","xbox series x","xsx","microsoft"]],[/xbox series s/,["series s","xbox series s","xss","microsoft"]],[/xbox one/,["xbox one","xbone","xb1","microsoft"]],[/xbox 360/,["360","xbox 360","microsoft"]],[/elite/,["elite","elite series 2","xbox elite","pro controller"]],[/switch 2/,["switch 2","nintendo switch 2"]],[/switch oled/,["oled","switch oled","nintendo switch oled"]],[/switch lite/,["lite","switch lite","nintendo switch lite"]],[/switch/,["switch","nintendo switch"]],[/joy ?con/,["joycon","joy con","joycons","switch controller","drift"]],[/pro controller/,["pro controller","switch pro","nintendo pro"]],[/3ds|2ds/,["3ds","2ds","nintendo handheld"]],[/wii u/,["wii u","wiiu","nintendo"]],[/wii/,["wii","nintendo"]],[/game ?boy/,["gameboy","game boy","gba","gbc","nintendo handheld"]],[/steam deck/,["steam deck","steamdeck","valve","handheld pc"]],[/rog ally/,["rog ally","asus ally","handheld pc"]]];function j(e,t){let o=v(t);if(!o)return!0;let n=function(e){var t;let o=v("".concat(e.display_name," ").concat(null!=(t=e.slug)?t:""," ").concat(e.device_key)),n=C.filter(e=>{let[t]=e;return t.test(o)}).flatMap(e=>{let[,t]=e;return t}),l="".concat(o," ").concat(v(n.join(" ")));return"".concat(l," ").concat(l.replace(/ /g,""))}(e);return o.split(" ").every(e=>n.includes(e))}function E(e){var t,o,n,l,i,r,a,s,p,u;let d="controller"===e.category?"controller":"console",y=null!=(o=e.form_factor)?o:"controller"===d?"controller":"home",h=e.slug||v(e.dis
1play_name).replace(/ /g,"-"),g=null!=(n=e.estimates)?n:{working:0,faulty:0,no_power:0,other:null};return{device_key:e.device_key,slug:h,display_name:e.display_name,category:d,form_factor:y,image_url:null!=(l=e.image_url)?l:null,sort_order:null!=(i=e.sort_order)?i:0,estimates:{working:null!=(r=g.working)?r:0,faulty:null!=(a=g.faulty)?a:0,no_power:null!=(s=g.no_power)?s:0,other:null!=(p=g.other)?p:null},fault_options:(null==(t=e.fault_options)?void 0:t.length)?e.fault_options:c[y],seo:null!=(u=e.seo)?u:{h1:"Sell your ".concat(e.display_name),title:"Sell your ".concat(e.display_name," â OG Repairs"),description:"Sell your ".concat(e.display_name," to OG Repairs â working or faulty. Free prepaid postage on trade-ins of \xa340 or more, and payment within 24 hours of testing."),intro:"We buy the ".concat(e.display_name," in any condition â fully working, faulty or completely dead. Tell us what you've got, get an estimate straight away, and post it in free.")},accepting:!1!==e.accepting,not_accepting_message:!1===e.accepting?e.not_accepting_message||"Unfortunately we're not accepting them.":null}}}}]);
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.