PageSourceSearch

https://www.sweets-online.com/_nuxt/DecJpHb1.js

js sweets-online.com collected 2026-09-26 08:49:13 UTC 12,566 bytes, 1 lines download raw bytes

1import{_ as lt,u as nt}from"./GCTuzsVY.js";import{_ as it}from"./BchviM3Q.js";import{_ as at}from"./BKwbjMG_.js";import{_ as st}from"./DMl-kkbz.js";import{_ as rt}from"./BacJa8s3.js";import{_ as dt}from"./IW0XIo18.js";import{g as s}from"./BImG6aQy.js";import{d as bt,b as g,j as f,i as l,A as a,f as r,F as ut,q as mt,u as t,e as gt,p as y,O as V,C as p,R as b,x,l as F,B as pt,z as R,G as D,r as L}from"./BqJpZGcT.js";import{k as xt,h as ct,a3 as T,aO as M,_ as vt}from"./eoZLS6Xr.js";import{x as ft}from"./D4dR7bRF.js";import{u as yt}from"./CtDd3rhm.js";import{u as Vt}from"./DdDfUc8w.js";import{u as Tt}from"./CkZpwIGS.js";import{u as kt}from"./BZ4aGlIq.js";import"./C7-_SzP7.js";import"./BaM07FO2.js";import"./DIgZUP98.js";import"./BEb2myyg.js";import"./DcP6aFSX.js";import"./CFvaV56x.js";import"./d-e61DQj.js";import"./CD4Ft_sl.js";import"./uMGIWOtK.js";/* empty css        */import"./C56oZCQM.js";import"./DSLH3VgA.js";import"./Cb7CoS15.js";import"./ytVKb8se.js";import"./C84tt4-M.js";import"./CHhyfG3t.js";import"./D9FaGOtJ.js";const Et={class:"block-slider-edit"},_t=["data-testid"],Bt={class:"images"},ht={class:"mb-6"},Ut={class:"flex items-center gap-4"},At={class:"flex-1 space-y-1"},Ct={class:"relative"},Ot={class:"mb-6"},Lt={class:"mb-6"},wt={key:0,class:"mb-6"},It=["onClick"],Ft={key:1,class:"mb-6"},Rt={class:"block text-sm font-medium mb-4"},Dt={class:"flex items-center gap-4"},Mt={class:"flex-1 space-y-1"},St={class:"relative"},Pt={class:"mb-6"},$t={class:"mb-6"},Nt={class:"images"},jt={class:"mb-6 mt-4"},zt={class:"mb-6"},Xt={class:"mb-6"},Yt={class:"mb-6"},P=bt({__name:"BannerForm",props:{uuid:{}},setup(k){const{blockUuid:u}=xt(),{activeSlideIndex:$}=yt(),{allBlocks:N}=ct(),{findOrDeleteBlockByUuid:j}=Vt(),{placeholderImg:z,labels:X,imageDimensions:Y,imageTypes:q,deleteImage:G}=nt(),w=k,H=D(()=>$.value[w.uuid||u.value]),i=D(()=>j(N.value,w.uuid||u.value)||{}),E=L(!0),_=L(!0),B=L(!0),I=(n,e)=>{const m=n.target?.value,d=Number.parseFloat(m);e==="image"&&(i.value.content.image.brightness=M(d,0,1)),e==="text"&&(i.value.content.text.bgopacity=M(d,0,1))},J=({image:n,type:e})=>{const{handleImageAdd:m}=Tt(i.value?.content?.image);m({image:n,type:e})},{textboxAlignXModel:h,textboxAlignXOptions:K,textboxAlignYModel:U,textboxAlignYOptions:Q,buttonVariantModel:A,buttonVariantOptions:W,buttonAlignModel:C,buttonAlignOptions:Z}=kt(()=>i.value.content,s);return(n,e)=>{const m=lt,d=it,O=at,tt=st,et=rt,c=dt;return g(),f("div",Et,[l("div",{"data-testid":`slide-settings-${t(H)}`},[a(O,{modelValue:t(E),"onUpdate:modelValue":e[5]||(e[5]=o=>b(E)?E.value=o:null),title:("getEditorTranslation"in n?n.getEditorTranslation:t(s))("images-group-label"),"data-testid":"slider-image-group-title"},{default:r(()=>[l("div",Bt,[(g(!0),f(ut,null,mt(t(q),o=>(g(),gt(m,{key:o,label:t(X)[o],image:t(i).content.image[o],placeholder:t(z),dimensions:t(Y)[o],"selected-image-type":o,onAdd:e[0]||(e[0]=v=>J(v)),onDelete:v=>t(G)(t(i).content.image,o)},null,8,["label","image","placeholder","dimensions","selected-image-type","onDelete"]))),128))]),l("div",ht,[e[23]||(e[23]=l("label",{class:"block text-sm font-medium mb-4"},"Brightness",-1)),l("div",Ut,[l("div",At,[e[22]||(e[22]=l("div",{class:"flex justify-between text-xs text-gray-500"},[l("span",null,"0%"),l("span",null,"100%")],-1)),y(l("input",{"onUpdate:modelValue":e[1]||(e[1]=o=>t(i).content.image.brightness=o),type:"range",min:"0",max:"1",step:"0.01",class:"w-full"},null,512),[[V,t(i).content.image.brightness,void 0,{number:!0}]])]),l("div",Ct,[y(l("input",{"onUpdate:modelValue":e[2]||(e[2]=o=>t(i).content.image.brightness=o),type:"number",min:"0",max:"1",class:"w-20 px-2 py-1 border rounded text-color-red-500",onInput:e[3]||(e[3]=o=>I(o,"image"))},null,544),[[V,t(i).content.image.brightness,void 0,{number:!0}]])])])]),l("div",Ot,[a(d,{class:"mb-1"},{default:r(()=>[...e[24]||(e[24]=[p("Alt",-1)])]),_:1}),a(t(T),{modelValue:t(i).content.image.alt,"onUpdate:modelValue":e[4]||(e[4]=o=>t(i).content.image.alt=o),name:"alt",type:"text","data-testid":"slide-alt-text"},null,8,["modelValue"]),e[25]||(e[25]=l("div",{class:"typography-text-xs text-gray-500 flex gap-1 mt-2 sm:mb-0"},"Alternative image text",-1))])]),_:1},8,["modelValue","title"]),a(O,{modelValue:t(_),"onUpdate:modelValue":e[16]||(e[16]=o=>b(_)?_.value=o:null),title:("getEditorTranslation"in n?n.getEditorTranslation:t(s))("text-group-label"),"data-testid":"slider-text-group-title"},{default:r(()=>[l("div",null,[a(tt,{"model-value":t(i).content.text.htmlDescription??"","text-align":t(i).c
1ontent.text.textAlignment,"onUpdate:modelValue":e[6]||(e[6]=o=>t(i).content.text.htmlDescription=o)},null,8,["model-value","text-align"]),l("div",Lt,[a(d,{class:"mb-1"},{default:r(()=>[p(x(("getEditorTranslation"in n?n.getEditorTranslation:t(s))("textbox-background-label")),1)]),_:1}),a(t(ft),{modelValue:t(i).content.text.background,"onUpdate:modelValue":e[7]||(e[7]=o=>t(i).content.text.background=o),class:"checked:bg-editor-button checked:before:hover:bg-editor-button checked:border-gray-500 checked:hover:border:bg-gray-700 hover:border-gray-700 hover:before:bg-gray-700 checked:hover:bg-gray-300 checked:hover:border-gray-400"},null,8,["modelValue"])]),t(i).content.text.background?(g(),f("div",wt,[a(d,{class:"mb-1"},{default:r(()=>[p(x(("getEditorTranslation"in n?n.getEditorTranslation:t(s))("textbox-color-label")),1)]),_:1}),a(et,{modelValue:t(i).content.text.bgcolor,"onUpdate:modelValue":e[10]||(e[10]=o=>t(i).content.text.bgcolor=o),class:"w-full"},{trigger:r(({color:o,toggle:v})=>[a(t(T),{modelValue:t(i).content.text.bgcolor,"onUpdate:modelValue":e[9]||(e[9]=ot=>t(i).content.text.bgcolor=ot),type:"text"},{suffix:r(()=>[l("button",{type:"button",class:"border border-[#a0a0a0] rounded-lg cursor-pointer w-10 h-8",style:pt({backgroundColor:o}),onMousedown:e[8]||(e[8]=F(()=>{},["stop"])),onClick:F(v,["stop"])},null,44,It)]),_:2},1032,["modelValue"])]),_:1},8,["modelValue"])])):R("",!0),t(i).content.text.background?(g(),f("div",Ft,[l("label",Rt,x(("getEditorTranslation"in n?n.getEditorTranslation:t(s))("textbox-opacity-label")),1),l("div",Dt,[l("div",Mt,[e[26]||(e[26]=l("div",{class:"flex justify-between text-xs text-gray-500"},[l("span",null,"0%"),l("span",null,"100%")],-1)),y(l("input",{"onUpdate:modelValue":e[11]||(e[11]=o=>t(i).content.text.bgopacity=o),type:"range",min:"0",max:"1",step:"0.01",class:"w-full"},null,512),[[V,t(i).content.text.bgopacity,void 0,{number:!0}]])]),l("div",St,[y(l("input",{"onUpdate:modelValue":e[12]||(e[12]=o=>t(i).content.text.bgopacity=o),type:"number",min:"0",max:"1",class:"w-20 px-2 py-1 border rounded text-color-red-500",onInput:e[13]||(e[13]=o=>I(o,"text"))},null,544),[[V,t(i).content.text.bgopacity,void 0,{number:!0}]])])])])):R("",!0),l("div",Pt,[a(c,{modelValue:t(h),"onUpdate:modelValue":e[14]||(e[14]=o=>b(h)?h.value=o:null),legend:("getEditorTranslation"in n?n.getEditorTranslation:t(s))("textbox-align-x-label"),"test-id-prefix":"slider-textbox-align-x",options:t(K)},null,8,["modelValue","legend","options"])]),l("div",$t,[a(c,{modelValue:t(U),"onUpdate:modelValue":e[15]||(e[15]=o=>b(U)?U.value=o:null),legend:("getEditorTranslation"in n?n.getEditorTranslation:t(s))("textbox-align-y-label"),"test-id-prefix":"slider-textbox-align-y",options:t(Q)},null,8,["modelValue","legend","options"])])])]),_:1},8,["modelValue","title"]),a(O,{modelValue:t(B),"onUpdate:modelValue":e[21]||(e[21]=o=>b(B)?B.value=o:null),title:("getEditorTranslation"in n?n.getEditorTranslation:t(s))("button-group-label"),"data-testid":"slider-button-group-title"},{default:r(()=>[l("div",Nt,[l("div",jt,[l("label",null,[a(d,{class:"mb-1"},{default:r(()=>[p(x(("getEditorTranslation"in n?n.getEditorTranslation:t(s))("button-text-label")),1)]),_:1}),a(t(T),{modelValue:t(i).content.button.label,"onUpdate:modelValue":e[17]||(e[17]=o=>t(i).content.button.label=o),"data-testid":"slider-button-label",name:"label",type:"text",placeholder:("getEditorTranslation"in n?n.getEditorTranslation:t(s))("button-text-placeholder")},null,8,["modelValue","placeholder"])])]),l("div",zt,[a(d,{class:"mb-1"},{default:r(()=>[p(x(("getEditorTranslation"in n?n.getEditorTranslation:t(s))("button-link-label")),1)]),_:1}),a(t(T),{modelValue:t(i).content.button.link,"onUpdate:modelValue":e[18]||(e[18]=o=>t(i).content.button.link=o),name:"link","data-testid":"slider-button-link",type:"text",placeholder:("getEditorTranslation"in n?n.getEditorTranslation:t(s))("button-link-placeholder")},null,8,["modelValue","placeholder"])]),l("div",Xt,[a(c,{modelValue:t(A),"onUpdate:modelValue":e[19]||(e[19]=o=>b(A)?A.value=o:null),legend:("getEditorTranslation"in n?n.getEditorTranslation:t(s))("button-variant-label"),"test-id-prefix":"slider-button-variant",options:t(W)},null,8,["modelValue","legend","options"])]),l("div",Yt,[a(c,{modelValue:t(C),"onUpdate:modelValue":e[20]||(e[20]=o=>b(C)?C.value=o:null),legend:("getEditorTranslation"in n?n.getEditorTranslation:t(s))("button-align-label"),"test-id-prefix":"slider-button-align",options:t(Z)},null,8,["modelValue","legend","options"])])])]),_:1},8,["modelValue","title"])],8,_t)])}}});function S(k){const u=k;u.__i18n=u.__i18n||[],u.__i18n.push({locale:"",resource:{en:{"images-group-label":{t:0,b:{t:2,i:[{t:3}],s:"Images"}},"text-group-label":{t:0,b:{t:2,i:[{t:3}],s:"Text"}},"textbox-background-label":{t:0,b:{t:2,i:[{t:3}
1],s:"Textbox Background"}},"textbox-color-label":{t:0,b:{t:2,i:[{t:3}],s:"Textbox Colour"}},"textbox-opacity-label":{t:0,b:{t:2,i:[{t:3}],s:"Textbox Opacity"}},"textbox-align-x-label":{t:0,b:{t:2,i:[{t:3}],s:"Textbox Alignment (x)"}},"textbox-align-x-left-label":{t:0,b:{t:2,i:[{t:3}],s:"Left"}},"textbox-align-x-center-label":{t:0,b:{t:2,i:[{t:3}],s:"Center"}},"textbox-align-x-right-label":{t:0,b:{t:2,i:[{t:3}],s:"Right"}},"textbox-align-y-label":{t:0,b:{t:2,i:[{t:3}],s:"Textbox Alignment (y)"}},"textbox-align-y-top-label":{t:0,b:{t:2,i:[{t:3}],s:"Top"}},"textbox-align-y-center-label":{t:0,b:{t:2,i:[{t:3}],s:"Center"}},"textbox-align-y-bottom-label":{t:0,b:{t:2,i:[{t:3}],s:"Bottom"}},"button-align-label":{t:0,b:{t:2,i:[{t:3}],s:"Button Alignment (x)"}},"button-align-option-left-label":{t:0,b:{t:2,i:[{t:3}],s:"Left"}},"button-align-option-center-label":{t:0,b:{t:2,i:[{t:3}],s:"Center"}},"button-align-option-right-label":{t:0,b:{t:2,i:[{t:3}],s:"Right"}},"button-group-label":{t:0,b:{t:2,i:[{t:3}],s:"Button"}},"button-text-label":{t:0,b:{t:2,i:[{t:3}],s:"Label"}},"button-text-placeholder":{t:0,b:{t:2,i:[{t:3}],s:"Button"}},"button-link-label":{t:0,b:{t:2,i:[{t:3}],s:"Link Target"}},"button-link-placeholder":{t:0,b:{t:2,i:[{t:3}],s:"Enter URL here"}},"button-variant-label":{t:0,b:{t:2,i:[{t:3}],s:"Variant"}},"button-variant-primary-label":{t:0,b:{t:2,i:[{t:3}],s:"Primary"}},"button-variant-secondary-label":{t:0,b:{t:2,i:[{t:3}],s:"Secondary"}}},de:{"images-group-label":{t:0,b:{t:2,i:[{t:3}],s:"Images"}},"text-group-label":{t:0,b:{t:2,i:[{t:3}],s:"Text"}},"textbox-background-label":{t:0,b:{t:2,i:[{t:3}],s:"Textbox Background"}},"textbox-color-label":{t:0,b:{t:2,i:[{t:3}],s:"Textbox Colour"}},"textbox-opacity-label":{t:0,b:{t:2,i:[{t:3}],s:"Textbox Opacity"}},"textbox-align-x-label":{t:0,b:{t:2,i:[{t:3}],s:"Textbox Alignment (x)"}},"textbox-align-x-left-label":{t:0,b:{t:2,i:[{t:3}],s:"Left"}},"textbox-align-x-center-label":{t:0,b:{t:2,i:[{t:3}],s:"Center"}},"textbox-align-x-right-label":{t:0,b:{t:2,i:[{t:3}],s:"Right"}},"textbox-align-y-label":{t:0,b:{t:2,i:[{t:3}],s:"Textbox Alignment (y)"}},"textbox-align-y-top-label":{t:0,b:{t:2,i:[{t:3}],s:"Top"}},"textbox-align-y-center-label":{t:0,b:{t:2,i:[{t:3}],s:"Center"}},"textbox-align-y-bottom-label":{t:0,b:{t:2,i:[{t:3}],s:"Bottom"}},"button-align-label":{t:0,b:{t:2,i:[{t:3}],s:"Button Alignment (x)"}},"button-align-option-left-label":{t:0,b:{t:2,i:[{t:3}],s:"Left"}},"button-align-option-center-label":{t:0,b:{t:2,i:[{t:3}],s:"Center"}},"button-align-option-right-label":{t:0,b:{t:2,i:[{t:3}],s:"Right"}},"button-group-label":{t:0,b:{t:2,i:[{t:3}],s:"Button"}},"button-text-label":{t:0,b:{t:2,i:[{t:3}],s:"Label"}},"button-text-placeholder":{t:0,b:{t:2,i:[{t:3}],s:"Button"}},"button-link-label":{t:0,b:{t:2,i:[{t:3}],s:"Link Target"}},"button-link-placeholder":{t:0,b:{t:2,i:[{t:3}],s:"Enter URL here"}},"button-variant-label":{t:0,b:{t:2,i:[{t:3}],s:"Variant"}},"button-variant-primary-label":{t:0,b:{t:2,i:[{t:3}],s:"Primary"}},"button-variant-secondary-label":{t:0,b:{t:2,i:[{t:3}],s:"Secondary"}}}}})}typeof S=="function"&&S(P);const Ee=Object.assign(vt(P,[["__scopeId","data-v-320812d3"]]),{__name:"BlocksBannerForm"});export{Ee 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.