1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/OldBrowserWarning-B3_NqYuF.js","assets/index-DMEfrhGb.js","assets/index-BM1kmhda.css","assets/OldBrowserWarning-HTuEddtm.css"])))=>i.map(i=>d[i]); 2import{a8 as P,b_ as D,ae as _,x as E,c,o as l,e as n,t as i,a1 as S,aE as $,_ as h,r,F as x,Q as I,b as L,aG as G,d as B,a as m,aa as O,aO as z,z as C,A as N,q as k,aW as R,I as V,aR as q}from"./index-DMEfrhGb.js";import{L as A}from"./GalleryList.vue_vue_type_style_index_0_scoped_299852ba_lang-B-mknxj0.js";import{g as U}from"./image-DrhZJxNy.js";import{L as W}from"./Logo-BIsn2fnN.js";import{S as H}from"./SignupForm-BmEouF6y.js";import"./DocumentTemplateFormModal-YV1UWqNm.js";import"./TemplateActionsDropdown.vue_vue_type_script_setup_true_lang-D2m4MCVs.js";import"./IsPremiumPreStep-DKyjsJcK.js";import"./BlockMedia-BZV052il.js";import"./DocumentLayout-CRuGAZub.js";import"./DocumentStyleContainer.vue_vue_type_style_index_0_lang-azP7P1oA.js";import"./template-C3aZUovF.js";import"./screen-BuCEr2H4.js";import"./emailValidator-CVYUA_9j.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"112"}}catch{}})();try{(function(){var 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]="cc8243e9-2458-4f69-afa7-0f6876f8d277",e._sentryDebugIdIdentifier="sentry-dbid-cc8243e9-2458-4f69-afa7-0f6876f8d277")})()}catch{}const j={class:"g-title"},K={class:"g-preview"},Q=P({__name:"GalleryCard",props:{background:{default:""},name:{default:""},isPlaceholder:{type:Boolean,default:!1}},emits:["selectItem"],setup(e,{emit:t}){const s=e,p=D(),f=_(()=>p.style),o=_(()=>p.class),d=_(()=>!s.isPlaceholder&&s.background?{backgroundImage:`linear-gradient(to bottom,rgba(0, 0, 0, 0),rgba(0, 0, 0, 0.3)),url(${s.background})`}:{}),a=_(()=>E.t("_common:preview")),u=t,b=()=>{s.isPlaceholder||u("selectItem")};return(g,v)=>(l(),c("div",{style:$([d.value,f.value]),class:S([[o.value,{"is-placeholder":g.isPlaceholder}],"g-root font-inter"]),onClick:b},[n("div",j,i(g.name),1),n("div",K,i(a.value),1)],6))}}),Y=h(Q,[["__scopeId","data-v-a3bfdc99"]]),J={name:"GalleryList",components:{GalleryCard:Y},emits:["select-item"],props:{galleryItems:{type:Array,required:!0}},methods:{getUnsplashResized:U}},X={style:{"grid-template-columns":"repeat(auto-fill, minmax(230px, 1fr))",gap:"24px",display:"grid"},class:"gallery-list"};function Z(e,t,s,p,f,o){const d=r("GalleryCard");return l(),c("div",X,[(l(!0),c(x,null,I(s.galleryItems,a=>(l(),L(d,{key:a.id,background:o.getUnsplashResized(a.backgroundUrl,{w:480}),name:a.name,"is-placeholder":a.isPlaceholder,class:"template-item",onSelectItem:u=>e.$emit("select-item",a)},null,8,["background","name","is-placeholder","onSelectItem"]))),128))])}const ee=h(J,[["render",Z],["__scopeId","data-v-299852ba"]]),te=A,ne=ee,oe={name:"SignupModal",components:{SignupForm:H},emits:["close"],mixins:[G],props:{title:{type:String,default:""},subTitle:{type:String,default:""},buttonText:{type:String,default:""},onSignup:{type:Function,default:()=>{}},clickToClose:{type:Boolean,default:!0}},computed:{isFullScreen(){return this.mq==="sm"}},methods:{onClickOutside(){if(this.clickToClose){this.$emit("close");return}this.scaleButton()},scaleButton(){const t=this.$refs.form.$el.querySelector("button");t&&(t.style.transition="100ms",t.style.transform="scale(1.03)",setTimeout(()=>{t.style.transform=null,t.style.transition=null},100))}}},se={style:{"user-select":"none"}},ae={class:"modal-title"},le={class:"modal-subTitle has-text-grey-dark"};function ie(e,t,s,p,f,o){const d=r("CButton"),a=r("SignupForm");return l(),c("div",{class:S([{"full-screen":o.isFullScreen,"modal-overlay":!0},"font-inter"]),onClickPassive:t[1]||(t[1]=O((...u)=>o.onClickOutside&&o.onClickOutside(...u),["self"]))},[n("div",{style:$(!o.isFullScreen&&{padding:"3rem"}),class:"modal-container"},[o.isFullScreen?(l(),L(d,{key:0,class:"modal-close",pattern:"tertiary",type:"none",circle:"",icon:"x",onClick:t[0]||(t[0]=u=>e.$emit("close"))})):B("",!0),n("div",se,[n("div",ae,i(s.title),1),n("div",le,i(s.subTitle),1)]),m(a,{ref:"form","button-text":s.buttonText,onSignup:s.onSignup},null,8,["button-text","onSignup"])],4)],34)}const re=h(oe,[["render",ie],["__scopeId","data-v-a4fb668c"]]),ce=k.api.baseUrl,de={i18nOptions:{namespaces:"TemplateGallery",messages:{en:{menuTitle:"Templates",public:{title:"Beautiful proposals.<br>Ready to be used.",description:"Choose between our professional templates and make it your own."},slogan:{cling:"- Vinn fler affärer",docspo:"- Send beautiful proposals"},signupModal:{title:"Create an account to use the template",subTitle:"It's completely free to create an account.",buttonText:"Create free account"}},sv:{slogan:{cling:"- Vinn fler affärer",docspo:"- Send beautiful proposals"},menuTitle:"Mallar",signupModal:{title:"Ãppna ett konto för att använda mallen",subTitle:"Det är helt gratis att öppna ett konto.",buttonText:"Ãppna gratiskonto"},public:{title:"Vinnande offertmallar.<br>Redo att användas.",description:"Kickstarta dina affärer genom att använda en av vÃ¥ra professionellt skapade offertmallar."}}}},name:"TemplateGallery",components:{GalleryLogic:te,GalleryList:ne,Logo:W,OldBrowserWarning:z(()=>q(()=>import("./OldBrowserWarning-B3_NqYuF.js"),__vite__mapDeps([0,1,2,3])))},mixins:[G],computed:{isDocspo(){return k.brand==="docspo"},galleryModalProps(){return{showSave:!1,isPublicForm:!0,sender:{company:{name:"Demo company",email:"[email protected]",fSkatt:!0,insurance:!0},user:{firstName:"Test",lastName:"",fullName:"Test",email:"[email protected]"}}}}},created(){V.getItem("token")&&this.$router.push({name:"documentFormSelect"})},methods:{async fetchGallery(e={}){const t=`${ce}/public/templateGallery`,{data:s}=await R.get(t,{params:e});return s},initSignup(){if(k.brand==="docspo"){this.$router.push({name:"Login",query:{redirect:"/a/document/select"}}
2);return}this.$modal.show(re,{title:this.$t("signupModal.title"),subTitle:this.$t("signupModal.subTitle"),buttonText:this.$t("signupModal.buttonText"),onSignup:()=>{this.$router.push({name:"documentFormSelect"})}})}}},ue={class:"font-inter",style:{height:"100%","padding-bottom":"6rem"}},me={style:{position:"fixed",left:"0",top:"0",right:"0",padding:"10px 1rem","background-color":"white","z-index":"2","border-bottom":"1px solid hsla(0, 0%, 0%, 0.08)"}},pe={class:"c-flex-row c-align-middle c-align-justify",style:{"max-width":"1000px",margin:"0 auto"}},fe={style:{display:"inline-flex","align-items":"center"}},ge={key:0,class:"has-text-grey",style:{"margin-left":"1em"}},ye={class:"main"},_e={style:{"font-weight":"700","font-size":"16px","padding-bottom":"0.5em","padding-left":"0.5rem"}},he=["onClick"],be={style:{width:"100%"}},ve={style:{"padding-bottom":"5rem"}},ke=["innerHTML"],Se={class:"main-text"};function $e(e,t,s,p,f,o){const d=r("Logo"),a=r("CButton"),u=r("GalleryList"),b=r("GalleryLogic"),g=r("OldBrowserWarning");return l(),c("div",ue,[n("div",me,[n("div",pe,[n("div",fe,[m(d,{width:86,style:{display:"flex"}}),e.mq!=="sm"?(l(),c("div",ge,i(e.$t(`slogan.${e.$brand}`)),1)):B("",!0)]),m(a,{type:"secondary",rounded:"",class:"is-thinner",onClick:t[0]||(t[0]=v=>o.initSignup())},{default:C(()=>[N(i(o.isDocspo?e.$t("_common:login"):e.$t("_common:signup")),1)]),_:1})])]),m(b,{"fetch-gallery":o.fetchGallery,"use-template":()=>o.initSignup(),"modal-props":o.galleryModalProps,"can-purchase":!1},{default:C(({galleryItems:v,categories:T,activeCategory:w,selectCategory:F,selectGalleryItem:M})=>[n("div",ye,[n("div",{style:$({height:`${T.length*20*2+32}px`}),class:"aside"},[n("div",_e,i(e.$t("menuTitle")),1),(l(!0),c(x,null,I(T,y=>(l(),c("div",{key:y.key,class:S([{"is-active":w&&w.key===y.key},"category-item"]),onClick:Te=>F(y)},i(y.label),11,he))),128))],4),n("div",be,[n("div",ve,[n("h1",{class:"main-title",innerHTML:e.$t("public.title")},null,8,ke),n("p",Se,i(e.$t("public.description")),1)]),m(u,{"gallery-items":v,onSelectItem:M},null,8,["gallery-items","onSelectItem"])])])]),_:1}
2,8,["fetch-gallery","use-template","modal-props"]),m(g)])}const Ne=h(de,[["render",$e],["__scopeId","data-v-40366027"]]);export{Ne as default}; 3//# sourceMappingURL=index-BRQ0hqEk.js.map
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.