PageSourceSearch

https://georgesaundersbooks.com/_nuxt/B62V-9jg.js

js georgesaundersbooks.com collected 2026-10-02 06:38:01 UTC 7,246 bytes, 1 lines download raw bytes

1import w from"./C80hxXmb.js";import{o as v,cI as f,a9 as i,a8 as u,bp as c,F as l,ai as m,c8 as o,a6 as d,bM as C,bq as x,bP as k,bQ as P,bz as s,cz as S,aj as T}from"./BPlt5jNJ.js";try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="5ea9cc73-eba2-49c3-bca4-50fc07af04a7",t._sentryDebugIdIdentifier="sentry-dbid-5ea9cc73-eba2-49c3-bca4-50fc07af04a7")}catch{}{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[new t.Error().stack]=Object.assign({},t._sentryModuleMetadata[new t.Error().stack],{"_sentryBundlerPluginAppKey:splash-application":!0})}const g=t=>!!t,M={name:"NewsletterOptins",components:{InputLabel:w},props:{value:{type:Object,default:()=>{}},editable:{type:Boolean,default:!1},module:{type:Object,default:()=>{}},primaryOptin:{type:Object,default:()=>{}},secondaryOptinComputedCssClasses:{type:Object,default:()=>{}},optinComputedCssClasses:{type:Object,default:()=>{}},optinComputedCssVars:{type:Object,default:()=>{}},inputContainerClasses:{type:Object,default:()=>{}},formResponse:{type:Object,default:()=>{}},isSweepstakes:{type:Boolean,default:!1},isGiftWithPurchase:{type:Boolean,default:!1},hasPrh:{type:Boolean,default:!1},legalStyleComputedCssClasses:{type:Object,default:()=>{}}},computed:{effectiveHeaderStyleClass(){return""},constants(){return this.$store.state.constants.constants},secondaryOptins(){return this.isSweepstakes||this.hasDownloadable||this.isGiftWithPurchase?this.module.content.program.optins.filter(t=>t.program_type!=="mailing-address"):this.module.content.program.optins.slice(1).filter(t=>t.program_type!=="mailing-address")},primaryOptinText(){if(g(this.primaryOptin?.customOverride?.customText))return this.primaryOptin.customOverride.customText;if(!this.primaryOptin?.translations?.[this.$i18n.locale]&&g(this.primaryOptin?.customOverride?.adminCustomText?.primary))return this.primaryOptin.customOverride.adminCustomText.primary;const t=this.module.content.program.optins[0].program_type;let a,e,r;a=this.primaryOptin.label_text,e=null,r="general",t==="internal"&&(this.constants.Newsletter.divisionalAuthorPrograms.includes(this.primaryOptin.program_id)?(r="author",e=this.primaryOptin.display_name?this.primaryOptin.display_name:this.primaryOptin.label_text,this.primaryOptin.program_name?a=this.primaryOptin.program_name:a=this.primaryOptin.preference_text):this.constants.Newsletter.divisionalPreferencePrograms.includes(this.primaryOptin.program_id)||this.constants.Newsletter.additionalPreferencePrograms.includes(this.primaryOptin.program_id)?(a=this.primaryOptin.preference_text,e=this.primaryOptin.display_name?this.primaryOptin.display_name:this.primaryOptin.label_text,r=e=="PRH Audio"?"audio":"genre",a||(r="general",a=e)):this.primaryOptin.display_name&&(a=this.primaryOptin.display_name)),t==="author-partner"&&(a=this.primaryOptin.author.display,e=this.primaryOptin.label_text);const y=this.constants.Newsletter.brightlyPrograms;return t==="brightly"&&this.primaryOptin.preference_id&&this.primaryOptin.preference_id!==y.storytime.preferenceId&&(r="preference"),this.primaryOptin.program_id===y.goodnight.programId&&this.primaryOptin.preference_id===y.goodnight.preferenceId&&(r="goodnight"),this.primaryOptin.translations?.[this.$i18n.locale]&&(a=this.primaryOptin.translations[this.$i18n.locale]),this.$t(`optins.${t}.${r}`,{value:a,program:e})},showSecondaryOptions(){const t=this.secondaryOptins.length>0,a=this.module.campaign_id===457&&this.$config.public.APP_ENV==="production";return t&&!a},hasOnlyPrh(){return this.module.content.program.optins.map(e=>e.program_type==="prh_general"||e.program_type==="genre"||e.program_type==="author").every(e=>e===!0)},hasDownloadable(){return this.module.content.cta.hasDownloadable}},watch:{form(t,a){this.value=t}},created(){this.value&&(this.form=this.value)}},D=["data-editable-title"],I=["innerHTML"],j={class:"max-w-560 inline-block w-auto px-2 pt-2 mb-6 text-left"},N=["data-test"],G=["value"],W={class:"pl-2"},B={class:"pt-1"};function V(t,a,e,r,y,n){const _=k("InputLabel"),b=P("panel");return f((s(),i("div",{class:c(["optin-text leading-extra-tight w-full flex-col relative",[e.optinComputedCssClasse
1s,{editable:e.editable,"mx-auto":e.module.content.settings.alignment==="center","mb-6":!n.showSecondaryOptions,"max-w-700":!e.isSweepstakes&&!e.isGiftWithPurchase,"order-2 max-w-560 mt-2":e.isSweepstakes||e.isGiftWithPurchase}]]),style:x(e.optinComputedCssVars),"data-editable-title":e.editable?"Edit Main Form Text Styles":"","data-test":"edit-optin-text-style"},[!e.isSweepstakes&&!n.hasDownloadable&&!e.isGiftWithPurchase?(s(),i("div",{key:0,class:"w-full","data-test":"primary-optin",innerHTML:n.primaryOptinText},null,8,I)):u("",!0),n.showSecondaryOptions?(s(),i("div",{key:1,class:c([{"mt-4":!e.isSweepstakes||!n.hasDownloadable||!e.isGiftWithPurchase},"m-auto"]),"data-test":"secondary-optins"},[e.module.content.secondary_heading_copy.meta.display?(s(),i("div",{key:0,class:c(["secondary-heading flex flex-col w-full",e.optinComputedCssClasses]),"data-test":"secondary-heading"},[e.module.content.secondary_heading_copy.meta.custom&&e.module.content.secondary_heading_copy.html?(s(),i(l,{key:0},[m(o(e.module.content.secondary_heading_copy.html),1)],64)):n.hasDownloadable&&!e.isGiftWithPurchase?(s(),i(l,{key:1},[m(o(t.$t("further-optin-intro-downloadable")),1)],64)):n.hasOnlyPrh&&!e.isSweepstakes&&!e.isGiftWithPurchase?(s(),i(l,{key:2},[m(o(t.$t("further-optin-intro")),1)],64)):e.isSweepstakes||e.isGiftWithPurchase?(s(),i(l,{key:3},[m(o(t.$t("further-optin-intro-sweepstakes")),1)],64)):(s(),i(l,{key:4},[m(o(t.$t("further-optin-intro-alt")),1)],64))],2)):u("",!0),d("div",j,[(s(!0),i(l,null,C(n.secondaryOptins,(p,h)=>(s(),i("div",{key:h},[d("label",{class:"flex items-start mb-3","data-test":`secondary-optin-${h}`},[f(d("input",{"onUpdate:modelValue":a[0]||(a[0]=O=>e.value.fields.optins=O),type:"checkbox",name:"optins[]",value:JSON.stringify(p),class:"secondaryOptin bg-white border-2 border-solid rounded"},null,8,G),[[S,e.value.fields.optins]]),d("div",W,[T(_,{optin:p,index:h,"primary-program-type":e.primaryOptin.program_type,"has-only-prh":n.hasOnlyPrh,"is-sweepstakes":e.isSweepstakes,"is-gift-with-purchase":e.isGiftWithPurchase,class:c(e.secondaryOptinComputedCssClasses),"has-downloadable":n.hasDownloadable,"primary-optin":e.primaryOptin,optins:e.module.content.program.optins},null,8,["optin","index","primary-program-type","has-only-prh","is-sweepstakes","is-gift-with-purchase","class","has-downloadable","primary-optin","optins"]),p.program_type==="partner"&&p.customOverride&&!p.customOverride.customPrivacyPolicy?(s(),i("div",{key:0,class:c([e.legalStyleComputedCssClasses,"terms-text"])},[d("small",null,[d("p",B,o(t.$t("missing-privacy-url")),1)])],2)):u("",!0)])],8,N)]))),128))])],2)):u("",!0)],14,D)),[[b,{component:"OptInTextStyle",context:{field:"optinStyle"}}]])}const L=Object.assign(v(M,[["render",V],["__scopeId","data-v-8885dceb"]]),{__name:"NewsletterOptins"});export{L 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.