1import E from"./BC26cL-D.js";import{o as L,ce as t,a7 as m,cH as x,a9 as c,a6 as f,cI as b,bp as y,a8 as u,bR as O,aj as U,bq as j,a3 as d,cj as H,c9 as z,bQ as G,bz as i,ai as g,bH as R}from"./BPlt5jNJ.js";import{u as W}from"./vsr-mS5a.js";import q from"./5MtjxJ-y.js";import w from"./D0rIMvHL.js";import F from"./J-g3I90T.js";import K from"./B1qeuFjL.js";import"./fyAfAxkJ.js";import"./UCTC3J7_.js";import"./ByBHOlDa.js";import"./BegCxbDe.js";import"./CI4xBK7j.js";import"./DVBSSHOv.js";import"./DaS4BzlR.js";import"./CizZK2US.js";import"./BAvpTMRj.js";import"./CzPunx1q.js";import"./BmvTBmrE.js";import"./YPPjQ5lW.js";import"./DBoafQlm.js";import"./Dl9WbiIH.js";import"./DlrFBTCH.js";import"./oW1pMe-0.js";import"./1O2Ij95w.js";try{let a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new a.Error().stack;s&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[s]="387fa238-a56b-4488-a930-3d69021523e5",a._sentryDebugIdIdentifier="sentry-dbid-387fa238-a56b-4488-a930-3d69021523e5")}catch{}{let a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[new a.Error().stack]=Object.assign({},a._sentryModuleMetadata[new a.Error().stack],{"_sentryBundlerPluginAppKey:splash-application":!0})}const Q={class:"module_inner flex flex-col gap-8"},J={key:0,class:"flex flex-col gap-4"},X={__name:"MultiBook",props:{module:{type:Object,default:()=>({})},editable:{type:Boolean,default:!1},theme:{type:Object,default:()=>({})},slug:{type:String,default:""},isDesktop:{type:Boolean,default:!1},baseUrl:{type:String,default:""},headingOffset:{type:Number,default:0}},emits:["tracking","show-panel"],setup(a){H(n=>({v6b5ee2ba:t(e).content.border.color}));const s=a,{module:e,editable:r,theme:k,slug:_,baseUrl:M}=s,B=d(()=>s.module.content?.header?.meta?.display===!0),{h1LevelTag:h,h1LevelStyleClass:v,h2LevelTag:V,h2LevelStyleClass:I}=W(z(s,"headingOffset"),B,!1);R("headingUtils",{h1LevelTag:h,h1LevelStyleClass:v,h2LevelTag:V,h2LevelStyleClass:I});const T=d(()=>e.content.header.meta.display||e.content.text.meta.display),S=d(()=>{const n=e.content.moduleCta?.link;return n?n.type==="internal"?!!(n.text&&n.pageId):!!(n.text&&n.href):!1}),D=d(()=>e.content.header?.meta?.display?e.content.header.html:"Module Name Not Available"),$=d(()=>(e.content.moduleCta?.link?.text||"").trim()||"Module Button Not Available"),N=d(()=>{const n=e.content.cta?.meta?.button||{},o=e.content.moduleCta?.link||{};return e.content.moduleCta?.meta?.stylesInheritedFromCustomCta?{...n}:{...n,...o}}),A=d(()=>e.content.layout!=="Default"?"":e.content.grid?.mobile?.columns===2?"@sm:-mt-8":"-mt-8"),P=d(()=>({[`@sm:px-8 @md:px-${e?.content?.padding?.x}`]:e.content.padding.x&&e.content.margin===!0,[`@sm:px-14 @md:px-${(e.content.padding.x||0)+8}`]:e.content.padding.x&&e.content.margin===!1,[`border-solid border-${e.content.border.width}`]:e.content.border.width,[`pt-${e.content.padding.t}`]:e.content.padding.t,[`pb-${e.content.padding.b}`]:e.content.padding.b}));return(n,o)=>{const C=E,p=G("panel");return t(e).content.titles.length<1?(i(),m(C,{key:0,module:t(e),icon:"$bookOpenVariant","data-test":"blank-multi-book-template",onShowPanel:o[0]||(o[0]=l=>n.$emit("show-panel",l))},{description:x(()=>[...o[7]||(o[7]=[f("p",null,[g("Add "),f("strong",null,"1 or more product ISBNs or Work IDs"),g(" to see design preview.")],-1)])]),action:x(()=>[...o[8]||(o[8]=[g(" Add ISBNs/Work IDs ",-1)])]),_:1},8,["module"])):t(e).content.titles.length>0?(i(),c("div",{key:1,class:y(["module px-4",P.value]),style:j(t(e).content.background.style),"data-type":"multi-book"},[f("div",Q,[T.value?(i(),c("div",J,[t(e).content.header.meta.display?b((i(),m(w,{key:0,modelValue:t(e).content.header.html,"onUpdate:modelValue":o[1]||(o[1]=l=>t(e).content.header.html=l),editable:t(r),tag:t(h),class:y(["w-full my-0",t(v)]),"data-test":"multi-book-header"},null,8,["modelValue","editable","tag","class"])),[[p]]):u("",!0),t(e).content.text.meta.display?b((i(),m(w,{key:1,modelValue:t(e).content.text.html,"onUpdate:modelValue":o[2]||(o[2]=l=>
1t(e).content.text.html=l),editable:t(r),class:"w-full my-0",tag:"div","data-test":"multi-book-copy"},null,8,["modelValue","editable"])),[[p]]):u("",!0)])):u("",!0),(i(),m(O(t(e).content.layout==="Default"?F:K),{module:t(e),editable:t(r),theme:t(k),slug:t(_),"base-url":t(M),"is-desktop":s.isDesktop,onTracking:o[3]||(o[3]=l=>n.$emit("tracking",l)),onShowPanel:o[4]||(o[4]=l=>n.$emit("show-panel",l))},null,40,["module","editable","theme","slug","base-url","is-desktop"])),t(e).content.moduleCta?.meta?.display&&!t(e).content.viewMoreMode?.meta?.display?(i(),c("div",{key:1,class:y(["text-center",A.value])},[b(U(q,{modelValue:t(e).content.moduleCta.link,"onUpdate:modelValue":o[5]||(o[5]=l=>t(e).content.moduleCta.link=l),"data-test":"multi-book-module-cta","data-editable-title":t(r)?"Edit Styles":"",editable:t(r),incomplete:!S.value,theme:t(k),"module-theme":N.value,context:"moduleCta",class:"w-full @sm:w-auto","utag-data":{page_type:"SPLASH Campaign Page",module_type:`Custom Module | ${D.value} | ${$.value}`,module_variation:"module cta",module_variation_identifier:"module"},onTracking:o[6]||(o[6]=l=>n.$emit("tracking",l))},null,8,["modelValue","data-editable-title","editable","incomplete","theme","module-theme","utag-data"]),[[p,{component:"MultiBookModuleCTA"}]])],2)):u("",!0)])],6)):u("",!0)}}},xe=L(X,[["__scopeId","data-v-78457389"]]);export{xe 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.