efficient-shell 12.20.0 → 12.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -5
- package/dist/{Browser-Z7NIFAGY.js → Browser-PVENJWOP.js} +11 -11
- package/dist/{Files-KOUPCFRC.js → Files-SJVIIPJO.js} +127 -127
- package/dist/{Notepad-Y37G5PTB.js → Notepad-RULHLP22.js} +6 -6
- package/dist/{Preview-GB33WBQY.js → Preview-WP3J555J.js} +11 -11
- package/dist/apps/index.js +1 -1
- package/dist/bin/media-host-check.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/chunk-63TCQAGE.js +6 -0
- package/dist/chunk-G2Y5I5OR.js +2 -0
- package/dist/chunk-LBKKKZ4M.js +3 -0
- package/dist/{chunk-P54AD2EM.js → chunk-M7RGRV2J.js} +2 -2
- package/dist/{chunk-TKUJUQK4.js → chunk-MEN4B6NP.js} +11 -11
- package/dist/chunk-MQP7E4CQ.js +1 -0
- package/dist/chunk-OM42AUMS.js +4 -0
- package/dist/chunk-TOVEZAIM.js +5 -0
- package/dist/{chunk-QTXXHKAV.js → chunk-VVT4J75X.js} +1 -1
- package/dist/chunk-WBGJ4XB7.js +4 -0
- package/dist/{chunk-MFEPLP7Y.js → chunk-XHZVUO6F.js} +5 -5
- package/dist/{chunk-NAN2IW2H.js → chunk-YW3UKSON.js} +2 -2
- package/dist/chunk-ZSEB7XW4.js +1 -0
- package/dist/format/index.d.ts +50 -8
- package/dist/format/index.js +1 -1
- package/dist/forms/BorderInput.d.ts +7 -1
- package/dist/forms/BorderInput.js +1 -1
- package/dist/forms/ColorPicker.js +1 -1
- package/dist/forms/CornersInput.d.ts +10 -1
- package/dist/forms/CornersInput.js +1 -1
- package/dist/forms/InputNumber.d.ts +12 -0
- package/dist/forms/InputNumber.js +1 -1
- package/dist/forms/PositionInput.d.ts +8 -1
- package/dist/forms/PositionInput.js +1 -1
- package/dist/forms/SidesInput.d.ts +3 -6
- package/dist/forms/SidesInput.js +1 -1
- package/dist/forms/Slider.d.ts +19 -1
- package/dist/forms/Slider.js +1 -1
- package/dist/forms/UnitMenu.d.ts +24 -1
- package/dist/forms/UnitMenu.js +2 -1
- package/dist/forms/WidthsBar.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +41 -41
- package/dist/motion/entrance.d.ts +4 -1
- package/dist/motion/entrance.js +1 -1
- package/dist/motion.css +49 -17
- package/dist/telemetry/index.js +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-DTSOYFQE.js +0 -4
- package/dist/chunk-FBUFB536.js +0 -6
- package/dist/chunk-FE5DH5OM.js +0 -3
- package/dist/chunk-L4QGZ26E.js +0 -1
- package/dist/chunk-Q2SCJQ5H.js +0 -1
- package/dist/chunk-QI4235JY.js +0 -2
- package/dist/chunk-S7MNRAYS.js +0 -4
- package/dist/chunk-SET3R227.js +0 -4
package/README.md
CHANGED
|
@@ -1594,10 +1594,16 @@ Round 4:
|
|
|
1594
1594
|
kit has one number input.
|
|
1595
1595
|
**`UnitMenu`** (`value`, `options`, `onChange`, `label`) is the unit inside a
|
|
1596
1596
|
number box as a control: the text is the trigger and the list opens below it.
|
|
1597
|
-
|
|
1598
|
-
|
|
1597
|
+
The list opens on the chosen unit. A length box asks for it with ONE prop,
|
|
1598
|
+
`units` (`UnitChoice`: `options`, `onChange`, `label`): `InputNumber` draws
|
|
1599
|
+
it in place of its string `suffix`, which stays the unit in force. `Slider`,
|
|
1600
|
+
`SidesInput`, `CornersInput` (its unit in force is `radiusUnit`),
|
|
1601
|
+
`BorderInput` and `PositionInput` pass their `units` there, so the menu is
|
|
1602
|
+
drawn in one place. A choice of one unit, or none, is plain text.
|
|
1599
1603
|
- **`Slider`**: `shiftStep`, `placeholderValue` and `stepFrom` (see `Slider`
|
|
1600
|
-
above).
|
|
1604
|
+
above). `onCommit(value)` reports the value once it is final: the range's
|
|
1605
|
+
own `change` (let go, or a key that moved it), or the box left or given
|
|
1606
|
+
Enter; only a value that changed, and `null` for an emptied box.
|
|
1601
1607
|
- **`Select`**: `readOnly` is `Input`'s read-only ground, not the disabled
|
|
1602
1608
|
fade: no chevron, never opens, still focusable, `aria-readonly`. It draws the
|
|
1603
1609
|
desktop field on touch too, since a native `<select>` can only fade.
|
|
@@ -2434,7 +2440,30 @@ the track reads `--motion-pin-on` (1 pinned, the default; 0 drawn as a plain
|
|
|
2434
2440
|
section), `--motion-pin-top` (where the frame stops, default `0px`; a host with
|
|
2435
2441
|
a pinned header gives its height) and `--motion-pin-length`; the stick form
|
|
2436
2442
|
reads `--motion-pin-top` and `--motion-pin-position` (`sticky`, the default;
|
|
2437
|
-
`static` for a view where it is off).
|
|
2443
|
+
`static` for a view where it is off). A view can also draw the stick look
|
|
2444
|
+
inside the track: `--motion-pin-stick: 1` gives the track the section's own
|
|
2445
|
+
height, sticks it at its stop while its parent lasts, lets the later sections
|
|
2446
|
+
slide over it, and plays its parts as in a plain section. That value always
|
|
2447
|
+
goes with `--motion-pin-track-position: sticky`, so both come from one call:
|
|
2448
|
+
`pinStickVars(true)` returns the pair (`1`, `sticky`) and `pinStickVars(false)`
|
|
2449
|
+
the off pair (`0`, `relative`), so a view rule can turn stick off where the
|
|
2450
|
+
base view has it on. `pinAttrs(value, 'track', { stick: true })` writes the on
|
|
2451
|
+
pair inline for a track that sticks in every view (without it, no inline
|
|
2452
|
+
value, so a host's per-view rule wins); a host with a different answer per view calls
|
|
2453
|
+
`pinStickVars` once per view and puts the result in that view's rule. The
|
|
2454
|
+
pull that lets the next section slide over the frame is the track's own
|
|
2455
|
+
`margin-bottom`, so it reads the same view answers as the track. The custom
|
|
2456
|
+
property names are exported, one each: `SCROLL_ZOOM_VAR`,
|
|
2457
|
+
`SCROLL_ORIGIN_VAR`, `SCROLL_START_VAR`, `SCROLL_END_VAR`,
|
|
2458
|
+
`SCROLL_PROGRESS_VAR`, `PIN_ON_VAR`, `PIN_TOP_VAR`, `PIN_LENGTH_VAR`,
|
|
2459
|
+
`PIN_POSITION_VAR`, `PIN_STICK_VAR`, `PIN_TRACK_POSITION_VAR` and
|
|
2460
|
+
`PIN_ABOVE_Z_VAR` (and, for an
|
|
2461
|
+
Entrance, `ENTRANCE_DURATION_VAR` and `ENTRANCE_DELAY_VAR`); a host writes
|
|
2462
|
+
a name from these, never a copied string. `pinAttrs(value, form, { above:
|
|
2463
|
+
true })` writes `PIN_ABOVE_ATTR` (`data-motion-pin-above`): a stuck box (a bar)
|
|
2464
|
+
then stays painted above the sections after it, at `--motion-pin-above-z`
|
|
2465
|
+
(default 30, under a host header and its page overlays); a track takes it only where a view draws it
|
|
2466
|
+
stuck. The track and frame take minimum
|
|
2438
2467
|
heights, so a frame with more content than one screen grows. Inside a track,
|
|
2439
2468
|
Start and End (written 0-100, no unit) are shares of the effect screens,
|
|
2440
2469
|
counted from the moment the frame sticks, so a stop is exact. `--motion-scroll-distance` (default `20vh`) tunes Move up and Move down,
|
|
@@ -2449,7 +2478,8 @@ without scroll timelines gets `armScrollProgress(root)`, which writes
|
|
|
2449
2478
|
effect's own translate or scale does not move it;
|
|
2450
2479
|
`scrollProgress` is the same sum, for a host that needs the number. With
|
|
2451
2480
|
reduced motion a track does not pin and every part shows its own look, with
|
|
2452
|
-
no effect; a stuck section (the stick form
|
|
2481
|
+
no effect; a stuck section (the stick form, or a track a view draws stuck)
|
|
2482
|
+
still sticks, as nothing moves on it.
|
|
2453
2483
|
|
|
2454
2484
|
**Hover.** `HOVER_KINDS` is the one list of hover kinds, in panel order (None,
|
|
2455
2485
|
Next image, Rotate, Zoom, Lift, Black and white). `hoverKindsOf(offered)` gives
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import{InputEndActionButton as e}from"./chunk-6RK6R3RY.js";import"./chunk-SFULX4E3.js";import"./chunk-FTMCNC66.js";import"./chunk-SV5RRBVA.js";import"./chunk-AYZY3YNC.js";import{peekBrowserStartUrl as t,claimBrowserStartUrl as o}from"./chunk-LWLCNQY7.js";import{AboutApp as r}from"./chunk-
|
|
1
|
+
import{InputEndActionButton as e}from"./chunk-6RK6R3RY.js";import"./chunk-SFULX4E3.js";import"./chunk-FTMCNC66.js";import"./chunk-SV5RRBVA.js";import"./chunk-AYZY3YNC.js";import{peekBrowserStartUrl as t,claimBrowserStartUrl as o}from"./chunk-LWLCNQY7.js";import{AboutApp as r}from"./chunk-M7RGRV2J.js";import{WindowTitle as n}from"./chunk-XQNZJNEJ.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-DK5SXOXJ.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-UR2ECNBB.js";import{confirm as s}from"./chunk-HMT3MES3.js";import"./chunk-D2WJAF62.js";import"./chunk-MWTCGJAI.js";import"./chunk-RIG5FEVS.js";import"./chunk-5WK56FA3.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-CJHYOHMU.js";import"./chunk-JZBLOIL7.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import"./chunk-KC3EX26K.js";import"./chunk-MQP7E4CQ.js";import"./chunk-DWGYC7OD.js";import"./chunk-JMGDGNM7.js";import"./chunk-THLXDI76.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-EVYD6UFQ.js";import"./chunk-M5K4AX4E.js";import{Icon as a}from"./chunk-XZXFUZIK.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-G67CJAQ2.js";import"./chunk-SOZCWT6I.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-JSHMIMAJ.js";import"./chunk-C3QOHMR6.js";import{useRef as i,useEffect as l,useState as c}from"react";import{jsxs as m,jsx as u,Fragment as h}from"react/jsx-runtime";var d="react-os-shell:browser-bookmarks",p="react-os-shell:browser-homepage",k="https://en.wikipedia.org/wiki/Main_Page",b=[{label:"Wikipedia",url:"https://en.wikipedia.org/wiki/Main_Page"},{label:"DevDocs",url:"https://devdocs.io"},{label:"Example",url:"https://example.com"}],g=new Set(["ac ad ae af ag ai al am ao aq ar as at au aw ax az ba bb bd be bf bg bh bi","bj bm bn bo br bs bt bw by bz ca cc cd cf cg ch ci ck cl cm cn co cr cu cv","cw cx cy cz de dj dk dm do dz ec ee eg er es et eu fi fj fk fm fo fr ga gd","ge gf gg gh gi gl gm gn gp gq gr gs gt gu gw gy hk hm hn hr ht hu id ie il","im in io iq ir is it je jm jo jp ke kg kh ki km kn kp kr kw ky kz la lb lc","li lk lr ls lt lu lv ly ma mc md me mg mh mk ml mm mn mo mp mq mr ms mt mu","mv mw mx my mz na nc ne nf ng ni nl no np nr nu nz om pa pe pf pg ph pk pl","pm pn pr ps pt pw py qa re ro rs ru rw sa sb sc sd se sg sh si sk sl sm sn","so sr ss st su sv sx sy sz tc td tf tg th tj tk tl tm tn to tr tt tv tw tz","ua ug uk us uy uz va vc ve vg vi vn vu wf ws ye yt za zm zw","com net org edu gov mil int info biz name pro app dev xyz online site tech","store shop cloud design digital agency studio media news blog live life","world today email systems solutions services software page link space host","press wiki team group works careers finance capital energy academy"].join(" ").split(" "));function f(e){let t=e.trim();return t?/^[a-z][a-z0-9+.-]*:\/\//i.test(t)?t:function(e){const t=/^([\w-]+\.)+([a-z]{2,})(\/.*)?$/i.exec(e);return null!==t&&g.has(t[2].toLowerCase())}(t)?"https://"+t:"https://duckduckgo.com/?q="+encodeURIComponent(t):""}var w=["duckduckgo.com","developer.mozilla.org","google.com","gmail.com","youtube.com","facebook.com","instagram.com","whatsapp.com","twitter.com","x.com","github.com","gitlab.com","linkedin.com","reddit.com","pinterest.com","amazon.com","amazon.ca","amazon.co.uk","apple.com","icloud.com","microsoft.com","outlook.com","live.com","office.com","netflix.com","spotify.com","paypal.com","stripe.com","chat.openai.com","chatgpt.com","claude.ai"];function x(){if("undefined"==typeof window)return b;try{const e=localStorage.getItem(d);if(!e)return b;const t=JSON.parse(e);if(Array.isArray(t)&&t.every(e=>"string"==typeof e?.url))return t}catch{}return b}function y(){return"undefined"==typeof window?k:localStorage.getItem(p)||k}function v(){const h=i(void 0);void 0===h.current&&(h.current=t()),l(()=>{null!=h.current&&o(h.current)},[]);const k=h.current?f(h.current.url):"",[b,g]=c(y),[w,v]=c(k||b),[C,R]=c(w),[W,S]=c([w]),[M,z]=c(0),[D,J]=c(0),[E,L]=c(x),[H,T]=c(!1),[U,G]=c(null),X=i(null),A=i(null);l(()=>{try{localStorage.setItem(d,JSON.stringify(E))}catch{}},[E]);const F=e=>{const t=f(e);t&&(v(t),R(t),S(e=>{const o=e.slice(0,M+1);return o.push(t),o}),z(e=>e+1),T(!1))},K=()=>{"undefined"!=typeof window&&window.open(w,"_blank","noopener,noreferrer")},O=()=>{const e=U?.trim();e?(L(t=>[...t,{label:e,url:w}]),G(null)):G(null)};l(()=>{if(null===U)return;X.current?.focus(),X.current?.select();const e=e=>{const t=e.target;t?.closest("[data-bookmark-popover]")||G(null)},t=setTimeout(()=>document.addEventListener("mousedown",e),0);return()=>{clearTimeout(t),document.removeEventListener("mousedown",e)}},[null!==U]);const Q=e=>{L(t=>t.filter((t,o)=>o!==e))},I=M>0,Y=M<W.length-1,Z=E.some(e=>e.url===w),B="p-2 rounded hover:bg-gray-200 transition-colors text-gray-600 disabled:opacity-30";/* @__PURE__ */
|
|
2
2
|
return m("div",{className:"relative flex flex-col h-full bg-white",children:[
|
|
3
3
|
/* @__PURE__ */u(n,{title:`Browser - ${N(w)}`}),
|
|
4
4
|
/* @__PURE__ */u(r,{app:"browser"}),
|
|
5
5
|
/* @__PURE__ */m("div",{className:"flex items-center gap-1 px-2 py-2 border-b border-line bg-surface-sunken shrink-0",children:[
|
|
6
|
-
/* @__PURE__ */u("button",{onClick:()=>{if(
|
|
7
|
-
/* @__PURE__ */u("button",{onClick:()=>{if(
|
|
8
|
-
/* @__PURE__ */u("button",{onClick:()=>
|
|
6
|
+
/* @__PURE__ */u("button",{onClick:()=>{if(M>0){const e=M-1;z(e),v(W[e]),R(W[e]),T(!1)}},disabled:!I,className:B,title:"Back",children:/* @__PURE__ */u(a,{name:"chevron-left",className:"h-4 w-4",strokeWidth:2})}),
|
|
7
|
+
/* @__PURE__ */u("button",{onClick:()=>{if(M<W.length-1){const e=M+1;z(e),v(W[e]),R(W[e]),T(!1)}},disabled:!Y,className:B,title:"Forward",children:/* @__PURE__ */u(a,{name:"chevron-right",className:"h-4 w-4",strokeWidth:2})}),
|
|
8
|
+
/* @__PURE__ */u("button",{onClick:()=>J(e=>e+1),className:B,title:"Refresh",children:/* @__PURE__ */u(a,{name:"refresh",className:"h-4 w-4",strokeWidth:1.8})}),
|
|
9
9
|
/* @__PURE__ */u("button",{onClick:()=>F(b),className:B,title:"Home",children:/* @__PURE__ */u(a,{name:"home",className:"h-4 w-4",strokeWidth:1.8})}),
|
|
10
10
|
/* @__PURE__ */u("form",{onSubmit:e=>{e.preventDefault(),F(C)},className:"flex-1 flex items-center mx-1",children:/* @__PURE__ */m("div",{className:"flex items-center w-full bg-white border border-gray-300 rounded focus-within:border-blue-400 focus-within:ring-1 focus-within:ring-blue-200",children:[
|
|
11
11
|
/* @__PURE__ */u("span",{className:"px-2 text-gray-400 text-xs",children:w.startsWith("https://")?"🔒":"⚠️"}),
|
|
12
|
-
/* @__PURE__ */u("input",{type:"text",value:C,onChange:e=>
|
|
13
|
-
/* @__PURE__ */u("span",{className:"flex pr-1",children:/* @__PURE__ */u(e,{action:{label:"Reset to current URL",icon:/* @__PURE__ */u(a,{name:"close"}),onClick:()=>
|
|
14
|
-
/* @__PURE__ */u("button",{"data-bookmark-popover":!0,onClick:()=>
|
|
12
|
+
/* @__PURE__ */u("input",{type:"text",value:C,onChange:e=>R(e.target.value),onFocus:e=>e.target.select(),className:"flex-1 px-1 py-1 text-sm bg-transparent outline-none font-mono",spellCheck:!1,placeholder:"Enter URL or search…"}),w!==C&&
|
|
13
|
+
/* @__PURE__ */u("span",{className:"flex pr-1",children:/* @__PURE__ */u(e,{action:{label:"Reset to current URL",icon:/* @__PURE__ */u(a,{name:"close"}),onClick:()=>R(w)}})})]})}),
|
|
14
|
+
/* @__PURE__ */u("button",{"data-bookmark-popover":!0,onClick:()=>Z?Q(E.findIndex(e=>e.url===w)):void G(N(w)),className:B+" "+(Z?"text-yellow-500":""),title:Z?"Remove bookmark":"Add bookmark",children:/* @__PURE__ */u(a,{name:"star",className:"h-4 w-4",fill:Z?"currentColor":"none",strokeWidth:1.5})}),
|
|
15
15
|
/* @__PURE__ */u("button",{onClick:K,className:B,title:"Open in new tab",children:/* @__PURE__ */u(a,{name:"external",className:"h-4 w-4",strokeWidth:1.5})}),
|
|
16
16
|
/* @__PURE__ */u("button",{onClick:()=>T(e=>!e),className:B,title:"Embedding help",children:/* @__PURE__ */u(a,{name:"help",className:"h-4 w-4",strokeWidth:1.5})})]}),null!==U&&/* @__PURE__ */m("div",{"data-bookmark-popover":!0,className:"absolute right-3 top-12 z-30 w-72 bg-white border border-gray-200 rounded-md shadow-lg p-3",children:[
|
|
17
17
|
/* @__PURE__ */u("div",{className:"text-2xs font-semibold uppercase tracking-wide text-ink-faint mb-1",children:"Bookmark this page"}),
|
|
18
18
|
/* @__PURE__ */u("div",{className:"text-2xs text-ink-faintest truncate mb-2 font-mono",title:w,children:w}),
|
|
19
|
-
/* @__PURE__ */u("input",{ref:
|
|
19
|
+
/* @__PURE__ */u("input",{ref:X,type:"text",value:U,onChange:e=>G(e.target.value),onKeyDown:e=>{"Enter"===e.key?O():"Escape"===e.key&&G(null)},placeholder:"Name",className:"w-full text-sm px-2 h-8 border border-line-strong rounded focus:outline-none focus:border-blue-400 focus:ring-1 focus:ring-blue-200"}),
|
|
20
20
|
/* @__PURE__ */m("div",{className:"flex justify-end gap-1 mt-2",children:[
|
|
21
|
-
/* @__PURE__ */u("button",{onClick:()=>
|
|
21
|
+
/* @__PURE__ */u("button",{onClick:()=>G(null),className:"px-2 py-1 text-xs text-gray-600 hover:bg-gray-100 rounded",children:"Cancel"}),
|
|
22
22
|
/* @__PURE__ */u("button",{onClick:O,disabled:!U.trim(),className:"px-2 py-1 text-xs bg-blue-500 text-white rounded hover:bg-blue-600 disabled:opacity-40",children:"Save"})]})]}),
|
|
23
|
-
/* @__PURE__ */m("div",{className:"flex items-center gap-0.5 px-2 py-1 border-b border-gray-200 bg-white shrink-0 overflow-x-auto",children:[0===
|
|
23
|
+
/* @__PURE__ */m("div",{className:"flex items-center gap-0.5 px-2 py-1 border-b border-gray-200 bg-white shrink-0 overflow-x-auto",children:[0===E.length&&/* @__PURE__ */u("span",{className:"text-2xs text-ink-faintest italic px-2",children:"No bookmarks yet — star the address bar to add one."}),E.map((e,t)=>/* @__PURE__ */m("button",{onClick:()=>F(e.url),onContextMenu:async o=>{o.preventDefault();await s({title:"Remove bookmark",message:`"${e.label}" will be removed from your bookmarks.`,confirmLabel:"Remove",variant:"danger"})&&Q(t)},className:"flex items-center gap-2 px-2 py-0.5 rounded text-xs text-ink hover:bg-gray-100 whitespace-nowrap",title:`${e.url}\n(right-click to remove)`,children:[
|
|
24
24
|
/* @__PURE__ */u("img",{src:`https://icons.duckduckgo.com/ip3/${new URL(e.url).hostname}.ico`,alt:"",className:"h-3.5 w-3.5",onError:e=>{e.target.style.visibility="hidden"}}),e.label]},t)),
|
|
25
25
|
/* @__PURE__ */u("div",{className:"flex-1"}),
|
|
26
26
|
/* @__PURE__ */u("button",{onClick:()=>{g(w);try{localStorage.setItem(p,w)}catch{}},className:"px-2 py-0.5 text-2xs text-ink-faint hover:text-ink-strong",title:"Set current page as homepage",children:"Set as home"})]}),
|
|
27
|
-
/* @__PURE__ */u("div",{className:"flex-1 relative min-h-0 bg-gray-50",children:/* @__PURE__ */u(j,{url:w,iframeKey:
|
|
27
|
+
/* @__PURE__ */u("div",{className:"flex-1 relative min-h-0 bg-gray-50",children:/* @__PURE__ */u(j,{url:w,iframeKey:D,iframeRef:A,openExternal:K,showHelp:H,dismissHelp:()=>T(!1)})})]})}function N(e){try{return new URL(e).hostname.replace(/^www\./,"")}catch{return e}}function j({url:e,iframeKey:t,iframeRef:o,openExternal:r,showHelp:n,dismissHelp:s}){const[i,d]=c(!1);l(()=>{d(!1)},[e]);return function(e){try{const t=new URL(e).hostname.toLowerCase();return w.some(e=>t===e||t.endsWith("."+e))}catch{return!1}}(e)&&!i?/* @__PURE__ */u("div",{className:"absolute inset-0 flex items-center justify-center bg-white p-8",children:/* @__PURE__ */m("div",{className:"max-w-md text-center",children:[
|
|
28
28
|
/* @__PURE__ */u(a,{name:"no-symbol",className:"h-14 w-14 mx-auto text-gray-300 mb-3",strokeWidth:1.2}),
|
|
29
29
|
/* @__PURE__ */m("h3",{className:"text-base font-semibold text-gray-800 mb-1",children:[N(e)," can't be embedded"]}),
|
|
30
30
|
/* @__PURE__ */m("p",{className:"text-sm text-gray-500 mb-4",children:["This site sends an ",
|