1"use strict";(globalThis.webpackChunkknowit_seed_project=globalThis.webpackChunkknowit_seed_project||[]).push([[55],{79881:(e,t,o)=>{o.r(t),o.d(t,{default:()=>ve});var a=o(62850);const l={class:"c-pdf-composer c-pdf-container c-flyermaker"},r={class:"c-label-maker"},n={class:"c-label-maker__tools-bar"},c={class:"grid-container"},i={class:"grid-x"},s={class:"small-12 grid-padding-x"},d={class:"c-label-maker__tools-bar__inner"},m={class:"c-label-maker__tools-bar__buttons"},u={class:"grid-container c-pdf-composer__layout"},g={class:"c-flyermaker__topimg"},p={key:0,class:"c-flyermaker__topimg__select"},v=["data-open"],h=(0,a.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25.785",height:"20.055",fill:"currentColor",viewBox:"0 0 25.785 20.055"},[(0,a.createElementVNode)("path",{id:"Path_443","data-name":"Path 443",d:"M7.162,32A2.868,2.868,0,0,0,4.3,34.865V44.892a2.868,2.868,0,0,0,2.865,2.865H22.92a2.868,2.868,0,0,0,2.865-2.865V34.865A2.868,2.868,0,0,0,22.92,32Zm10.565,4.776,4.3,6.446a1.074,1.074,0,0,1-.9,1.67H8.953a1.074,1.074,0,0,1-.837-1.746l2.865-3.581a1.071,1.071,0,0,1,1.674,0l.774.967,2.507-3.76a1.079,1.079,0,0,1,1.791,0ZM8.595,36.3a1.432,1.432,0,1,1,1.432,1.432A1.432,1.432,0,0,1,8.595,36.3Zm-6.446-.358a1.074,1.074,0,0,0-2.149,0V45.967a6.089,6.089,0,0,0,6.088,6.088H20.413a1.074,1.074,0,1,0,0-2.149H6.088a3.939,3.939,0,0,1-3.939-3.939Z",transform:"translate(0 -32)",fill:"#104060"})],-1),f={key:1,class:"c-flyermaker__topimg__selected"},V=["src"],_=[(0,a.createElementVNode)("span",{class:"show-for-sr"},"Ta bort bilden",-1),(0,a.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor",width:"18",height:"18"},[(0,a.createElementVNode)("path",{d:"M163.8 0L284.2 0c12.1 0 23.2 6.8 28.6 17.7L320 32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 7.2-14.3C140.6 6.8 151.7 0 163.8 0zM32 128l384 0L394.8 467c-1.6 25.3-22.6 45-47.9 45l-245.8 0c-25.3 0-46.3-19.7-47.9-45L32 128zM143 239c-9.4 9.4-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47c-9.4-9.4-24.6-9.4-33.9 0z"})],-1)],b=["data-open"],k=(0,a.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25.785",height:"20.055",fill:"currentColor",viewBox:"0 0 25.785 20.055"},[(0,a.createElementVNode)("path",{id:"Path_443","data-name":"Path 443",d:"M7.162,32A2.868,2.868,0,0,0,4.3,34.865V44.892a2.868,2.868,0,0,0,2.865,2.865H22.92a2.868,2.868,0,0,0,2.865-2.865V34.865A2.868,2.868,0,0,0,22.92,32Zm10.565,4.776,4.3,6.446a1.074,1.074,0,0,1-.9,1.67H8.953a1.074,1.074,0,0,1-.837-1.746l2.865-3.581a1.071,1.071,0,0,1,1.674,0l.774.967,2.507-3.76a1.079,1.079,0,0,1,1.791,0ZM8.595,36.3a1.432,1.432,0,1,1,1.432,1.432A1.432,1.432,0,0,1,8.595,36.3Zm-6.446-.358a1.074,1.074,0,0,0-2.149,0V45.967a6.089,6.089,0,0,0,6.088,6.088H20.413a1.074,1.074,0,1,0,0-2.149H6.088a3.939,3.939,0,0,1-3.939-3.939Z",transform:"translate(0 -32)",fill:"#104060"})],-1),E=["id"],N={class:"reveal__head"},w=(0,a.createElementVNode)("button",{class:"close","data-close":"","aria-label":"Stäng",type:"button"},[(0,a.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"currentColor",class:"bi bi-x-lg",viewBox:"0 0 16 16"},[(0,a.createElementVNode)("path",{d:"M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8z"})])],-1),y={class:"reveal__body"},C={class:"c-imgselect"},D={class:"c-imgselect__item"},L=["src"],x=["onClick"],B=(0,a.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-check-lg",viewBox:"0 0 16 16"},[(0,a.createElementVNode)("path",{d:"M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425z"})],-1),U={class:"c-pdf-page c-pdf-coverpage__container is-single-page__content"},I={class:"row c-pdf-composer__inner c-flyermaker__inner"},M=(0,a.createElementVNode)("h1",{class:"c-pdf__custom-document-heading h1 light-theme-color--text"},null,-1),S=(0,a.createElementVNode)("h3",{class:"c-pdf__custom-document-heading h3"},null,-1),H={class:"c-flyermaker__custom-logo-wrapper"};var T=o(82124),A=o(74692),P=o.n(A),F=o(96569),R=o(61653);const z={class:"cell c-pdf-page-wrapper is-single-page"};const Z={class:"c-pdf__footer"},j={class:"c-flyermaker__footer"},O={class:"c-flyermaker__footer__inner"},$=["src"],W=["src"];var q=o(22670);const J={name:"PdfFooter",setup(){const e=(0,T.Pj)(),t=(0,a.computed)((()=>e.state[q.R].predefinedContent.footerLogoRight));return{logoUrls:(0,a.computed)((()=>e.state[q.R].footerLogos)),rightLogoUrl:t}}};var X=o(66262);const G={name:"PageWrapper",components:{"flyer-footer":(0,X.A)(J,[["render",function(e,t,o,l,r,n){return(0,a.openBlock)(),(0,a.createElementBlock)("div",Z,[(0,a.createElementVNode)("div",j,[(0,a.createElementVNode)("div",O,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(l.logoUrls,(e=>((0,a.openBlock)(),(0,a.createElementBlock)("img",{class:"c-flyermaker__footer__image",key:e,src:e},null,8,$)))),128)),l.rightLogoUrl?((0,a.openBlock)(),(0,a.createElementBlock)("img",{key:0,class:"c-flyermaker__footer__image__right",src:l.rightLogoUrl},null,8,W)):(0,a.createCommentVNode)("v-if",!0)])])])}]])}},K=(0,X.A)(G,[["render",function(e,t,o,l,r,n){const c=(0,a.resolveComponent)("flyer-footer");return(0,a.openBlock)(),(0,a.createElementBlock)("div",z,[(0,a.renderSlot)(e.$slots,"default"),(0,a.createVNode)(c)])}]]);var Q=o(44335),Y=o(26658),ee=o.n(Y);const te={toolbar:["heading","|","bold","italic","underline","link","bulletedList","numberedList","insertTable","fontColor"],heading:{options:[{model:"heading2",view:"h2",title:"Heading 2",class:"ck-heading_heading2 inline-editor__h2"},{model:"heading3",view:"h3",title:"Heading 3",class:"ck-heading_heading3 inline-editor__h3"},{model:"heading4",view:"h4",title:"Heading 4",class:"ck-heading_heading4 inline-editor__h4"},{model:"paragraph",view:"p",title:"Paragraph",class:"paragraph"}]},fontFamily:{options:["default","Axiforma","Ubuntu Mono, Courier New, Courier, monospace"],supportAllValues:!0},fontColor:{colors:[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"#528CB2",label:"Mora light blue"},{color:"#1a467e",label:"Mora medium blue"},{color:"#10405F",label:"Mora blue"},{color:"#D2CFC7",label:"Mora gray"},{color:"#D9D9D9",label:"Mora light gray"},{color:"#A06033",label:"Fmm brown"}]}},oe={props:{modelValue:{type:Object,default:()=>{}},placeholderValue:{type:String}},emits:["update:modelValue"],setup(e,{emit:t}){let o=ee(),l=te;return{editor:o,editorData:(0,a.computed)({get:()=>e.modelValue,set:e=>t("update:modelValue",e)}),editorConfig:l,translate:Q.T}}},ae=(0,X.A)(oe,[["render",function(e,t,o,l,r,n){const c=(0,a.resolveComponent)("ckeditor");return(0,a.openBlock)(),(0,a.createBlock)(c,{editor:l.editor,modelValue:l.editorData,"onUpdate:modelValue":t[0]||(t[0]=e=>l.editorData=e),config:l.editorConfig},null,8,["editor","modelValue","config"])}]]);var le=o(1268);const re={class:"c-custom-image"},ne={class:"c-custom-image__container"}
1,ce=["src"],ie=[(0,a.createElementVNode)("i",{class:"fa fa-trash","aria-hidden":"true"},null,-1)];var se=o(43058);const de={props:{modelValue:String},setup(e,t){let o=(0,a.ref)(e.modelValue),l=(0,a.ref)(!1),r=(0,a.ref)("");const n=(0,a.reactive)({multiple:!1,onDrop:function(e,t){const o=e[0].size/1048576;if(o>2)return l.value=!0,void(r.value=`File is too big (${o.toFixed(2)}MiB). Max filesize: 2MiB`);l.value=t.length>0;let a=new FileReader;a.onload=function(e){l.value?m(""):m(e.target.result)}.bind(this),a.readAsDataURL(e[0])},accept:"image/*,.svg"}),c=(0,a.computed)((()=>void 0!==o.value&&""!==o.value)),{getRootProps:i,getInputProps:s,...d}=(0,se.V)(n);function m(e){o.value=e,t.emit("update:modelValue",e)}return{imageDataUrl:o,hasImageDataUrl:c,uploadedFileHasError:l,errorMessage:r,options:n,getRootProps:i,getInputProps:s,removeLogo:function(){m("")},translate:Q.T}}},me=(0,X.A)(de,[["render",function(e,t,o,l,r,n){return(0,a.openBlock)(),(0,a.createElementBlock)("span",re,[(0,a.withDirectives)((0,a.createElementVNode)("div",ne,[(0,a.createElementVNode)("img",{class:"c-custom-image__img img-fluid",src:l.imageDataUrl},null,8,ce),(0,a.withDirectives)((0,a.createElementVNode)("button",{onClick:t[0]||(t[0]=(...e)=>l.removeLogo&&l.removeLogo(...e)),class:"button c-button c-custom-image__remove-button c-button--rounded c-button--theme-mora-gray remove-custom-logo",title:"Remove image"},ie,512),[[a.vShow,l.hasImageDataUrl]])],512),[[a.vShow,l.hasImageDataUrl]]),(0,a.withDirectives)((0,a.createElementVNode)("div",(0,a.mergeProps)(l.getRootProps(),{class:"c-custom-image__dropzone"}),[(0,a.createElementVNode)("input",(0,a.normalizeProps)((0,a.guardReactiveProps)(l.getInputProps())),null,16),(0,a.createElementVNode)("p",null,(0,a.toDisplayString)(l.translate("flyermaker.customHeaderImage")),1)],16),[[a.vShow,!l.hasImageDataUrl]]),(0,a.withDirectives)((0,a.createElementVNode)("div",{class:"error-message"},(0,a.toDisplayString)(l.errorMessage),513),[[a.vShow,l.uploadedFileHasError]])])}]]);var ue=o(58824),ge=o(74602);Foundation.addToJquery(P()),Foundation.plugin(F.g,"Reveal");const pe={name:"flyer",components:{EditableText:R.A,PageWrapper:K,RichTextEditor:ae,CustomLogo:le.A,CustomImage:me,ActionsMenu:ue.A},props:{title:{type:String,default:""},okTitle:{type:String,default:""},cancelTitle:{type:String,default:(0,Q.T)("sortilog.cancel")},size:{type:String,default:""},selectableImages:{type:Array},predefinedContent:{type:Object,default:()=>({})},...(0,ge.uX)()},setup(e,{emit:t}){const o=(0,T.Pj)(),l=q.R,r=o.state[l],n=(0,a.ref)(""),c="imageSelectModal";(0,a.onMounted)((()=>{P()("#"+c).foundation(),P()("#"+c).on("closed.zf.reveal",(()=>{t("close")})),P()("#"+c).on("open",(()=>{t("open")}))})),(0,a.onUpdated)((()=>{(0,ge.or)()}));const i=(0,a.computed)({get:()=>r.mainDescription,set(e){n.value=e,o.dispatch(l+"/saveMainDescription",e)}}),s=(0,a.computed)({get:()=>r.customLogoDataUrl,set(e){o.dispatch(l+"/saveCustomLogoDataUrl",e)}}),d=(0,a.computed)({get:()=>r.customHeaderImageUrl,set(e){o.dispatch(l+"/saveCustomHeaderImageUrl",e)}}),m=(0,a.computed)({get:()=>r.mainHeading,set(e){o.dispatch(l+"/saveMainHeading",e)}}),u=(0,a.computed)({get:()=>r.subtitle,set(e){o.dispatch(l+"/saveSubtitle",e)}});e.predefinedContent?.footerLogos?.length>0&&o.dispatch(l+"/saveSiteFooterLogos",e.predefinedContent.footerLogos),e.predefinedContent?.footerLogoRight&&o.dispatch(l+"/saveSiteFooterLogoRight",e.predefinedContent.footerLogoRight);const g=e.predefinedContent?.coverImage??"";return{translate:Q.T,vuexModuleName:l,editorData:n,coverImage:g,mainDescription:i,customLogoDataUrl:s,mainHeading:m,subtitle:u,handleOk:()=>t("ok"),handleCancel:()=>t("cancel"),modalId:c,selectImage:e=>{d.value=e,setTimeout((()=>{P()(`#${c}`).foundation("close")}),50)},selectedImageUrl:d,removeSelectedImage:()=>{d.value=""}}}},ve=(0,X.A)(pe,[["render",function(e,t,o,T,A,P){const F=(0,a.resolveComponent)("actions-menu"),R=(0,a.resolveComponent)("editable-text"),z=(0,a.resolveComponent)("rich-text-editor"),Z=(0,a.resolveComponent)("custom-logo"),j=(0,a.resolveComponent)("page-wrapper"),O=(0,a.resolveDirective)("sticky");return(0,a.openBlock)(),(0,a.createElementBlock)("div",l,[(0,a.withDirectives)(((0,a.openBlock)(),(0,a.createElementBlock)("div",r,[(0,a.createElementVNode)("div",n,[(0,a.createElementVNode)("div",c,[(0,a.createElementVNode)("div",i,[(0,a.createElementVNode)("div",s,[(0,a.createElementVNode)("div",d,[(0,a.createElementVNode)("div",m,[(0,a.createVNode)(F,{"vuex-namespace":T.vuexModuleName,predefinedContent:o.predefinedContent,templateType:e.productTemplateType,language:e.productLanguage},null,8,["vuex-namespace","predefinedContent","templateType","language"])])])])])])])])),[[O,{position:"top",zIndex:"98"}]]),(0,a.createElementVNode)("div",u,[(0,a.createElementVNode)("div",g,[T.selectedImageUrl?((0,a.openBlock)(),(0,a.createElementBlock)("div",f,[(0,a.createElementVNode)("img",{src:T.selectedImageUrl},null,8,V),(0,a.createElementVNode)("button",{class:"c-button c-button--rounded top-button",onClick:t[0]||(t[0]=(...e)=>T.removeSelectedImage&&T.removeSelectedImage(...e))},_),(0,a.createElementVNode)("button",{class:"c-button c-button--rounded bottom-button","data-open":T.modalId},[k,(0,a.createTextVNode)(" "+(0,a.toDisplayString)(T.translate("flyer.changecoverimage")),1)],8,b)])):((0,a.openBlock)(),(0,a.createElementBlock)("div",p,[(0,a.createElementVNode)("button",{class:"c-button c-button--rounded","data-open":T.modalId},[h,(0,a.createTextVNode)(" "+(0,a.toDisplayString)(T.translate("flyer.selectcoverimage")),1)],8,v)])),(0,a.createElementVNode)("div",{class:"reveal reveal--imgselect",id:T.modalId,"data-reveal":""},[(0,a.createElementVNode)("div",N,[(0,a.createElementVNode)("h1",null,(0,a.toDisplayString)(T.translate("flyer.selectcoverimage")),1),w]),(0,a.createElementVNode)("div",y,[(0,a.createElementVNode)("div",C,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(o.selectableImages,(e=>((0,a.openBlock)(),(0,a.createElementBlock)("div",D,[(0,a.createElementVNode)("img",{src:e},null,8,L),(0,a.createElementVNode)("button",{class:"c-button",onClick:t=>T.selectImage(e)},[B,(0,a.createTextVNode)(" "+(0,a.toDisplayString)(T.translate("flyer.selectascoverimage")),1)],8,x)])))),256))])])],8,E)]),(0,a.createVNode)(j,{class:"c-pdf-coverpage flyer-maker"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",U,[(0,a.createElementVNode)("div",I,[(0,a.createElementVNode)("div",null,[(0,a.createVNode)(R,{modelValue:T.mainHeading,"onUpdate:modelValue":t[1]||(t[1]=e=>T.mainHeading=e),"placeholder-text":T.translate("sortilog.mainheading")},{default:(0,a.withCtx)((()=>[M])),_:1},8,["modelValue","placeholder-text"]),(0,a.createVNode)(R,{modelValue:T.subtitle,"onUpdate:modelValue":t[2]||(t[2]=e=>T.subtitle=e),"placeholder-text":T.translate("flyermaker.subtitle")},{default:(0,a.withCtx)((()=>[S])),_:1},8,["modelValue","placeholder-text"]),(0,a.createVNode)(z,{modelValue:T.mainDescription,"onUpdate:modelValue":t[3]||(t[3]=e=>T.mainDescription=e),"placeholder-value":T.editorData},null,8,["modelValue","placeholder-value"])]),(0,a.createElementVNode)("div",H,[(0,a.createVNode)(Z,{modelValue:T.customLogoDataUrl,"onUpdate:modelValue":t[4]||(t[4]=e=>T.customLogoDataUrl=e)},null,8,["modelValue"])])])])])),_:1})])])}]])}}]);
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.