1 line
13 KiB
JavaScript
1 line
13 KiB
JavaScript
![]() |
"use strict";exports.id=5016,exports.ids=[5016],exports.modules={53926:(e,t,l)=>{l.d(t,{A:()=>i});var s=l(8732),a=l(82015),n=l.n(a);function i({confirmedDelegetedUser:e,linksArray:t,user:l}){let[a,i]=n().useState(t||null);return a&&a[1]?(0,s.jsx)("div",{className:"text-sm mt-2 flex-wrap",children:a.map((e,t,l)=>t===a.length-1?(0,s.jsx)("a",{href:e.path,className:"text-slate-400 dark:text-slate-500 pointer-events-none",children:e.title},t):(0,s.jsxs)(n().Fragment,{children:[(0,s.jsx)("a",{href:e.path,className:"query-url",children:e.title}),(0,s.jsx)("span",{className:"opacity-20",children:"|"})]},t))}):(0,s.jsx)(n().Fragment,{})}},55904:(e,t,l)=>{l.d(t,{A:()=>i});var s=l(8732),a=l(82015),n=l.n(a);function i({children:e,column:t,className:l}){let a=n().useRef();return(0,s.jsx)("div",{className:"items-stretch gap-0"+(t?" flex-col":" flex-wrap xl:flex-nowrap")+(l?" "+l:""),ref:a,children:e})}},55016:(e,t,l)=>{l.d(t,{A:()=>v});var s=l(8732),a=l(82015),n=l.n(a),i=l(83155),r=l(16757),c=l(40373),d=l(55904),o=l(96725);function u({targetElement:e,setOpenStyleModal:t}){return e?(0,s.jsxs)("div",{className:"flex flex-col items-stretch p-6 max-w-lg",children:[(0,s.jsxs)("div",{className:"w-full justify-between",children:[(0,s.jsx)("span",{className:"text-xl",children:"Element Style"}),(0,s.jsx)("button",{className:"w-10 h-10 plain-text",onClick:()=>{t(!1)},children:(0,s.jsx)(o.A,{})})]}),(0,s.jsxs)("div",{className:"items-stretch p-2 bg-slate-100 rounded add-css-block",children:[(0,s.jsx)("input",{type:"text",placeholder:"CSS key"}),(0,s.jsx)("input",{type:"text",placeholder:"CSS Value",onKeyDownCapture:t=>{let l=t.target;if(t.key?.match(/enter/i)){let t=l.closest(".add-css-block")?.children[0],s=l.closest(".add-css-block")?.children[1],a=t?.value,n=s?.value;if(!a?.match(/./)||!n?.match(/./))return;e.style[a]=n}}}),(0,s.jsx)("button",{onClick:t=>{let l=t.target,s=l.closest(".add-css-block")?.children[0],a=l.closest(".add-css-block")?.children[1],n=s?.value,i=a?.value;n?.match(/./)&&i?.match(/./)&&(e.style[n]=i)},children:"Add"})]}),(0,s.jsxs)("div",{className:"flex-wrap",children:[(0,s.jsx)("button",{onClick:t=>{e.removeAttribute("style")},className:"secondary grow",children:"Reset"}),(0,s.jsx)("button",{onClick:t=>{e.style.display="flex",e.style.alignItems="center",e.style.gap="10px"},className:"outlined black grow",children:"Flex"}),(0,s.jsx)("button",{onClick:t=>{e.style.backgroundColor="rgb(241 245 249)"},className:"outlined black grow",children:"BG-Slate-100"}),(0,s.jsx)("button",{onClick:t=>{e.style.backgroundColor="#F6F4F8"},className:"outlined black grow",children:"BG-Main-light"}),(0,s.jsx)("button",{onClick:t=>{e.style.padding="10px"},className:"outlined black grow",children:"Padding-10px"}),(0,s.jsx)("button",{onClick:t=>{e.style.padding="10px 20px"},className:"outlined black grow",children:"Padding-10px-20px"}),(0,s.jsx)("button",{onClick:t=>{e.style.borderRadius="5px"},className:"outlined black grow",children:"Border-Radius-5px"}),(0,s.jsx)("button",{onClick:t=>{e.style.border="1px solid rgb(241 245 249)"},className:"outlined black grow",children:"Border-Slate-100"}),(0,s.jsx)("button",{onClick:t=>{e.style.border="1px solid rgb(226 232 240)"},className:"outlined black grow",children:"Border-Slate-200"}),(0,s.jsx)("button",{onClick:t=>{e.style.border="1px solid rgb(203 213 225)"},className:"outlined black grow",children:"Border-Slate-300"})]}),(0,s.jsx)("span",{className:"font-semibold text-xl mt-4",children:"Add class Name"}),(0,s.jsxs)("div",{className:"items-stretch p-2 bg-slate-100 rounded add-class-name-block",children:[(0,s.jsx)("input",{type:"text",placeholder:"Class Name",onKeyDownCapture:t=>{let l=t.target,s=l.closest(".add-class-name-block")?.children[0];if(t.key?.match(/enter/i)){let t=s?.value;if(!t?.match(/./))return;e.classList.add(t)}}}),(0,s.jsx)("button",{onClick:t=>{let l=t.target,s=l.closest(".add-class-name-block")?.children[0],a=s?.value;a?.match(/./)&&e.classList.add(a)},children:"Add"}),(0,s.jsx)("button",{onClick:t=>{let l=t.target,s=l.closest(".add-class-name-block")?.children[0],a=s?.value;a?.m
|