1import{r,j as I}from"./chunk-QFMPRPBF-CW8PFO20.js";import{a as b,h as A}from"./media-utils-CV0emWb_.js";function p(t){const e=l=>{const s=l/255;return s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)},o=e(t.r),a=e(t.g),i=e(t.b);return .2126*o+.7152*a+.0722*i}const D=[{hex:"#000000",name:"pure-black"},{hex:"#1a1a1a",name:"near-black"},{hex:"#1f1f1f",name:"dark"},{hex:"#333333",name:"charcoal"},{hex:"#4a4a4a",name:"dark-gray"},{hex:"#666666",name:"medium-dark"},{hex:"#737373",name:"medium"},{hex:"#8c8c8c",name:"medium-light"},{hex:"#a3a3a3",name:"light-medium"},{hex:"#c0c0c0",name:"silver"},{hex:"#d4d4d4",name:"light-gray"},{hex:"#e5e5e5",name:"very-light"},{hex:"#ffffff",name:"pure-white"}],T=D.map(t=>{const e=A(t.hex);return{...t,rgb:e,luminance:p(e)}}),k="#1f1f1f",C="#737373",M="#e5e5e5",d="#ffffff",O=3;function x(t,e){const o=Math.max(t,e),a=Math.min(t,e);return(o+.05)/(a+.05)}function y(t){const{swatchColor:e,isSelected:o=!1,onPrimaryBackground:a=!1,themeColors:i,backgroundColor:l}=t;if(!e)return a?d:C;let s;i?a?s=o?i.foreground:i.primary:s=o?i.primary:i.background:s=l;const f=b(e),w=b(s);if(!f||!w)return a?d:C;const c=p(f),u=p(w);let g=T[6],m=0;for(const h of T){const R=x(h.luminance,c),B=x(h.luminance,u),S=Math.min(R,B);S>m&&(m=S,g=h)}if(m>=O)return g.hex;const _=(c+u)/2;return c>.6?k:c<.15?u>.5?M:d:_>.5?k:M}const P=8,H={sans:"Inter",serif:"Georgia",mono:"Courier New"},v={primary:"oklch(0.2 0 0)",secondary:"oklch(0.9 0 0)",background:"oklch(1 0 0)",foreground:"oklch(0.15 0 0)",accent:"oklch(0.45 0 0)"},U={brandName:null,brandLogo:null,ogImage:null,brandWords:[],missionStatement:null,featuredProductSection:null,heroHeading:null,heroDescription:null,heroMediaMobile:void 0,heroMediaLargeScreen:void 0,siteUrl:null,metaPixelId:null,messengerPageId:null,whatsappNumber:null,contactEmail:null,contactPhones:[],businessHours:null,address:null,blogSectionTitle:null,collectionsTitle:null,relatedProductsTitle:null,recommendedTitle:null,instagramTitle:null,galleryPageHeading:null,galleryPageDescription:null,blogPageHeading:null,blogPageDescription:null,announcementBanner:[],promotionalBannerOneMedia:void 0,promotionalBannerTwoMedia:void 0,socialLinks:[],testimonials:[],faqItems:[],instagramMedia:[],googleMapsEmbed:[],googleMapsLink:[],faviconUrl:null,icon192Url:null,icon512Url:null,icon180AppleUrl:null,agentPersona:null,policyExtension:null,faqExtension:[],agentOnlyPromo:null,freeShippingMinimumOrder:null,trafficSourceBanners:null,homepageVariants:null,vipPerks:null,limitedOffers:null,discountCode:null},N={fonts:H,colors:v,borderRadius:P},W=new Set(["https://www.instagram.com","https://instagram.com","http://www.instagram.com","http://instagram.com","https://www.facebook.com","https://facebook.com","http://www.facebook.com","http://facebook.com","https://www.threads.net","https://threads.net","https://www.threads.com","https://threads.com","https://www.twitter.com","https://twitter.com","http://www.twitter.com","http://twitter.com","https://www.x.com","https://x.com","http://www.x.com","http://x.com","https://www.tiktok.com","https://tiktok.com","http://www.tiktok.com","http://tiktok.com","https://www.youtube.com","https://youtube.com","http://www.youtube.com","http://youtube.com","https://www.pinterest.com","https://pinterest.com","http://www.pinterest.com","http://pinterest.com","https://www.linkedin.com","https://linkedin.com","http://www.linkedin.com","http://linkedin.com","https://www.snapchat.com","https://snapchat.com","https://www.whatsapp.com","https://whatsapp.com","https://wa.me","https://www.wa.me"]);function F(t){if(!t||!t.trim())return!1;try{new URL(t)}catch{return!1}const e=t.trim().replace(/\/+$/,"").toLowerCase();return!W.has(e)}const E=r.createContext(null);function K({children:t,siteContent:e}){return I.jsx(E.Provider,{value:e,children:t})}function L(){const t=r.useContext(E);return t||{siteSettings:U,themeConfig:N}}function q(){return L().themeConfig}function n(){return L().siteSettings}function z(){return n().faqItems}function $(){const{socialLinks:t}=n();return r.useMemo(()=>(t??[]).filter(e=>F(e.url)).sort((e,o)=>
1e.displayOrder-o.displayOrder),[t])}function J(){const t=n();return r.useMemo(()=>({blogSectionTitle:t.blogSectionTitle,collectionsTitle:t.collectionsTitle,relatedProductsTitle:t.relatedProductsTitle,recommendedTitle:t.recommendedTitle,instagramTitle:t.instagramTitle}),[t])}function Q(){const{brandWords:t}=n();return r.useMemo(()=>({words:t}),[t])}function X(){const t=n();return r.useMemo(()=>({announcement:t.announcementBanner,bannerOneMedia:t.promotionalBannerOneMedia,bannerTwoMedia:t.promotionalBannerTwoMedia}),[t])}function Y(){return n().testimonials}function Z(){return n().instagramMedia}function tt(){const t=n();return r.useMemo(()=>({email:t.contactEmail,phones:t.contactPhones,businessHours:t.businessHours,address:t.address}),[t])}function et(){const t=n();return r.useMemo(()=>({embedUrls:t.googleMapsEmbed,shareLinks:t.googleMapsLink}),[t])}function G(){return q().colors}function nt(t,e,o=!1){const a=G();return y({swatchColor:t,backgroundColor:a.background,isSelected:e,onPrimaryBackground:o,themeColors:a})}function ot(){return n().trafficSourceBanners}function at(){return n().homepageVariants}export{K as S,z as a,J as b,Q as c,$ as d,tt as e,et as f,Y as g,Z as h,X as i,ot as j,at as k,nt as l,n as u};
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.