1import{o as l,a9 as a,a7 as r,bR as s,bq as u,bp as m,aR as c,bz as d}from"./BPlt5jNJ.js";import f from"./COc1pf5P.js";import p from"./COWcNMM5.js";import{t as b}from"./ByBHOlDa.js";import"./CJwVwZZk.js";import"./D0rIMvHL.js";import"./1O2Ij95w.js";import"./CI4xBK7j.js";import"./Bp01LwMx.js";import"./BegCxbDe.js";import"./DBoafQlm.js";import"./BAvpTMRj.js";import"./CzPunx1q.js";import"./5MtjxJ-y.js";import"./fyAfAxkJ.js";import"./UCTC3J7_.js";import"./DPbam6xa.js";import"./DVBSSHOv.js";import"./B6lwG3N4.js";import"./vsr-mS5a.js";import"./DaS4BzlR.js";import"./CizZK2US.js";try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e1d5b158-6732-4cee-af76-04054de8d3ee",e._sentryDebugIdIdentifier="sentry-dbid-e1d5b158-6732-4cee-af76-04054de8d3ee")}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 h={components:{FeaturedBookFullWidth:f,FeaturedBookColumn:p},props:{module:{type:Object,default:()=>{}},editable:{type:Boolean,default:!1},slug:{type:String,default:""},theme:{type:Object,default:()=>{}},csrf:{type:String,default:""},baseUrl:{type:String,default:""},headingOffset:{type:Number,default:0}},emits:["show-panel","tracking"],computed:{truncatedText(){return b(this.module.content.bookDescription.html,{TruncateBy:"words",TruncateLength:this.module.content.bookDescription.meta.truncateLength,StripHTML:!1,Strict:!1,Suffix:"..."})},showTruncatedText(){const e=!this.isPublic;return e&&!this.module.content.bookDescription.meta.truncateActive||!e&&!this.module.content.bookDescription.meta.truncateActive||!e&&this.module.content.bookDescription.meta.truncateActive&&this.module.content.bookDescription.meta.showMore},moduleComputedCssClass(){if(this.module.content.layout.columnSize!=="full-width")return{"px-4":this.module.content.layout.columnSize!=="full-width",[`@sm:px-8 @md:px-${this.module.content.padding.x}`]:!!(this.module.content.padding.x&&this.module.content.margin===!0),[`@sm:px-14 @md:px-${this.module.content.padding.x+8}`]:!!(this.module.content.padding.x&&this.module.content.margin===!1),[`border-solid border-${this.module.content.border?.width}`]:!!this.module.content.border?.width,[`pt-${this.module.content.padding.t}`]:!!this.module.content.padding.t,[`pb-${this.module.content.padding.b}`]:!!this.module.content.padding.b}},borderStyle(){return{"--module-border-color":this.module.content?.border?.color}},computedTestName(){const e=this.module.content.layout.columnSize,t=this.module.content.layout.imageSide;return e==="single-column"?`featured-book-${e}`:`featured-book-${e}-${t}`},isPublic(){return this.$store.getters.isPublic}},methods:{readMoreClick(){if(this.isPublic&&(this.module.content.bookDescription.meta.showMore=!this.module.content.bookDescription.meta.showMore,this.module.content.bookDescription.meta.showMore&&this.module.content.analyticsMeta)){const e={event_type:"read_book_description",...c(this.module.content.analyticsMeta)};this.$emit("tracking",e)}}}};function g(e,t,o,y,k,n){return d(),a("div",{key:o.module.content.isbn,class:m(["module flex-col",n.moduleComputedCssClass]),style:u([o.module.content.background.style,n.borderStyle])},[(d(),r(s(o.module.content.layout.columnSize==="full-width"?"FeaturedBookFullWidth":"FeaturedBookColumn"),{module:o.module,editable:o.editable,slug:o.slug,theme:o.theme,"heading-offset":o.headingOffset,"data-test":n.computedTestName,"base-url":o.baseUrl,onReadMoreClick:n.readMoreClick,onShowPanel:t[0]||(t[0]=i=>e.$emit("show-panel",i)),onTracking:t[1]||(t[1]=i=>e.$emit("tracking",i))},null,40,["module","editable","slug","theme","heading-offset","data-test","base-url","onReadMoreClick"]))],6)}const $=Object.assign(l(h,[["render",g],["__scopeId","data-v-b465f20c"]]),{__name:"FeaturedBook"});export{$ 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.