1import{_ as w}from"./EscBadge-D8MV8P0C.js";import o from"./CodeCard-csu2il8O.js";import{_ as b}from"./index-CVwy_t6F.js";import{m as g,p as z,x as k,I as _,y as d}from"./tabs-bNYlhTSN.js";import{r as h,d as m,o as c,b as t,w as s,f as C,u as i,a as e,F as u,g as j,n as S,t as B}from"./app-BwPdGapu.js";import{Y as $,h as f,G as N,S as V}from"./transition-CGCLAPLK.js";import"./index-B-ZU8LFy.js";import"./createLucideIcon-DsbQsQqZ.js";import"./CheckIcon-C8UVdBwi.js";import"./utils-DjqsqOe8.js";import"./keyboard-CubiAem9.js";import"./use-resolve-button-type-D2R6svRA.js";const q={class:"fixed inset-0 z-10 w-screen overflow-y-auto"},E={class:"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"},F={class:"flex items-center justify-between border-b border-zinc-100 px-4 py-4 sm:px-6 dark:border-zinc-800"},G={class:"px-6 py-4"},I={class:"mt-4 flex transform-gpu divide-x divide-zinc-100 dark:divide-zinc-800"},L={class:"max-h-96 min-w-0 flex-auto scroll-py-4 overflow-y-auto"},R={__name:"ShareModal",props:{flow:Object,disabled:Boolean},setup(n){const p=[{name:"Website"},{name:"Shopify"}],r=h(!1),x=()=>{r.value=!1};return(y,a)=>(c(),m(u,null,[t(i(b),{disabled:n.disabled,size:"sm",onClick:a[0]||(a[0]=l=>r.value=!0),variant:y.route().current("flows.editor")?"default":"outline"},{default:s(()=>a[2]||(a[2]=[C(" Share ")])),_:1},8,["disabled","variant"]),t(i(V),{as:"template",show:r.value},{default:s(()=>[t(i($),{class:"relative z-50",onClose:a[1]||(a[1]=l=>r.value=!1)},{default:s(()=>[t(i(f),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:s(()=>a[3]||(a[3]=[e("div",{class:"fixed inset-0 bg-zinc-100/20 backdrop-blur transition-opacity dark:bg-zinc-900/20"},null,-1)])),_:1}),e("div",q,[e("div",E,[t(i(f),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:s(()=>[t(i(N),{class:"relative transform overflow-hidden rounded-xl border border-zinc-200 bg-white text-left shadow-2xl transition-all sm:my-8 sm:w-full sm:max-w-4xl dark:border-zinc-800 dark:bg-zinc-900"},{default:s(()=>[e("div",F,[a[4]||(a[4]=e("h3",{class:"text-base font-semibold text-zinc-800 dark:text-zinc-200"}," Embed in a website ",-1)),t(w,{reverse:"",onClose:x})]),e("div",null,[e("div",G,[t(i(g),null,{default:s(()=>[t(i(z),null,{default:s(()=>[(c(),m(u,null,j(p,l=>t(i(k),{as:"template",key:l.name},{default:s(({selected:v})=>[e("button",{class:S([v?"bg-gray-100 text-gray-700":"text-gray-500 hover:text-gray-700","rounded-md px-3 py-2 text-sm font-medium"])},B(l.name),3)]),_:2},1024)),64))]),_:1}),t(i(_),null,{default:s(()=>[e("div",I,[e("div",L,[t(i(d),null,{default:s(()=>[t(o,{"widget-id":n.flow.unique_id},null,8,["widget-id"])]),_:1}),t(i(d),null,{default:s(()=>[t(o,{"widget-id":n.flow.unique_id,type:"shopify"},null,8,["widget-id"])]),_:1})])])]),_:1})]),_:1})])]),a[5]||(a[5]=e("div",{class:"flex flex-wrap items-center justify-between border-t border-zinc-100 bg-zinc-50 px-6 py-4 text-xs text-zinc-700 dark:border-zinc-800 dark:bg-zinc-900 dark:text-zinc-400"},[e("div",{class:"w-full rounded-lg bg-white p-4 ring-1 ring-inset ring-zinc-500/10 dark:bg-zinc-400/10 dark:ring-zinc-400/20"},[e("div",{class:"flex"},[e("div",{class:"flex-shrink-0 text-zinc-500 dark:text-zinc-400"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.25","stroke-linecap":"round","stroke-linejoin":"round"},[e("circle",{cx:"12",cy:"12",r:"10"}),e("line",{x1:"12",x2:"12",y1:"8",y2:"12"}),e("line",{x1:"12",x2:"12.01",y1:"16",y2:"16"})])]),e("div",{class:"ml-3 flex-1 md:flex md:items-center md:justify-between"},[e("p",{class:"text-sm text-zinc-500 dark:text-zinc-400"}," Please copy and paste this code into your HTML file where you want the flow to appear. ")
1])])])],-1))]),_:1})]),_:1})])])]),_:1})]),_:1},8,["show"])],64))}};export{R 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.