1import{cn as M,bw as v,bv as B,a7 as y,cH as f,ce as D,bi as p,cw as R,bJ as T,bQ as V,bz as g,a6 as h,bp as b,cI as C,bq as P,aj as j}from"./BPlt5jNJ.js";import{u as I}from"./CzPunx1q.js";import L from"./YPPjQ5lW.js";import O from"./DBoafQlm.js";import E from"./CI4xBK7j.js";try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="fdc11167-ce6b-4a56-9ff9-578f74f23efc",e._sentryDebugIdIdentifier="sentry-dbid-fdc11167-ce6b-4a56-9ff9-578f74f23efc")}catch{}{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=Object.assign({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:splash-application":!0})}const q=["href","tabindex"],N=["innerHTML"],U={__name:"MultiBookRetailers",props:p({title:{type:Object,required:!0},index:{type:Number,required:!0},module:{type:Object,default:()=>{}},theme:{type:Object,default:()=>{}},isPublic:{type:Boolean,default:!0},editable:{type:Boolean,default:!1},disableRounded:{type:Boolean,default:!1}},{modelValue:{required:!0,type:Array},modelModifiers:{}}),emits:p(["tracking","show-panel"],["update:modelValue"]),setup(e,{emit:i}){const{getTrackingOverrides:w}=I(),x=e,m=R(),s=T(null),[d]=M(e,"modelValue",{get(n){return n?n.filter(l=>l.active).sort((l,t)=>l.order-t.order):[]}}),k=()=>{if(!x.isPublic)return;const n=w(d.value);n&&(d.value=n)};let a;return v(()=>{m.state.session.isPublic&&(a=new IntersectionObserver(n=>{n.forEach(o=>{o.isIntersecting&&(k(),a.unobserve(o.target))})},{threshold:0,rootMargin:"50px"}),s.value&&a.observe(s.value))}),B(()=>{m.state.session.isPublic&&a&&a.disconnect()}),(n,o)=>{const l=V("panel");return g(),y(L,{items:D(d)},{"dropdown-trigger":f(({toggleDropdown:t,dropdownIsOpen:r,dropdownId:u})=>[C((g(),y(E,{id:u,modelValue:e.module.content.dropdownButton.button,"onUpdate:modelValue":o[0]||(o[0]=c=>e.module.content.dropdownButton.button=c),editable:e.editable,class:"inline-flex justify-center gap-2 items-center min-h-9 px-2 py-1 min-w-[140px] @sm:min-w-[200px] w-full",theme:e.theme,"module-theme":e.module.content.addToCart.meta.button,text:e.module.content.dropdownButton.html,context:"dropdownButton","data-test":"module-dropdown-button","aria-haspopup":"true","aria-expanded":r,"aria-controls":`dropdown-${u}`,"aria-label":`Shop links for ${e.title.title.html}`,"disable-rounded":e.disableRounded,style:P({anchorName:"--"+u}),onClick:c=>e.isPublic?t(c):null},{icon:f(()=>[j(O,{class:b(["mt-[2px] ml-px w-[0.895em] h-[0.895em] duration-200 origin-center transform fill-current transition-transform",{"rotate-180":r||!e.isPublic}]),role:"presentation"},null,8,["class"])]),_:2},1032,["id","modelValue","editable","theme","module-theme","text","aria-expanded","aria-controls","aria-label","disable-rounded","style","onClick"])),[[l,{component:"MultiBookRetailerSettings",context:{index:e.index,title:e.title}}]])]),"dropdown-item":f(({item:t})=>[h("a",{ref_key:"retailerLinksRef",ref:s,href:t.url,target:"_blank",class:b(["text-base",{"pointer-events-none":!t.url}]),tabindex:t.url?null:-1,onClick:o[1]||(o[1]=r=>n.$emit("tracking",r,e.title))},[h("span",{class:b({"text-gray-700 -ml-1.5 hover:text-gray-700 font-body-bold":!t.url,"font-body":t.url}),innerHTML:t.label},null,10,N)],10,q)]),_:1},8,["items"])}}};export{U as default};
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.