1import{It as e,T as t}from"./DidYC9GO.js";import{t as n}from"./hSodJS1n.js";import{r}from"./CQE56piN.js";import{t as i}from"./BlD5hbyM.js";var a=class{prefix;currentStore={};storage;constructor(e,t=`qb`){this.storage=e,this.prefix=t}get store(){try{if(!this.storage)return this.currentStore||{};let e=this.storage.getItem(this.prefix);return e?JSON.parse(e):{}}catch(e){return console.error(e),{}}}set store(e){if(this.currentStore=e,this.storage)try{this.storage.setItem(this.prefix,JSON.stringify(e))}catch(e){console.error(e)}}get(e){return this.store[e]}set(e,t){this.store={...this.store,[e]:t}}remove(e){let{[e]:t,...n}=this.store;this.store=n}},o=new class{baseStorage;constructor(){this.baseStorage=new a(window.localStorage)}get(e){return this.baseStorage.get(e)}set(e,t){this.baseStorage.set(e,t)}remove(e){this.baseStorage.remove(e)}},s={lg:1200,md:992,sm:768,xs:480,xxs:360};function c(){return window.innerWidth<s.md}var l=n(`page`,()=>{let n=e(null),a=e({}),s=e(null),l=e({}),u=e(r.UNDERGRADUATE),d=e(null),f=e(null),p=e({courseLevel:null}),m=e(!1),h=e(``),g=t(()=>p.value.courseLevel),_=t(()=>!u.value||u.value===r.UNDERGRADUATE),v=t(()=>u.value===r.POSTGRADUATE),y=t(()=>u.value===r.OTHER_COURSES),b=t(()=>u.value===r.TECHNICAL),x=t(()=>u.value===r.K12),S=t(()=>u.value===r.LANGUAGES),C=t(()=>{let e=`5512953694141`,t=`https://web.whatsapp.com/send?l=pt&phone=${e}`,n=`whatsapp://send?phone=${e}`;return{display:`(12) 95369-4141`,whatsappWeblink:t,deepLink:n,dynamicLink:c()?n:t}}),w=t(()=>a.value?.relevanceContinuousTest===`proposal`);function T(e={}){Object.keys(e).length===0?(n.value=null,a.value={},s.value=null,l.value={},u.value=r.UNDERGRADUATE,d.value=null,f.value=null,p.value={courseLevel:null},m.value=!1,h.value=``):(e.initialQuery!==void 0&&(n.value=e.initialQuery),e.abtests!==void 0&&(a.value=e.abtests),e.domain!==void 0&&(s.value=e.domain),e.params!==void 0&&(l.value=e.params),e.selectedSimplifiedLevel!==void 0&&(u.value=e.selectedSimplifiedLevel),e.bestCourseSearchLinks!==void 0&&(d.value=e.bestCourseSearchLinks),e.gambitVisitHash!==void 0&&(f.value=e.gambitVisitHash),e.mainSearch!==void 0&&(p.value=e.mainSearch),e.isImageListOpen!==void 0&&(m.value=e.isImageListOpen),e.path!==void 0&&(h.value=e.path))}function E(e){a.value={...a.value,...e}}function D(e){p.value=e}function O(e){u.value!==e&&(u.value=e,i(u.value)&&o.set(`defaultSimplifiedLevel`,u.value))}function k(){let e=o.get(`defaultSimplifiedLevel`);e&&O(e)}function A(e){f.value=e}function j(e){m.value=e}function M(){let e=N()||{};return P(),e}function N(){let e=document.cookie.split(`; `).find(e=>e.startsWith(`winBack=`));if(e)try{return JSON.parse(decodeURIComponent(e.split(`=`)[1]??``))}catch(e){console.error(`Error parsing the winBack cookie:`,e)}return null}function P(){if(typeof window>`u`)return;let e=N()||null,t=window.location.host.split(`.`).slice(-3).join(`.`);if(!e)return;if(e.showCounterLeft===0){document.cookie=`winBack=; path=/; max-age=-1; domain=${t};`;return}let n={...e,showCounterLeft:e.showCounterLeft-1,lastShowedTime:new Date().toISOString()};document.cookie=`winBack=${encodeURIComponent(JSON.stringify(n))}; path=/; max-age=86400; domain=${t};`}return{initialQuery:n,abtests:a,domain:s,params:l,selectedSimplifiedLevel:u,bestCourseSearchLinks:d,gambitVisitHash:f,mainSearch:p,isImageListOpen:m,path:h,selectedCourseLevel:g,selectedSimplifiedLevelIsUndergrad:_,selectedSimplifiedLevelIsPosgrad:v,selectedSimplifiedLevelIsOtherCourses:y,selectedSimplifiedLevelIsTechnical:b,selectedSimplifiedLevelIsK12:x,selectedSimplifiedLevelIsLanguages:S,whatsappNumber:C,useSearchRelevanceContinuousTestSort:w,assign:T,assignAbtest:E,assignMainSearch:D,setSelectedSimplifiedLevel:O,setPreviouslySelectedSimplifiedLevel:k,setGambitVisitHash:A,setIsImageListOpen:j,useLastOrderDataCookie:M,setLastOrderDataCookie:P,getLastOrderDataCookie:N}});export{a,o as i,c as n,s as r,l as t};
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.