PageSourceSearch

https://app.gmb-club.com/assets/EmbedSocialPostsModal-C_QBlcFs.js

js gmb-club.com collected 2026-10-01 10:40:00 UTC 1,769 bytes, 1 lines download raw bytes

1import{u as g,r as i,j as r}from"./vendor-CTnW4jj_.js";import{aT as x,O as u}from"./index-57dGsqaK.js";import{E as y}from"./EmbedWidgetModal-DDfIdlD9.js";import"./HelpDocLink-CQDDyHl6.js";const f="Widget publications",h=["facebook","instagram","linkedin","pinterest","gmb"],S=({open:n,onOpenChange:d})=>{const{t:o}=g(),[a,l]=i.useState("grid"),[s,c]=i.useState([]),m=e=>c(t=>t.includes(e)?t.filter(b=>b!==e):[...t,e]),p=e=>{const t=[`api_key=${e}`,`layout=${a}`,...s.length?[`platforms=${s.join(",")}`]:[]];return`<script src="${u}/api/embed/social-posts-widget.js?${t.join("&")}" async><\/script>`};return r.jsxs(y,{open:n,onOpenChange:d,i18nPrefix:"social.embedWidget",keyName:f,keyDescription:"Clé auto-générée pour le widget de publications",buildSnippet:p,children:[r.jsx("div",{className:"flex items-center gap-2",children:["grid","carousel"].map(e=>r.jsx("button",{type:"button",onClick:()=>l(e),"aria-pressed":a===e,className:`px-3 py-1.5 text-xs font-medium rounded-full border transition-colors ${a===e?"bg-brand-500 border-brand-500 text-white":"bg-white border-gray-200 text-gray-600 hover:border-gray-300"}`,children:o(`social.embedWidget.layout.${e}`)},e))}),r.jsxs("div",{children:[r.jsx("p",{className:"text-xs text-gray-500 mb-1.5",children:s.length?o("social.embedWidget.networksSome"):o("social.embedWidget.networksAll")}),r.jsx("div",{className:"flex flex-wrap items-center gap-1.5",children:h.map(e=>{const t=s.includes(e);return r.jsx("button",{type:"button",onClick:()=>m(e),"aria-pressed":t,className:`px-2.5 py-1 text-xs font-medium rounded-full border transition-colors ${t?"bg-brand-500 border-brand-500 text-white":"bg-white border-gray-200 text-gray-600 hover:border-gray-300"}`,children:x[e].label},e)})})]})]})};export{S 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.