vendor: 11,721 bytes, line 1
1"use strict";function _createForOfIteratorHelper(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){c=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(c)throw a}}}}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,o=Object.create(a.prototype),c=new A(n||[]);return i(o,"_invoke",{value:k(t,r,c)}),o}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",h="suspendedYield",p="executing",y="completed",g={};function v(){}function _(){}function m(){}var b={};u(b,o,(function(){return this}));var w=Object.getPrototypeOf,E=w&&w(w(T([])));E&&E!==r&&n.call(E,o)&&(b=E);var C=m.prototype=v.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,o,c){var s=d(t[i],t,a);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"==_typeof(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,c)}),(function(t){r("throw",t,o,c)})):e.resolve(l).then((function(t){u.value=t,o(u)}),(function(t){return r("throw",t,o,c)}))}c(s.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function k(e,r,n){var i=f;return function(a,o){if(i===p)throw Error("Generator is already running");if(i===y){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var c=n.delegate;if(c){var s=G(c,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var u=d(e,r,n);if("normal"===u.type){if(i=n.done?y:h,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function G(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,G(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=d(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(_typeof(e)+" is not iterable")}return _.prototype=m,i(C,"constructor",{value:m,configurable:!0}),i(m,"constructor",{value:_,configurable:!0}),_.displayName=u(m,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,s,"GeneratorFunction")),t.prototype=Object.create(C),t},e.awrap=function(t){return{__await:t}},S(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new O(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},S(C),u(C,s,"Generator"),u(C,o,(function(){return this})),u(C,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(x),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return c.type="throw",c.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],c=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}function asyncGeneratorStep(t,e,r,n,i,a,o){try{var c=t[a](o),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,i)}function _asyncToGenerator(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){asyncGeneratorStep(a,n,i,o,c,"next",t)}function c(t){asyncGeneratorStep(a,n,i,o,c,"throw",t)}o(void 0)}))}}function _defineProperty(t,e,r){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,_toPropertyKey(n.key),n)}}function _createClass(t,e,r){return e&&_defineProperties(t.prototype,e),r&&_defineProperties(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(t,e){if("object"!=_typeof(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function _callSuper(t,e,r){return e=_getPrototypeOf(e),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(e,r||[],_getPrototypeOf(t).constructor):e.apply(t,r))}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e)}function _wrapNativeSuper(t){var e="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(r,t)},_wrapNativeSuper(t)}function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));return r&&_setPrototypeOf(i,r.prototype),i}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_isNativeReflectConstruct=function(){return!!t})()}function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(t)}
1var FGC_STORAGE={get:function(t){try{return localStorage.getItem(t)}catch(t){return null}},set:function(t,e){try{localStorage.setItem(t,String(e))}catch(t){}},del:function(t){try{localStorage.removeItem(t)}catch(t){}}},FGC_KEYS={OPTED_OUT:"fg_no_gift",CHOSEN:"fg_gift_chosen",LAST_OFFER:"fg_last_offer_key",LAST_ELIGIBLE:"fg_last_eligible",HAS_OFFERS:"fg_has_offers"},FgcGlide=function(t){function e(){return _classCallCheck(this,e),_callSuper(this,e,arguments)}return _inherits(e,_wrapNativeSuper(HTMLElement)),_createClass(e,[{key:"_autoPerView",value:function(t){try{var e=this.querySelector(".glide__track"),r=(e?e.clientWidth:this.clientWidth)||0,n=this.querySelector(".fgc-card")||this.querySelector(".glide__slide"),i=n?n.getBoundingClientRect().width:220;(!i||i<=0)&&(i=220);var a=Math.max(1,Math.floor((r+t)/(i+t)));return Math.min(a,8)}catch(t){return 1}}},{key:"_bindResizeAuto",value:function(t){var e=this;if(!this._ro){var r=this.querySelector(".glide__track")||this;try{this._ro=new ResizeObserver((function(){if(e.glide){var r=e._autoPerView(t);try{e.glide.update({perView:r})}catch(t){}}})),this._ro.observe(r)}catch(t){}}}},{key:"connectedCallback",value:function(){this._mountWhenSlidesExist()}},{key:"disconnectedCallback",value:function(){if(this._mo){try{this._mo.disconnect()}catch(t){}this._mo=null}if(this.glide){try{this.glide.destroy()}catch(t){}this.glide=null}if(this._ro){try{this._ro.disconnect()}catch(t){}this._ro=null}this._initScheduled=!1}},{key:"_mountWhenSlidesExist",value:function(){var t=this;if(!this._mo){var e=this.querySelector(".glide__slides");this._tryInit(),e&&(this._mo=new MutationObserver((function(){return t._scheduleTryInit()})),this._mo.observe(e,{childList:!0}))}}},{key:"_scheduleTryInit",value:function(){var t=this;this._initScheduled||(this._initScheduled=!0,requestAnimationFrame((function(){t._initScheduled=!1,t._tryInit()})))}},{key:"_tryInit",value:function(){var t=this.querySelector(".glide__slides"),e=!!(t&&t.children&&t.children.length),r=t?t.children.length:0;if(e)if(this.glide)try{this.glide.update()}catch(t){}else window.Glide?(console.info("[FG] Inicializando slider Glide...",t.children.length),2===r?(this.glide=new Glide(this,{type:"slider",perView:r,gap:16,keyboard:!0,bound:!0,rewind:!1,perTouch:1,peek:{before:24,after:24},perMove:1,animationDuration:260,breakpoints:{414:{gap:8},360:{perView:1,gap:8,peek:{before:16,after:16}}}}),this.glide.mount()):r>2&&(this.glide=new Glide(this,{type:"slider",perView:3,gap:16,keyboard:!0,bound:!0,rewind:!1,perTouch:1,perMove:1,peek:{before:24,after:24},animationDuration:260,breakpoints:{600:{perView:2,gap:12},414:{perView:2,gap:8},360:{perView:1,gap:8,peek:{before:16,after:16}}}}),this.glide.mount())):console.warn("[FG] Glide não disponÃvel.")}}])}(),FreeGiftsModal=function(t){function e(){var t;return _classCallCheck(this,e),_defineProperty(t=_callSuper(this,e),"_onShowSlider",(function(e){var r=e&&e.detail&&(e.detail.payload||e.detail)||{},n=t._buildOfferKey(r),i=FGC_STORAGE.get(FGC_KEYS.LAST_OFFER);n&&n!==i&&(FGC_STORAGE.del(FGC_KEYS.OPTED_OUT),FGC_STORAGE.del(FGC_KEYS.CHOSEN),FGC_STORAGE.set(FGC_KEYS.LAST_OFFER,n));var a="1"===FGC_STORAGE.get(FGC_KEYS.OPTED_OUT),o="1"===FGC_STORAGE.get(FGC_KEYS.CHOSEN);if(t._suppressAutoOpenOnce)return t._suppressAutoOpenOnce=!1,void t._render(r);a||o?t._cachePayloadIfRenderable(r):(t._render(r),t._openModal())})),_defineProperty(t,"_onEsc",(function(e){"Escape"===e.key&&t._isOpen()&&t._openConfirm()})),_defineProperty(t,"_onVariantChange",(function(e){var r=e.target.closest&&e.target.closest(".fgc-select");if(r&&t.contains(r)){var n=r.closest("[data-fgc-card]"),i=n&&n.querySelector(".fgc-thumb"),a=r.selectedOptions&&r.selectedOptions[0],o=a&&a.dataset.thumb;i&&o&&(i.src=o),n&&"true"===n.getAttribute("aria-checked")&&(t.selectedVariant={id:Number((null==a?void 0:a.value)||0),offerId:(null==a?void 0:a.dataset.offer)||"",cardEl:n},t._toggleActionButton())}})),_defineProperty(t,"_onClick",(function(e){if(t.contains(e.target)){if(e.target===t.$modal)return e.preventDefault(),void t._openConfirm();if(e.target.closest("[data-fgc-decline]"))return e.preventDefault(),void t._openConfirm();if(e.target.closest("[data-fgc-confirm-decline]")){t._trackOptOut("confirm_decline"),FGC_STORAGE.set(FGC_KEYS.OPTED_OUT,"1"),FGC_STORAGE.del(FGC_KEYS.CHOSEN);try{document.dispatchEvent(new CustomEvent("fgc:eligibility-changed",{detail:{eligible:!0,hasGift:!1,source:"optout"}}))}catch(t){}return t._closeConfirm(),void t._closeModal()}if(e.target.closest("[data-fgc-confirm-keep]"))return t._closeConfirm(),void t._focusFirst();var r=e.target.closest("[data-fgc-card]");if(r)return r.classList.contains("fgc-card--locked")||"true"===r.getAttribute("aria-disabled")?void e.preventDefault():void t._selectCard(r);e.target.closest("[data-fgc-add-selected]")&&t._addSelectedGift(e.target.closest("[data-fgc-add-selected]"))}})),_defineProperty(t,"_onBannerClick",(function(e){try{var r;null==e||null===(r=e.preventDefault)||void 0===r||r.call(e)}catch(t){}t.openGiftsPopup(!0)})),_defineProperty(t,"_bannerOnEligibilityChanged",(function(e){try{if(!t.$banner||!e||!e.detail)return;"boolean"==typeof e.detail.eligible&&(t.$banner.dataset.bogosEligible=String(e.detail.eligible),t._bannerUpdateVisibility())}catch(t){}}
1)),_defineProperty(t,"_bannerOnCartUpdated",function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(r){var n,i,a,o,c,s,u,l,d,f,h,p,y;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.$banner){e.next=2;break}return e.abrupt("return");case 2:if(n=null,e.prev=3,!(n=r&&((null===(i=r.detail)||void 0===i?void 0:i.cart)||r.detail)||null)&&r&&r.detail&&r.detail.response&&r.detail.response.cart&&(n=r.detail.response.cart),n&&"object"===_typeof(n)&&Array.isArray(n.items)){e.next=13;break}return e.next=9,fetch("/cart.js",{credentials:"same-origin"});case 9:return a=e.sent,e.next=12,a.json();case 12:n=e.sent;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(3),n={items:[],item_count:0};case 18:try{if(o=n.items||[],c=o.some((function(t){return t.properties&&"true"===t.properties._is_gift})),t.$banner.dataset.cartHasGift=String(c),!c){s="1"===FGC_STORAGE.get(FGC_KEYS.CHOSEN);try{FGC_STORAGE.del(FGC_KEYS.CHOSEN)}catch(t){}s&&(t.selectedVariant=null),t._resetActionButton()}if(u=null,l=t.$banner.getAttribute("data-eligibility-min-qty"),d=l?parseInt(l,10):null,f=t.$banner.getAttribute("data-eligibility-product-id"),h=f?String(f):null,Number.isInteger(d)&&(h?(p=o.filter((function(t){var e;return String(t.product_id||t.productId||(null===(e=t.product)||void 0===e?void 0:e.id))===h})).reduce((function(t,e){return t+(Number(e.quantity)||0)}),0),u=p>=d):(y=Number(n.item_count||o.reduce((function(t,e){return t+(Number(e.quantity)||0)}),0)),u=y>=d)),null===u&&(t.$banner.hasAttribute("data-bogos-eligible")||(u=Number(n.item_count||0)>=4)),null!==u){t.$banner.dataset.bogosEligible=String(!!u);try{FGC_STORAGE.set(FGC_KEYS.LAST_ELIGIBLE,u?"1":"0")}catch(t){}try{document.dispatchEvent(new CustomEvent("fgc:eligibility-changed",{detail:{eligible:!!u,hasGift:!!c,source:"cart-update"}}))}catch(t){}}}catch(t){}t._bannerUpdateVisibility();case 20:case"end":return e.stop()}}),e,null,[[3,15]])})));return function(t){return e.apply(this,arguments)}}()),t.$modal=null,t.$items=null,t.$confirm=null,t.payload=null,t.selectedVariant=null,t.lastFocused=null,t.$banner=null,t._cartEvents=["cart:updated","cart-updated","cart:change","cart:changed"],t._bannerMO=null,t._refreshingCart=!1,t._pendingCartRefresh=!1,t._suppressAutoOpenOnce=!1,t._probingOffers=!1,t.requiresLogin=!1,t.customerLoggedIn=!1,t._addButtonDefaultText="Selecionar brinde",t}return _inherits(e,_wrapNativeSuper(HTMLElement)),_createClass(e,[{key:"connectedCallback",value:function(){this.$modal=this.querySelector("#fgc-modal"),this.$items=this.querySelector("#fgc-items"),this.$confirm=this.querySelector("#fgc-confirm");var t=this.querySelector("[data-fgc-add-selected]");t&&(this._addButtonDefaultText=(t.textContent||"").trim()||this._addButtonDefaultText),this._readLoginGateConfig(),document.addEventListener("fg-gifts:show-slider",this._onShowSlider),document.addEventListener("bogos:show-slider",this._onShowSlider),document.addEventListener("fg-gifts:show-slider",(function(t){try{document.dispatchEvent(new CustomEvent("fgc:eligibility-changed",{detail:{eligible:!0,source:"bogos"}}))}catch(t){}})),document.addEventListener("keydown",this._onEsc),document.addEventListener("change",this._onVariantChange,!0),document.addEventListener("click",this._onClick,!0),this._initBannerBridge(),customElements.get("fgc-glide")||customElements.define("fgc-glide",FgcGlide)}},{key:"disconnectedCallback",value:function(){var t=this;document.removeEventListener("fg-gifts:show-slider",this._onShowSlider),document.removeEventListener("bogos:show-slider",this._onShowSlider),document.removeEventListener("keydown",this._onEsc),document.removeEventListener("change",this._onVariantChange,!0),document.removeEventListener("click",this._onClick,!0);try{this.$banner&&this.$banner.removeEventListener("click",this._onBannerClick),this._cartEvents&&this._cartEvents.forEach((function(e){document.removeEventListener(e,t._bannerOnCartUpdated),window.removeEventListener(e,t._bannerOnCartUpdated)})),document.removeEventListener("fgc:eligibility-changed",this._bannerOnEligibilityChanged);try{this._bannerMO&&(this._bannerMO.disconnect(),this._bannerMO=null)}catch(t){}}catch(t){}}},{key:"_probeOffersOnce",value:(o=_asyncToGenerator(_regeneratorRuntime().mark((function t(){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._probingOffers){t.next=2;break}return t.abrupt("return");case 2:return this._probingOffers=!0,t.prev=3,t.next=6,this._probeOffers();case 6:return t.prev=6,this._probingOffers=!1,t.finish(6);case 9:case"end":return t.stop()}}),t,this,[[3,,6,9]])}))),function(){return o.apply(this,arguments)})},{key:"_probeOffers",value:(a=_asyncToGenerator(_regeneratorRuntime().mark((function t(){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this._suppressAutoOpenOnce=!0;try{document.dispatchEvent(new CustomEvent("fg-gifts:request-slider"))}catch(t){}try{document.dispatchEvent(new CustomEvent("bogos:request-slider"))}catch(t){}return t.next=5,new Promise((function(t){var e=!1,r=function(r){if(!1===r)try{FGC_STORAGE.set(FGC_KEYS.HAS_OFFERS,"0")}catch(t){}e||(e=!0,t())},n=setTimeout((function(){document.removeEventListener("fg-gifts:show-sli
1der",i),r(!1)}),3e3),i=function(){clearTimeout(n),document.removeEventListener("fg-gifts:show-slider",i),r(!0)};document.addEventListener("fg-gifts:show-slider",i,{once:!0})}));case 5:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)})},{key:"_initBannerBridge",value:function(){var t=this,e=document.getElementById("fgc-cart-banner");if(this._bindBannerEl(e),this._bannerMO)try{this._bannerMO.disconnect()}catch(t){}try{this._bannerMO=new MutationObserver((function(){var e=document.getElementById("fgc-cart-banner");e&&e!==t.$banner&&t._bindBannerEl(e)})),this._bannerMO.observe(document.body,{childList:!0,subtree:!0})}catch(t){}this._bannerOnCartUpdated()}},{key:"_bindBannerEl",value:function(t){var e=this;if(t!==this.$banner){try{this.$banner&&this.$banner.removeEventListener("click",this._onBannerClick)}catch(t){}this.$banner=t||null;try{this.$banner&&!this.$banner.style.cursor&&(this.$banner.style.cursor="pointer")}catch(t){}this.$banner&&(this.$banner.hasAttribute("hidden")&&(this.$banner.hidden=!0),this.$banner.addEventListener("click",this._onBannerClick),document.addEventListener("fgc:eligibility-changed",this._bannerOnEligibilityChanged,{passive:!0}),this._cartEvents.forEach((function(t){document.addEventListener(t,e._bannerOnCartUpdated,{passive:!0}),window.addEventListener(t,e._bannerOnCartUpdated,{passive:!0})})))}}},{key:"_bannerUpdateVisibility",value:function(){if(this.$banner){var t="true"===this.$banner.dataset.bogosEligible,e="true"===this.$banner.dataset.cartHasGift,r="1"===FGC_STORAGE.get(FGC_KEYS.OPTED_OUT),n=this.$banner.getAttribute("data-require-decline"),i=!(t&&!e&&(r||!(null==n||!("false"===n||"0"===n))));this.$banner.hidden=i,i?this.$banner.hasAttribute("hidden")||this.$banner.setAttribute("hidden",""):this.$banner.hasAttribute("hidden")&&this.$banner.removeAttribute("hidden")}}},{key:"_render",value:function(t){var e=this,r=this._extractGifts(t);if(this._applyItemsCount(r.length),r.length)if(this.payload=t,this._shouldLockForLogin())this._renderLoginLocked(t,r);else{var n=this.querySelector(".fgc-actions-bar");n&&(n.hidden=!1);var i=this.querySelector("[data-fgc-decline]");i&&(i.hidden=!1),this.$items.innerHTML=r.map((function(t){var r=t.gift,n=t.offerId;return e._renderCard(r,n)})).join(""),this._applyItemsCount(r.length),this.selectedVariant=null,this._resetActionButton()}else console.warn("[FG] Nenhum gift no payload.")}},{key:"_renderCard",value:function(t,e){var r=this,n=(t.variants||[]).filter((function(e){return!r._shouldHideVariantOption(t,e)})),i=n.length?n:t.variants||[],a=i[0]||t.variants&&t.variants[0]||{id:null,title:"Padrão",price:0,original_price:0,thumbnail:t.thumbnail||""},o=Number(a.original_price)>0?'<div class="fgc-price"><del>'.concat(this._money(a.original_price),"</del><span>").concat(this._money(a.price),"</span></div>"):'<div class="fgc-price">'.concat(this._money(a.price),"</div>"),c=i.map((function(r){var n=r.thumbnail||t.thumbnail||"";return'<option value="'.concat(r.id||"",'" data-offer="').concat(e||t.belongs_to_offer||"",'" data-thumb="').concat(n,'">').concat(r.title||"Padrão","</option>")})).join(""),s=a.thumbnail||t.thumbnail?'<img class="fgc-thumb" src="'.concat(a.thumbnail||t.thumbnail,'" alt="').concat(t.title,'" onerror="this.style.display=\'none\'">'):'<div class="fgc-thumb fgc-thumb--placeholder" aria-hidden="true"></div>';return'\n <li class="glide__slide">\n <div class="fgc-card" role="radio" aria-checked="false" tabindex="0" data-fgc-card data-offer="'.concat(e||t.belongs_to_offer||"",'">\n ').concat(s,'\n <div class="fgc-card-body">\n <div class="fgc-title-sm">').concat(t.title,"</div>\n ").concat(o,"\n ").concat(c?'<div class="fgc-variants"><select class="fgc-select">'.concat(c,"</select></div>"):"","\n </div>\n </div>\n </li>\n ")}},{key:"_shouldHideVariantOption",value:function(t,e){try{var r=String((null==e?void 0:e.variant_shopify_id)||(null==e?void 0:e.id)||(null==e?void 0:e.variantId)||"").split("/").pop().trim();return!(!r||!window.FGC_HIDE_VARIANT_IDS||!0!==window.FGC_HIDE_VARIANT_IDS[r])}catch(t){return!1}}},{key:"_openModal",value:function(){this.lastFocused=document.activeElement,document.body.style.position="fixed",document.body.style.width="100%",document.body.style.top="-".concat(window.scrollY,"px"),this.$modal.setAttribute("aria-hidden","false"),this._focusFirst()}},{key:"_closeModal",value:function(){var t=Math.abs(parseInt(document.body.style.top||"0",10))||0;document.body.style.position="",document.body.style.width="",document.body.style.top="",window.scrollTo(0,t),this.$modal.setAttribute("aria-hidden","true"),this.lastFocused&&"function"==typeof this.lastFocused.focus&&this.lastFocused.focus()}},{key:"_openConfirm",value:function(){this.$confirm.setAttribute("aria-hidden","false"),this._focusConfirm()}},{key:"_closeConfirm",value:function(){this.$confirm.setAttribute("aria-hidden","true")}},{key:"_isOpen",value:function(){return"false"===this.$modal.getAttribute("aria-hidden")}},{key:"_focusFirst",value:function(){(this.querySelector("#fgc-title")||this.$modal).focus()}},{key:"_focusConfirm",value:function(){(this.$confirm.querySelector("[data-fgc-confirm-decline]")||this.$confirm).focus()}},{key:"_selectCard",value:function(t){if(!t.classList.contains("fgc-card--locked")&&"true"!==t.getAttribute("aria-disabled")&&!this._shouldLockForLogin()){this.querySelectorAll('.fgc-card[aria-checked="true"]').forEach((function(t){return t.setAttribute("aria-checked","fal
1se")})),t.setAttribute("aria-checked","true");var e=t.querySelector(".fgc-select"),r=e?e.selectedOptions[0]:null;this.selectedVariant={id:Number((null==r?void 0:r.value)||0),offerId:(null==r?void 0:r.dataset.offer)||t.getAttribute("data-offer")||"",cardEl:t},this._toggleActionButton()}}},{key:"_toggleActionButton",value:function(){var t=this.querySelector("[data-fgc-add-selected]");t&&(t.disabled=!(this.selectedVariant&&this.selectedVariant.id))}},{key:"_resetActionButton",value:function(){var t=this.querySelector("[data-fgc-add-selected]");t&&(t.textContent=this._addButtonDefaultText||"Selecionar brinde",this._toggleActionButton())}},{key:"_addSelectedGift",value:function(t){var e=this;if(!this._shouldLockForLogin()&&this.payload&&"function"==typeof this.payload.addGiftToCartFunc&&this.selectedVariant&&this.selectedVariant.id){var r=t.textContent;t.disabled=!0,t.textContent="Adicionando...";var n=this.selectedVariant.offerId?this.payload.addGiftToCartFunc(this.selectedVariant.id,1,this.selectedVariant.offerId):this.payload.addGiftToCartFunc(this.selectedVariant.id,1);Promise.resolve(n).then(_asyncToGenerator(_regeneratorRuntime().mark((function r(){return _regeneratorRuntime().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:FGC_STORAGE.set(FGC_KEYS.CHOSEN,"1"),FGC_STORAGE.del(FGC_KEYS.OPTED_OUT);try{document.dispatchEvent(new CustomEvent("fgc:eligibility-changed",{detail:{eligible:!1,hasGift:!0,source:"gift-added"}}))}catch(t){}return t.textContent="Adicionado â",r.prev=4,r.next=7,e._refreshCartDrawer();case 7:r.next=11;break;case 9:r.prev=9,r.t0=r.catch(4);case 11:setTimeout((function(){return e._closeModal()}),500);case 12:case"end":return r.stop()}}),r,null,[[4,9]])})))).catch((function(e){console.error("[FG] erro ao adicionar brinde:",e),t.textContent="Tentar novamente"})).finally((function(){t.disabled=!1,setTimeout((function(){e._isOpen()&&"1"!==FGC_STORAGE.get(FGC_KEYS.CHOSEN)&&(t.textContent=r)}),1500)}))}}},{key:"_openCartDrawer",value:(i=_asyncToGenerator(_regeneratorRuntime().mark((function t(){var e,r,n,i,a;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{document.dispatchEvent(new CustomEvent("cart:open",{bubbles:!0}))}catch(t){}try{window.dispatchEvent(new CustomEvent("cart:open"))}catch(t){}if(t.prev=2,!window.CartDrawer||"function"!=typeof window.CartDrawer.open){t.next=6;break}return window.CartDrawer.open(),t.abrupt("return");case 6:t.next=10;break;case 8:t.prev=8,t.t0=t.catch(2);case 10:if(t.prev=10,!window.theme||!window.theme.cart||"function"!=typeof window.theme.cart.open){t.next=14;break}return window.theme.cart.open(),t.abrupt("return");case 14:t.next=18;break;case 16:t.prev=16,t.t1=t.catch(10);case 18:e=document.querySelectorAll('[data-open-cart], [data-cart-open], [data-action="open-cart"], [href="#cart"]'),r=_createForOfIteratorHelper(e),t.prev=20,r.s();case 22:if((n=r.n()).done){t.next=34;break}if(i=n.value,t.prev=24,"function"!=typeof i.click){t.next=28;break}return i.click(),t.abrupt("return");case 28:t.next=32;break;case 30:t.prev=30,t.t2=t.catch(24);case 32:t.next=22;break;case 34:t.next=39;break;case 36:t.prev=36,t.t3=t.catch(20),r.e(t.t3);case 39:return t.prev=39,r.f(),t.finish(39);case 42:if(a=document.querySelector("[data-cart-drawer], #CartDrawer, cart-drawer, .cart-drawer")){try{a.classList.add("is-open","active","open","animate")}catch(t){}try{document.body.classList.add("overflow-hidden","cart-open")}catch(t){}}case 44:case"end":return t.stop()}}),t,null,[[2,8],[10,16],[20,36,39,42],[24,30]])}))),function(){return i.apply(this,arguments)})},{key:"_refreshCartDrawer",value:(n=_asyncToGenerator(_regeneratorRuntime().mark((function t(){var e,r,n,i,a,o,c,s,u,l,d,f,h,p,y;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._refreshingCart){t.next=3;break}return this._pendingCartRefresh=!0,t.abrupt("return");case 3:return this._refreshingCart=!0,this._pendingCartRefresh=!1,e=null,t.prev=6,t.next=9,fetch("/cart.js",{credentials:"same-origin"});case 9:return r=t.sent,t.next=12,r.json();case 12:e=t.sent,t.next=18;break;case 15:t.prev=15,t.t0=t.catch(6),e=null;case 18:if(t.prev=18,!(n=document.querySelector("cart-drawer"))||"function"!=typeof n.updateCart){t.next=24;break}try{n.updateCart()}catch(t){}t.next=45;break;case 24:if(i=document.querySelector("[data-cart-drawer], #CartDrawer, cart-drawer, .cart-drawer"),a=i?Array.from(i.querySelectorAll("[data-section-id]")):[],o=new Set(a.map((function(t){return t.getAttribute("data-section-id")}
1)).filter(Boolean)),["cart-drawer","cart-icon-bubble"].forEach((function(t){return o.add(t)})),(document.body.dataset.cartSections||document.body.getAttribute("data-cart-sections")||"").split(",").map((function(t){return t.trim()})).filter(Boolean).forEach((function(t){return o.add(t)})),!(c=Array.from(o)).length){t.next=45;break}return s="".concat(window.location.pathname,"?sections=").concat(encodeURIComponent(c.join(","))),t.prev=33,t.next=36,fetch(s,{credentials:"same-origin"});case 36:return u=t.sent,t.next=39,u.json();case 39:l=t.sent,c.forEach((function(t){var e=l[t];if(e){var r=document.querySelector('[data-section-id="'.concat(CSS.escape(t),'"]'));if(r||(r=document.getElementById(t)),r){var n=r.getBoundingClientRect();r.style.minHeight=n.height+"px";try{var i=(new DOMParser).parseFromString(e,"text/html"),a=i.querySelector(".shopify-section")||i.body;r.innerHTML=a.innerHTML}catch(t){r.innerHTML=e}r.style.minHeight="";try{r.dispatchEvent(new CustomEvent("section:load",{bubbles:!0}))}catch(t){}}}})),t.next=45;break;case 43:t.prev=43,t.t1=t.catch(33);case 45:e&&(d=Number.isFinite(parseInt(e.item_count,10))?parseInt(e.item_count,10):0,f=Number(e.total_price||0),h=f>=1e3?f/100:f,p=function(){try{return h.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})}catch(t){return"R$ "+h.toFixed(2).replace(".",",")}}(),y=["[data-cart-subtotal]",".cart-subtotal",".header__cart-subtotal"],["[data-cart-count]","[data-cart-items-count]",".cart-count",".header__cart-count",".js-cart-count"].forEach((function(t){return document.querySelectorAll(t).forEach((function(t){try{t.textContent=String(d)}catch(t){}try{t.setAttribute("data-count",String(d))}catch(t){}}))})),y.forEach((function(t){return document.querySelectorAll(t).forEach((function(t){try{t.textContent=String(p)}catch(t){}}))}))),this._broadcastCartUpdate(e);case 47:if(t.prev=47,this._refreshingCart=!1,!this._pendingCartRefresh){t.next=58;break}return this._pendingCartRefresh=!1,t.prev=51,t.next=54,this._refreshCartDrawer();case 54:t.next=58;break;case 56:t.prev=56,t.t2=t.catch(51);case 58:return t.finish(47);case 59:case"end":return t.stop()}}),t,this,[[6,15],[18,,47,59],[33,43],[51,56]])}))),function(){return n.apply(this,arguments)})},{key:"_trackOptOut",value:function(t){try{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"gift_opt_out",context:t||"confirm"})}catch(t){}try{var e;null===(e=window.ShopifyAnalytics)||void 0===e||null===(e=e.lib)||void 0===e||e.track("Gift Opt Out",{context:t||"confirm"})}catch(t){}try{document.dispatchEvent(new CustomEvent("fgc:opt_out",{detail:{context:t||"confirm"}}))}catch(t){}}},{key:"_broadcastCartUpdate",value:function(t){try{var e=t?{cart:t}:{};["cart:updated","cart-updated","cart:change","cart:changed","cart:refresh","cart-drawer:updated","cart-drawer:change","ajaxCart:afterUpdate"].forEach((function(t){try{document.dispatchEvent(new CustomEvent(t,{detail:e,bubbles:!0}))}catch(t){}try{window.dispatchEvent(new CustomEvent(t,{detail:e}))}catch(t){}}));try{window.CartDrawer&&"function"==typeof window.CartDrawer.refresh&&window.CartDrawer.refresh()}catch(t){}try{window.theme&&window.theme.cart&&"function"==typeof window.theme.cart.getCart&&window.theme.cart.getCart()}catch(t){}try{"function"==typeof window.refreshCart&&window.refreshCart()}catch(t){}}catch(t){}}},{key:"_money",value:function(t){var e=Number(t||0),r=e>=1e3?e/100:e;try{return r.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})}catch(t){return"R$ "+r.toFixed(2).replace(".",",")}}},{key:"_cachePayloadIfRenderable",value:function(t){try{var e=this._extractGifts(t);return this._applyItemsCount(e.length),e.length?(this.payload=t,!0):!1}catch(t){return!1}}},{key:"_extractGifts",value:function(t){var e=[],r=new WeakSet,n=function(t,r){if(t){var n=(Array.isArray(t.variants)?t.variants:[]).map((function(t){return{id:Number(t.variant_shopify_id||t.id||t.variantId||0),variant_shopify_id:t.variant_shopify_id||t.id||t.variantId||"",variantId:t.variantId||t.variant_shopify_id||t.id||"",title:t.variant_title||t.title||t.name||"Padrão",price:Number(t.price||t.discounted_price||0),original_price:Number(t.original_price||t.compare_at_price||0),thumbnail:t.thumbnail||t.image||t.featured_image&&(t.featured_image.url||t.featured_image.src)||""}})).filter((function(t){return t.id}));e.push({gift:{title:t.title||t.product_title||"Gift",thumbnail:t.thumbnail||t.image||n[0]&&n[0].thumbnail||"",variants:n.length?n:[{id:0,title:"Padrão",price:0,original_price:0,thumbnail:""}],belongs_to_offer:t.belongs_to_offer||r||""},offerId:t.belongs_to_offer||r||""})}},i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t&&"object"===_typeof(t)&&!r.has(t))if(r.add(t),Array.isArray(t))t.forEach((function(t){return i(t,e)}));else{var a=t.offer_id||t.offerId||t.id||e;
1Array.isArray(t.gifts)&&t.gifts.forEach((function(t){return n(t,a)})),Array.isArray(t.giftsOffer)&&t.giftsOffer.forEach((function(t){t&&Array.isArray(t.gifts)?t.gifts.forEach((function(e){return n(e,t.id||a)})):n(t,a)})),["items","data","list","children","offers","products","available_gifts","availableGifts","eligible_gifts","eligibleGifts","gifts_list","gift_list","giftList","rewards","choices"].forEach((function(e){return t[e]&&i(t[e],a)}))}};return i(t),e}},{key:"_readLoginGateConfig",value:function(){this.requiresLogin="true"===this.dataset.fgcRequiresLogin,this.customerLoggedIn="true"===this.dataset.fgcCustomerLoggedIn}},{key:"_shouldLockForLogin",value:function(){return!0===this.requiresLogin&&!1===this.customerLoggedIn}},{key:"_renderLoginLocked",value:function(t,e){var r=Array.isArray(e)?e:this._extractGifts(t);if(this._applyItemsCount(r.length),r.length){this.payload=t,this.selectedVariant=null;var n=this.querySelector("[data-fgc-login-locked-template]");if(n&&n.content){var i=document.createDocumentFragment();r.forEach((function(t){var e=t.gift,r=n.content.cloneNode(!0),a=e.title||"Brinde desbloqueado",o=e.thumbnail||"",c=r.querySelector("[data-fgc-locked-title]"),s=r.querySelector("[data-fgc-locked-image]");if(c&&(c.textContent=a),s)if(s.textContent="",o){var u=document.createElement("img");u.className="fgc-thumb fgc-thumb--blurred",u.src=o,u.alt=a,u.addEventListener("error",(function(){u.style.display="none"}),{once:!0}),s.appendChild(u)}else{var l=document.createElement("div");l.className="fgc-thumb fgc-thumb--placeholder fgc-thumb--blurred",l.setAttribute("aria-hidden","true"),s.appendChild(l)}i.appendChild(r)})),this.$items.innerHTML="",this.$items.appendChild(i),this._applyItemsCount(r.length);var a=this.querySelector(".fgc-actions-bar");a&&(a.hidden=!1);var o=this.querySelector("[data-fgc-add-selected]");o&&(o.disabled=!0)}else console.warn("[FG] Template de login bloqueado não encontrado.")}else console.warn("[FG] Nenhum gift no payload.")}},{key:"_buildOfferKey",value:function(t){try{var e=this._extractGifts(t);if(!e.length)return"";var r=e.map((function(t){return(t.offerId||"")+"|"+(t.gift&&t.gift.title||"")})).join(",");return String(r).slice(0,512)}catch(t){return""}}},{key:"openGiftsPopup",value:(r=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var r=this;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("1"!==FGC_STORAGE.get(FGC_KEYS.CHOSEN)){t.next=3;break}return t.abrupt("return");case 3:if(!this.payload){t.next=7;break}return this._render(this.payload),this._openModal(),t.abrupt("return");case 7:this._suppressAutoOpenOnce=!1;try{document.dispatchEvent(new CustomEvent("fg-gifts:request-slider"))}catch(t){}try{document.dispatchEvent(new CustomEvent("bogos:request-slider"))}catch(t){}try{"function"==typeof window.openGiftsPopup&&window.openGiftsPopup(!0)}catch(t){}try{window.BOGOS&&"function"==typeof window.BOGOS.open&&window.BOGOS.open()}catch(t){}return t.next=14,new Promise((function(t){var e=!1,n=function(){e||(e=!0,t())},i=function(){document.removeEventListener("fg-gifts:show-slider",o),document.removeEventListener("bogos:show-slider",o)},a=setTimeout((function(){i(),n()}),4e3),o=function(t){clearTimeout(a),i();var e=t&&t.detail&&(t.detail.payload||t.detail)||{};r._render(e),r._openModal(),n()};document.addEventListener("fg-gifts:show-slider",o,{once:!0}),document.addEventListener("bogos:show-slider",o,{once:!0})}));case 14:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"_applyItemsCount",value:function(t){try{var e,r=Math.max(0,Number(t||0));if(!this.$modal)return;this.$modal.setAttribute("data-fgc-count",String(r));var n=[];this.$modal.classList.forEach((function(t){(t.startsWith("fgc-count-")||t.startsWith("fgc-has-"))&&n.push(t)})),n.length&&(e=this.$modal.classList).remove.apply(e,n),this.$modal.classList.add("fgc-count-".concat(r))}catch(t){}}}]);var r,n,i,a,o}();customElements.get("freegifts-modal")||customElements.define("freegifts-modal",FreeGiftsModal); 2//# sourceMappingURL=freegifts-modal.js.map
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.