Files
Obsidian/Edge Shopping/2.1.114.0/edge_driver.js
T

1 line
1.0 MiB
JavaScript
Raw Normal View History

2026-11-06 08:29:11 +08:00
!function(){"use strict";var e={5062:function(e,t,o){var r=o(2370),a=o(9247),i=o(5383);class n{static Create(e){let t=JSON.parse(atob(e));const o=[],r=new Map,n=t?.[0]?.Group;if(n){let e=n;for(const o of t)if(o){const t=o.Group;if(t&&a.ZP.IsOnPage(o.PageUrl,location.pathname)){e=t;break}}t=t.map((t=>{if(t.Group===e)return t}))}for(const e of t)if(e){const t=e.Type;t&&!r.has(t)&&(o.push(t),r.set(t,new i.Z(e.PageUrl,t,e.checkoutElements)))}return{map:r,array:o}}constructor(e){if((0,r.Z)(this,"DomainName",void 0),(0,r.Z)(this,"AllcheckoutCompletionPages",void 0),(0,r.Z)(this,"AllPageTypeArr",void 0),(0,r.Z)(this,"AllCheckoutCompletionPagesStr",void 0),(0,r.Z)(this,"IsExpressCheckoutEnabled",void 0),(0,r.Z)(this,"CheckoutPageUrl",void 0),e){this.DomainName=e.domainName,this.CheckoutPageUrl=e.checkoutPageUrl,this.IsExpressCheckoutEnabled=e.isExpressCheckoutEnabled;const t=e.allCheckoutCompletionPagesStr;if(this.AllCheckoutCompletionPagesStr=t,t){const{map:e,array:o}=n.Create(t);this.AllcheckoutCompletionPages=e,this.AllPageTypeArr=o}}}}(0,r.Z)(n,"PageTypeArr",[]),t.Z=n},5902:function(e,t,o){var r=o(2370);t.Z=class{constructor(e,t,o,a,i,n,s,c,l,d,u,m,h){(0,r.Z)(this,"Name",void 0),(0,r.Z)(this,"Type",void 0),(0,r.Z)(this,"Value",void 0),(0,r.Z)(this,"IsMandatory",void 0),(0,r.Z)(this,"Format",void 0),(0,r.Z)(this,"WaitForVisible",void 0),(0,r.Z)(this,"WaitForNotDisabled",void 0),(0,r.Z)(this,"WaitBefore",void 0),(0,r.Z)(this,"WaitAfter",void 0),(0,r.Z)(this,"WaitForNotVisible",void 0),(0,r.Z)(this,"NotAlwaysShown",void 0),(0,r.Z)(this,"DynamicFetch",void 0),(0,r.Z)(this,"ShouldValue",void 0),this.Name=e,this.Type=t,this.Value=o,this.IsMandatory=a,this.Format=i,this.WaitForVisible=n,this.WaitForNotDisabled=s,this.WaitBefore=c,this.WaitAfter=l,this.WaitForNotVisible=d,this.NotAlwaysShown=u,this.DynamicFetch=m,this.ShouldValue=h}}},5383:function(e,t,o){var r=o(2370),a=o(5902);t.Z=class{constructor(e,t,o){if((0,r.Z)(this,"PageUrl",void 0),(0,r.Z)(this,"Type",void 0),(0,r.Z)(this,"CheckoutElements",void 0),this.PageUrl=e,this.Type=t,this.CheckoutElements=new Map,o)for(const e of o)if(e){const t=e.Name;let o=e.Value;t&&this.CheckoutElements.set(t,new a.Z(t,e.Type,o,e.IsMandatory,e.Format,e.WaitForVisible,e.WaitForNotDisabled,e.WaitBefore,e.WaitAfter,e.WaitForNotVisble,e.NotAlwaysShown,e.DynamicFetch,e.ShouldValue))}}}},1775:function(e,t,o){o.d(t,{ZQ:function(){return p},tW:function(){return u},JL:function(){return g},st:function(){return S},Oh:function(){return h}});var r=o(4872),a=o(1656),i=o(3557),n=o(6529),s=JSON.parse('{"Vf":{"I":{"logBlockRules":[{"blockedByMatchingKeyValuePairs":[{"dotPathForJsonData":true,"dotPath":"EdgeFlyoutStatus","value":"ProductTrackingOutOfStockExtraction"}]},{"blockedByMatchingKeyValuePairs":[{"dotPathForJsonData":true,"dotPath":"EdgeFlyoutStatus","value":"PageHandlerInfo"},{"dotPathForJsonData":false,"dotPath":"Message","value":"resize_iframe"}]},{"blockedByMatchingKeyValuePairs":[{"dotPathForJsonData":true,"dotPath":"Status","value":"Popup origination blocked due to feature specific logic"},{"dotPathForJsonData":false,"dotPath":"Message","value":"BLOCKED POPUPORIGINATION"}]},{"blockedByMatchingKeyValuePairs":[{"dotPathForJsonData":false,"dotPath":"EventType","value":"CheckoutPageValidation"},{"dotPathForJsonData":false,"dotPath":"Message","value":"Checkout Page is Invalid - Invalid Selectors"}]}]}}}');let c=function(e){return e.Vulnerable="Vulnerable",e.Campaign="Campaign",e}({});const l=new Map([[c.Vulnerable,r.H.shoppingCohortsVulnerable],[c.Campaign,r.H.shoppingCohortsReclaimed]]);function d(e){if(!a.R.isExperimentActive(e))return[];try{const t=a.R.getMultipleVariants(e);let o=a.R.getVariantStringValue(t,"allowedCohortIds","");return""===o&&(o=a.R.getVariantName(e)||""),""===o?[]:o.split(",").map((e=>parseInt(e)))}catch{return[]}}function u(){const e=new Set([]);for(const t of l.values())d(t)?.forEach((t=>e.add(t)));return e}function m(e,t){if(t?.cohortsConfig)for(const o of t.cohortsConfig)if(void 0!==o.enabledPopupOriginations&&void 0!==o.cohortId&&e.has(o.cohortId))return o.enabledPopupOrigina