PageSourceSearch

https://www.swimoutlet.com/cdn/shop/t/317/assets/se-3859-hash-8db5000f70039c7c33f3.min.js

js swimoutlet.com collected 2026-09-24 08:47:06 UTC 6,860 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkswimoutlet_shopify_theme=self.webpackChunkswimoutlet_shopify_theme||[]).push([[3859],{63859:(t,e,i)=>{i.d(e,{Bn:()=>l,G_:()=>y,H1:()=>h,Hf:()=>u,O6:()=>f,Ot:()=>P,SF:()=>p,TX:()=>C,ZZ:()=>g,aS:()=>z,cG:()=>a,g6:()=>s,ie:()=>_,j2:()=>m,rt:()=>c,tC:()=>S,vk:()=>d});var n=i(411),r=i(57549),o=i(91549);function l(t,e){if(!e||!Array.isArray(e))return null;let i=e.find(e=>"ELEMENT"===e.pricing_level&&e.design_detail_id==t);return i||(i=e.find(e=>"AREA"===e.pricing_level&&e.included_element_refs?.includes(String(t)))),i||null}function _(t){return t&&t.Prop1?t.Prop1.split(",").map(t=>{if(!(t.indexOf("-")>0))return t.trim();var e=t.split("-");return t.replace(e[0]+"-","").trim()}):[]}function s(t,e){let i=t||"";if(!i||"string"!=typeof i)return[];let n="undefined"!=typeof window&&window.location?.origin?.includes("alpha")?"https://gcp-www.swimoutlet.com":"https://photos.cdn-outlet.com",r=i.split(";").map(t=>t.trim()).filter(Boolean).map(t=>{let e=t.split("*$_*$");return{url:e[0]||"",colorName:e[1]||""}});if(!r.length)return[];let o=null!=e?String(e).trim().toLowerCase():"",l=o?r.filter(t=>t.colorName.toLowerCase()===o):r;return(l.length?l:r).map(t=>{let e;return(e=(t.url||"").trim())?/^https?:\/\//i.test(e)||e.startsWith("//")||e.includes("/CustomizationV2/ProofImage/")?e.split("?")[0]:`${n}/photos/CustomizationV2/ProofImage/${e}`:""}).filter(Boolean)}function a(t,e){let i=t?.isBulk===!0,o=t?.isCstV2===!0;if(!o&&"string"==typeof t?.Prop4&&t.Prop4.length>0)try{let e=JSON.parse(t.Prop4);!i&&e.bulk&&e.bulk.is_bulk&&e.bulk.pair&&(i=!0),!o&&"undefined"!=e.cts_aff_id&&e.cts_aff_id<=0&&("NEW"===String(t.StoreTemplate).toUpperCase()||"MIGRATING"===String(t.StoreTemplate).toUpperCase())&&(o=!0)}catch(t){}let l=n.gB.includes(t?.ProductCode),_=t?.CustomImages;return _&&"string"==typeof _?_.split(";").map(n=>{let _="";if(_=!0===l?r.A.DOMAIN_CDN+"photos/Customization/TeamId/"+t.TeamID+"/"+n:"Y"==t.IsFundraiser||i||o?"https://www.cdn-outlet.com/photos/Customization/TeamId/"+t.TeamID+"/"+n:"https://photos.cdn-outlet.com/photos/Customization/"+t.AffiliateId+"/"+n,void 0!==t.CustomizationVersion&&2==t.CustomizationVersion&&n.includes("*$_*$")){let t=n.split("*$_*$");if(t.length>=2){let i=t[0],n=t[1],r=String(e||"").trim().toLowerCase(),o=String(n||"").trim().toLowerCase();if(!o||o!==r)return"";_=i}}return _}).filter(t=>t.length>0):[]}function u(t,e){let i=(t,i)=>{let n=e?.find(e=>t.attribute_id==e.id),r={element_id:t.attribute_id,element_type:i,pricing:[]};return n?r.pricing=n.pricing.map(t=>({from_qty:t.qty_from,to_qty:t.qty_to,price:t.price})):r.pricing=[{from_qty:1,to_qty:9999,price:t.cost}],r};return[...t.logo.map(t=>i(t,"logo")),...t.text.map(t=>i(t,"text")),...t.personalizations.map(t=>i(t,"personalize"))]}function p(t,e,i){let n=[],r=t=>t.pricings.map(t=>({from_qty:t.qty_from,to_qty:t.qty_to,price:Math.round((t.price??0)*100)}));for(let i of t?.filter(t=>"AREA"===t.pricing_level)||[]){let t=m(e,i.option_id);if(!t){console.error("Pricing option not found for AREA pricing assignment:",i.option_id);continue}n.push({pricing_level:"AREA",pricing_assignment_id:i.id,element_ids:i.included_element_refs||[],option_id:i.option_id,pricing:r(t)})}for(let o of i.filter(e=>l(e.id,t)?.pricing_level==="ELEMENT")){let i=l(o.id,t),_=m(e,i.option_id);if(!_){console.error("Pricing option not found for ELEMENT pricing assignment:",i?.option_id);continue}n.push({pricing_level:"ELEMENT",element_id:o.id,element_type:y(o)?"personalize":o.text?"text":"logo",option_id:i.option_id,pricing:r(_)})}return n}function m(t,e){let i=t?.find(t=>t.options.some(t=>t.id===e));return i?.options?.find(t=>t.id===e)??null}function c(t,e,i){let n=m(t,e?.option_id);if(!n)return 0;let r=n.pricings.find(t=>t.qty_from<=i&&(i<=t.qty_to||0===t.qty_to));return r?.price??e.cached_min_price??0}function f(t,e,i,n){let r=0;return(t?.filter(t=>"AREA"===t.pricing_level)||[]).forEach(t=>{r+=c(e,t,n)}),i.filter(e=>{let i=l(e.id,t);return!y(e)&&i?.pricing_level==="ELEMENT"}).forEach(i=>{let o=l(i.id,t);r+=c(e,o,n)}),r}function d(t,e,i,n){let r=i.filter(t=>y(t)),o=0;for(let i of r)o+=c(e,l(i.id,t),n);return o}let g="Alphanumeric characters only, special characters are not allowed.";function h(t){if(null==t||"string"!=typeof t)return!0;let e=t.trim();return 0===e.length||/^[a-zA-Z0-9]+$/.test(e)}function y(t){return t.allow_personalization||t.allow_personalization_number}function S(t){return t.filter(t=>y(t)).sort((t,e)=>{let i=(t.area_position??0)-(e.area_position??0);if(0!==i)return i;let n=t.allow_personalization,r=e.allow_personalization,o=t.allow_personalization_number,l=e.allow_personalization_number;return n&&l?-1:o&&r?1:0})}function z(t,e,i,n){if(t&&e&&(e.allow_personalization_number?t["_TeamStore_Custom.Personalization_number."+e.id]=i+"|"+n:t["_TeamStore_Custom.Personalization."+e.id]=i+"|"+n,t["_TeamStore_Custom.PersonalizationFee."+e.id]=n,i.trim().length>0)){let r=JSON.parse(e.json_string_details||"{}"),l=e.allow_personalization_number?"(Number)":"(Name)";t[`${r.view_name} - ${r.area_name} - ${l}`]=`${i}, $${(0,o.up)(n/100,",",".")}`}}function C(t,e,i,n){if(t["_TeamStore_Custom.Personalization."+e.id]=i+"|"+n,t["_TeamStore_Custom.PersonalizationFee."+e.id]=n,i.trim().length>0){let r=JSON.parse(e.json_string_details||"{}");t[`${r.view_name} - ${r.area_name} - (Add-On)`]=`${i}, $${(0,o.up)(n/100,",",".")}`}}let E="_TeamStore_Custom.Personalization.",w="_TeamStore_Custom.Personalization_number.";function P(t){if(!t)return t;let e={};if(!("_item_type"in t)&&t._item_attr)try{let e=JSON.parse(t._item_attr);e&&e._item_type&&(t._item_type=e._item_type)}catch(t){}let i=["_customizationId","_TeamStore_CustomizationId","_CustomV2_CustomizationId"].some(e=>{let i=t[e];return null!=i&&""!==String(i)&&"0"!==String(i)});"Y"!==t._pricelock||"_item_type"in t||i||(t._item_type="regular"),"_item_type"in t&&(e._item_type=t._item_type,delete t._item_type),"regular"!==e._item_type&&"__SE_CustomItem"in t&&(e.__SE_CustomItem=t.__SE_CustomItem),"_customizationId"in t&&(e._customizationId=t._customizationId),"_SE_BaseProductPrice"in t&&(e._SE_BaseProductPrice
1=t._SE_BaseProductPrice),"_SE_personalization_fee"in t&&(e._SE_personalization_fee=t._SE_personalization_fee),"_is_reorder"in t&&(e._is_reorder=t._is_reorder);let n=function(t){if(!t||"object"!=typeof t)return[];let e=[];return Object.keys(t).forEach(i=>{if(i.includes("_TeamStore_Custom.PersonalizationFee."))return;let n=null;if(i.startsWith(w))n=i.slice(w.length);else{if(!i.startsWith(E))return;let t=i.slice(E.length);n=/^\d+$/.test(t)?t:t.split(".")[0]}if(!n)return;let r=t[i];if(null==r||""===r||!String(r).split("|")[0].trim())return;let o=/^\d+$/.test(String(n))?parseInt(String(n),10):n;e.includes(o)||e.push(o)}),e}(t);return n.length>0&&(e._selected_personalize_options=n),Object.keys(e).length>0&&(t._item_attr=JSON.stringify(e)),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.