@convergeapp/chat-widget 1.0.1 → 1.0.2
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/dist/widget.js +1 -0
- package/package.json +1 -1
package/dist/widget.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(':root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.ol-overviewmap .ol-viewport:hover{cursor:pointer}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-green-600:oklch(62.7% .194 149.214);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-indigo-500:oklch(58.5% .233 277.117);--color-zinc-50:oklch(98.5% 0 0);--color-zinc-100:oklch(96.7% .001 286.375);--color-zinc-200:oklch(92% .004 286.32);--color-zinc-300:oklch(87.1% .006 286.286);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-500:oklch(55.2% .016 285.938);--color-zinc-600:oklch(44.2% .017 285.786);--color-zinc-700:oklch(37% .013 285.805);--color-zinc-800:oklch(27.4% .006 286.033);--color-zinc-900:oklch(21% .006 285.885);--color-white:#fff;--spacing:.25rem;--container-2xl:42rem;--container-3xl:48rem;--container-5xl:64rem;--container-6xl:72rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-6xl:3.75rem;--text-6xl--line-height:1;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--leading-relaxed:1.625;--radius-lg:.5rem;--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.-top-4{top:calc(var(--spacing)*-4)}.right-6{right:calc(var(--spacing)*6)}.bottom-6{bottom:calc(var(--spacing)*6)}.left-1\\/2{left:50%}.z-2147483647{z-index:2147483647}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.mb-16{margin-bottom:calc(var(--spacing)*16)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-14{height:calc(var(--spacing)*14)}.h-32{height:calc(var(--spacing)*32)}.h-\\[600px\\]{height:600px}.max-h-80{max-height:calc(var(--spacing)*80)}.min-h-\\[180px\\]{min-height:180px}.min-h-screen{min-height:100vh}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-10{width:calc(var(--spacing)*10)}.w-12{width:calc(var(--spacing)*12)}.w-14{width:calc(var(--spacing)*14)}.w-96{width:calc(var(--spacing)*96)}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-6xl{max-width:var(--container-6xl)}.max-w-\\[75\\%\\]{max-width:75%}.max-w-full{max-width:100%}.min-w-0{min-width:calc(var(--spacing)*0)}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.flex-col{flex-direction:column}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.gap-8{gap:calc(var(--spacing)*8)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-blue-400{border-color:var(--color-blue-400)}.border-blue-600{border-color:var(--color-blue-600)}.border-zinc-200{border-color:var(--color-zinc-200)}.border-zinc-300{border-color:var(--color-zinc-300)}.border-t-transparent{border-top-color:#0000}.bg-blue-500{background-color:var(--color-blue-500)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-white{background-color:var(--color-white)}.bg-zinc-50{background-color:var(--color-zinc-50)}.bg-zinc-100{background-color:var(--color-zinc-100)}.bg-zinc-900{background-color:var(--color-zinc-900)}.object-contain{object-fit:contain}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-12{padding-block:calc(var(--spacing)*12)}.py-20{padding-block:calc(var(--spacing)*20)}.pt-2{padding-top:calc(var(--spacing)*2)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.text-center{text-align:center}.text-left{text-align:left}.font-sans{font-family:var(--font-sans)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.wrap-break-word{overflow-wrap:break-word}.text-blue-100{color:var(--color-blue-100)}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.text-green-600{color:var(--color-green-600)}.text-indigo-500{color:var(--color-indigo-500)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-white{color:var(--color-white)}.text-zinc-300{color:var(--color-zinc-300)}.text-zinc-400{color:var(--color-zinc-400)}.text-zinc-500{color:var(--color-zinc-500)}.text-zinc-600{color:var(--color-zinc-600)}.text-zinc-700{color:var(--color-zinc-700)}.text-zinc-900{color:var(--color-zinc-900)}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.shadow-\\[0_0_20px_rgba\\(0\\,0\\,0\\,0\\.15\\)\\]{--tw-shadow:0 0 20px var(--tw-shadow-color,#00000026);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.placeholder\\:text-zinc-300::placeholder{color:var(--color-zinc-300)}@media(hover:hover){.hover\\:border-blue-500:hover{border-color:var(--color-blue-500)}.hover\\:bg-blue-50:hover{background-color:var(--color-blue-50)}.hover\\:bg-blue-500:hover{background-color:var(--color-blue-500)}.hover\\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\\:bg-white\\/20:hover{background-color:#fff3}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-white\\/20:hover{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.hover\\:bg-zinc-50:hover{background-color:var(--color-zinc-50)}.hover\\:bg-zinc-100:hover{background-color:var(--color-zinc-100)}.hover\\:bg-zinc-800:hover{background-color:var(--color-zinc-800)}.hover\\:text-zinc-900:hover{color:var(--color-zinc-900)}}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-blue-500:focus{--tw-ring-color:var(--color-blue-500)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}@media(min-width:40rem){.sm\\:flex{display:flex}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:flex-row{flex-direction:row}.sm\\:px-6{padding-inline:calc(var(--spacing)*6)}.sm\\:py-32{padding-block:calc(var(--spacing)*32)}.sm\\:text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.sm\\:text-6xl{font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.sm\\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media(min-width:64rem){.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}}*{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}@media(max-width:640px){#__converge-chat-widget>div>div:last-child{width:calc(100vw - 2rem)!important;height:calc(100vh - 2rem)!important;bottom:1rem!important;right:1rem!important}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@keyframes spin{to{transform:rotate(360deg)}}')),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
1
2
|
(function(){"use strict";var Tn,st,Eo,Ge,wo,vo,Co,Ro,bs,Ms,Ls,So,Fi={},Io=[],Mh=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,bn=Array.isArray;function he(n,t){for(var e in t)n[e]=t[e];return n}function As(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function Lh(n,t,e){var i,s,r,o={};for(r in t)r=="key"?i=t[r]:r=="ref"?s=t[r]:o[r]=t[r];if(arguments.length>2&&(o.children=arguments.length>3?Tn.call(arguments,2):e),typeof n=="function"&&n.defaultProps!=null)for(r in n.defaultProps)o[r]===void 0&&(o[r]=n.defaultProps[r]);return Mn(n,o,i,s,null)}function Mn(n,t,e,i,s){var r={type:n,props:t,key:e,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:s??++Eo,__i:-1,__u:0};return s==null&&st.vnode!=null&&st.vnode(r),r}function Ni(n){return n.children}function Ln(n,t){this.props=n,this.context=t}function ni(n,t){if(t==null)return n.__?ni(n.__,n.__i+1):null;for(var e;t<n.__k.length;t++)if((e=n.__k[t])!=null&&e.__e!=null)return e.__e;return typeof n.type=="function"?ni(n):null}function To(n){var t,e;if((n=n.__)!=null&&n.__c!=null){for(n.__e=n.__c.base=null,t=0;t<n.__k.length;t++)if((e=n.__k[t])!=null&&e.__e!=null){n.__e=n.__c.base=e.__e;break}return To(n)}}function Os(n){(!n.__d&&(n.__d=!0)&&Ge.push(n)&&!An.__r++||wo!=st.debounceRendering)&&((wo=st.debounceRendering)||vo)(An)}function An(){for(var n,t,e,i,s,r,o,a=1;Ge.length;)Ge.length>a&&Ge.sort(Co),n=Ge.shift(),a=Ge.length,n.__d&&(e=void 0,i=void 0,s=(i=(t=n).__v).__e,r=[],o=[],t.__P&&((e=he({},i)).__v=i.__v+1,st.vnode&&st.vnode(e),Ps(t.__P,e,i,t.__n,t.__P.namespaceURI,32&i.__u?[s]:null,r,s??ni(i),!!(32&i.__u),o),e.__v=i.__v,e.__.__k[e.__i]=e,Oo(r,e,o),i.__e=i.__=null,e.__e!=s&&To(e)));An.__r=0}function bo(n,t,e,i,s,r,o,a,l,h,c){var u,d,f,g,m,_,p,y=i&&i.__k||Io,v=t.length;for(l=Ah(e,t,y,l,v),u=0;u<v;u++)(f=e.__k[u])!=null&&(d=f.__i==-1?Fi:y[f.__i]||Fi,f.__i=u,_=Ps(n,f,d,s,r,o,a,l,h,c),g=f.__e,f.ref&&d.ref!=f.ref&&(d.ref&&ks(d.ref,null,f),c.push(f.ref,f.__c||g,f)),m==null&&g!=null&&(m=g),(p=!!(4&f.__u))||d.__k===f.__k?l=Mo(f,l,n,p):typeof f.type=="function"&&_!==void 0?l=_:g&&(l=g.nextSibling),f.__u&=-7);return e.__e=m,l}function Ah(n,t,e,i,s){var r,o,a,l,h,c=e.length,u=c,d=0;for(n.__k=new Array(s),r=0;r<s;r++)(o=t[r])!=null&&typeof o!="boolean"&&typeof o!="function"?(l=r+d,(o=n.__k[r]=typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?Mn(null,o,null,null,null):bn(o)?Mn(Ni,{children:o},null,null,null):o.constructor==null&&o.__b>0?Mn(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=n,o.__b=n.__b+1,a=null,(h=o.__i=Oh(o,e,l,u))!=-1&&(u--,(a=e[h])&&(a.__u|=2)),a==null||a.__v==null?(h==-1&&(s>c?d--:s<c&&d++),typeof o.type!="function"&&(o.__u|=4)):h!=l&&(h==l-1?d--:h==l+1?d++:(h>l?d--:d++,o.__u|=4))):n.__k[r]=null;if(u)for(r=0;r<c;r++)(a=e[r])!=null&&(2&a.__u)==0&&(a.__e==i&&(i=ni(a)),Do(a,a));return i}function Mo(n,t,e,i){var s,r;if(typeof n.type=="function"){for(s=n.__k,r=0;s&&r<s.length;r++)s[r]&&(s[r].__=n,t=Mo(s[r],t,e,i));return t}n.__e!=t&&(i&&(t&&n.type&&!t.parentNode&&(t=ni(n)),e.insertBefore(n.__e,t||null)),t=n.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Oh(n,t,e,i){var s,r,o,a=n.key,l=n.type,h=t[e],c=h!=null&&(2&h.__u)==0;if(h===null&&n.key==null||c&&a==h.key&&l==h.type)return e;if(i>(c?1:0)){for(s=e-1,r=e+1;s>=0||r<t.length;)if((h=t[o=s>=0?s--:r++])!=null&&(2&h.__u)==0&&a==h.key&&l==h.type)return o}return-1}function Lo(n,t,e){t[0]=="-"?n.setProperty(t,e??""):n[t]=e==null?"":typeof e!="number"||Mh.test(t)?e:e+"px"}function On(n,t,e,i,s){var r,o;t:if(t=="style")if(typeof e=="string")n.style.cssText=e;else{if(typeof i=="string"&&(n.style.cssText=i=""),i)for(t in i)e&&t in e||Lo(n.style,t,"");if(e)for(t in e)i&&e[t]==i[t]||Lo(n.style,t,e[t])}else if(t[0]=="o"&&t[1]=="n")r=t!=(t=t.replace(Ro,"$1")),o=t.toLowerCase(),t=o in n||t=="onFocusOut"||t=="onFocusIn"?o.slice(2):t.slice(2),n.l||(n.l={}),n.l[t+r]=e,e?i?e.u=i.u:(e.u=bs,n.addEventListener(t,r?Ls:Ms,r)):n.removeEventListener(t,r?Ls:Ms,r);else{if(s=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in n)try{n[t]=e??"";break t}catch{}typeof e=="function"||(e==null||e===!1&&t[4]!="-"?n.removeAttribute(t):n.setAttribute(t,t=="popover"&&e==1?"":e))}}function Ao(n){return function(t){if(this.l){var e=this.l[t.type+n];if(t.t==null)t.t=bs++;else if(t.t<e.u)return;return e(st.event?st.event(t):t)}}}function Ps(n,t,e,i,s,r,o,a,l,h){var c,u,d,f,g,m,_,p,y,v,x,w,R,T,S,I,M,O=t.type;if(t.constructor!=null)return null;128&e.__u&&(l=!!(32&e.__u),r=[a=t.__e=e.__e]),(c=st.__b)&&c(t);t:if(typeof O=="function")try{if(p=t.props,y="prototype"in O&&O.prototype.render,v=(c=O.contextType)&&i[c.__c],x=c?v?v.props.value:c.__:i,e.__c?_=(u=t.__c=e.__c).__=u.__E:(y?t.__c=u=new O(p,x):(t.__c=u=new Ln(p,x),u.constructor=O,u.render=Dh),v&&v.sub(u),u.props=p,u.state||(u.state={}),u.context=x,u.__n=i,d=u.__d=!0,u.__h=[],u._sb=[]),y&&u.__s==null&&(u.__s=u.state),y&&O.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=he({},u.__s)),he(u.__s,O.getDerivedStateFromProps(p,u.__s))),f=u.props,g=u.state,u.__v=t,d)y&&O.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),y&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(y&&O.getDerivedStateFromProps==null&&p!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(p,x),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(p,u.__s,x)===!1||t.__v==e.__v){for(t.__v!=e.__v&&(u.props=p,u.state=u.__s,u.__d=!1),t.__e=e.__e,t.__k=e.__k,t.__k.some(function(L){L&&(L.__=t)}),w=0;w<u._sb.length;w++)u.__h.push(u._sb[w]);u._sb=[],u.__h.length&&o.push(u);break t}u.componentWillUpdate!=null&&u.componentWillUpdate(p,u.__s,x),y&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,g,m)})}if(u.context=x,u.props=p,u.__P=n,u.__e=!1,R=st.__r,T=0,y){for(u.state=u.__s,u.__d=!1,R&&R(t),c=u.render(u.props,u.state,u.context),S=0;S<u._sb.length;S++)u.__h.push(u._sb[S]);u._sb=[]}else do u.__d=!1,R&&R(t),c=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++T<25);u.state=u.__s,u.getChildContext!=null&&(i=he(he({},i),u.getChildContext())),y&&!d&&u.getSnapshotBeforeUpdate!=null&&(m=u.getSnapshotBeforeUpdate(f,g)),I=c,c!=null&&c.type===Ni&&c.key==null&&(I=Po(c.props.children)),a=bo(n,bn(I)?I:[I],t,e,i,s,r,o,a,l,h),u.base=t.__e,t.__u&=-161,u.__h.length&&o.push(u),_&&(u.__E=u.__=null)}catch(L){if(t.__v=null,l||r!=null)if(L.then){for(t.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;r[r.indexOf(a)]=null,t.__e=a}else{for(M=r.length;M--;)As(r[M]);Ds(t)}else t.__e=e.__e,t.__k=e.__k,L.then||Ds(t);st.__e(L,t,e)}else r==null&&t.__v==e.__v?(t.__k=e.__k,t.__e=e.__e):a=t.__e=Ph(e.__e,t,e,i,s,r,o,l,h);return(c=st.diffed)&&c(t),128&t.__u?void 0:a}function Ds(n){n&&n.__c&&(n.__c.__e=!0),n&&n.__k&&n.__k.forEach(Ds)}function Oo(n,t,e){for(var i=0;i<e.length;i++)ks(e[i],e[++i],e[++i]);st.__c&&st.__c(t,n),n.some(function(s){try{n=s.__h,s.__h=[],n.some(function(r){r.call(s)})}catch(r){st.__e(r,s.__v)}})}function Po(n){return typeof n!="object"||n==null||n.__b&&n.__b>0?n:bn(n)?n.map(Po):he({},n)}function Ph(n,t,e,i,s,r,o,a,l){var h,c,u,d,f,g,m,_=e.props,p=t.props,y=t.type;if(y=="svg"?s="http://www.w3.org/2000/svg":y=="math"?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),r!=null){for(h=0;h<r.length;h++)if((f=r[h])&&"setAttribute"in f==!!y&&(y?f.localName==y:f.nodeType==3)){n=f,r[h]=null;break}}if(n==null){if(y==null)return document.createTextNode(p);n=document.createElementNS(s,y,p.is&&p),a&&(st.__m&&st.__m(t,r),a=!1),r=null}if(y==null)_===p||a&&n.data==p||(n.data=p);else{if(r=r&&Tn.call(n.childNodes),_=e.props||Fi,!a&&r!=null)for(_={},h=0;h<n.attributes.length;h++)_[(f=n.attributes[h]).name]=f.value;for(h in _)if(f=_[h],h!="children"){if(h=="dangerouslySetInnerHTML")u=f;else if(!(h in p)){if(h=="value"&&"defaultValue"in p||h=="checked"&&"defaultChecked"in p)continue;On(n,h,null,f,s)}}for(h in p)f=p[h],h=="children"?d=f:h=="dangerouslySetInnerHTML"?c=f:h=="value"?g=f:h=="checked"?m=f:a&&typeof f!="function"||_[h]===f||On(n,h,f,_[h],s);if(c)a||u&&(c.__html==u.__html||c.__html==n.innerHTML)||(n.innerHTML=c.__html),t.__k=[];else if(u&&(n.innerHTML=""),bo(t.type=="template"?n.content:n,bn(d)?d:[d],t,e,i,y=="foreignObject"?"http://www.w3.org/1999/xhtml":s,r,o,r?r[0]:e.__k&&ni(e,0),a,l),r!=null)for(h=r.length;h--;)As(r[h]);a||(h="value",y=="progress"&&g==null?n.removeAttribute("value"):g!=null&&(g!==n[h]||y=="progress"&&!g||y=="option"&&g!=_[h])&&On(n,h,g,_[h],s),h="checked",m!=null&&m!=n[h]&&On(n,h,m,_[h],s))}return n}function ks(n,t,e){try{if(typeof n=="function"){var i=typeof n.__u=="function";i&&n.__u(),i&&t==null||(n.__u=n(t))}else n.current=t}catch(s){st.__e(s,e)}}function Do(n,t,e){var i,s;if(st.unmount&&st.unmount(n),(i=n.ref)&&(i.current&&i.current!=n.__e||ks(i,null,t)),(i=n.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(r){st.__e(r,t)}i.base=i.__P=null}if(i=n.__k)for(s=0;s<i.length;s++)i[s]&&Do(i[s],t,e||typeof n.type!="function");e||As(n.__e),n.__c=n.__=n.__e=void 0}function Dh(n,t,e){return this.constructor(n,e)}function kh(n,t,e){var i,s,r,o;t==document&&(t=document.documentElement),st.__&&st.__(n,t),s=(i=!1)?null:t.__k,r=[],o=[],Ps(t,n=t.__k=Lh(Ni,null,[n]),s||Fi,Fi,t.namespaceURI,s?null:t.firstChild?Tn.call(t.childNodes):null,r,s?s.__e:t.firstChild,i,o),Oo(r,n,o)}function Fh(n){function t(e){var i,s;return this.getChildContext||(i=new Set,(s={})[t.__c]=this,this.getChildContext=function(){return s},this.componentWillUnmount=function(){i=null},this.shouldComponentUpdate=function(r){this.props.value!=r.value&&i.forEach(function(o){o.__e=!0,Os(o)})},this.sub=function(r){i.add(r);var o=r.componentWillUnmount;r.componentWillUnmount=function(){i&&i.delete(r),o&&o.call(r)}}),e.children}return t.__c="__cC"+So++,t.__=n,t.Provider=t.__l=(t.Consumer=function(e,i){return e.children(i)}).contextType=t,t}Tn=Io.slice,st={__e:function(n,t,e,i){for(var s,r,o;t=t.__;)if((s=t.__c)&&!s.__)try{if((r=s.constructor)&&r.getDerivedStateFromError!=null&&(s.setState(r.getDerivedStateFromError(n)),o=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(n,i||{}),o=s.__d),o)return s.__E=s}catch(a){n=a}throw n}},Eo=0,Ln.prototype.setState=function(n,t){var e;e=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=he({},this.state),typeof n=="function"&&(n=n(he({},e),this.props)),n&&he(e,n),n!=null&&this.__v&&(t&&this._sb.push(t),Os(this))},Ln.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),Os(this))},Ln.prototype.render=Ni,Ge=[],vo=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Co=function(n,t){return n.__v.__b-t.__v.__b},An.__r=0,Ro=/(PointerCapture)$|Capture$/i,bs=0,Ms=Ao(!1),Ls=Ao(!0),So=0;var Nh=0;function E(n,t,e,i,s,r){t||(t={});var o,a,l=t;if("ref"in l)for(a in l={},t)a=="ref"?o=t[a]:l[a]=t[a];var h={type:n,props:l,key:e,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Nh,__i:-1,__u:0,__source:s,__self:r};if(typeof n=="function"&&(o=n.defaultProps))for(a in o)l[a]===void 0&&(l[a]=o[a]);return st.vnode&&st.vnode(h),h}var We,ot,Fs,ko,zi=0,Fo=[],dt=st,No=dt.__b,zo=dt.__r,Go=dt.diffed,Wo=dt.__c,Xo=dt.unmount,Yo=dt.__;function Gi(n,t){dt.__h&&dt.__h(ot,n,zi||t),zi=0;var e=ot.__H||(ot.__H={__:[],__h:[]});return n>=e.__.length&&e.__.push({}),e.__[n]}function vt(n){return zi=1,Bo(jo,n)}function Bo(n,t,e){var i=Gi(We++,2);if(i.t=n,!i.__c&&(i.__=[jo(void 0,t),function(a){var l=i.__N?i.__N[0]:i.__[0],h=i.t(l,a);l!==h&&(i.__N=[h,i.__[1]],i.__c.setState({}))}],i.__c=ot,!ot.__f)){var s=function(a,l,h){if(!i.__c.__H)return!0;var c=i.__c.__H.__.filter(function(d){return!!d.__c});if(c.every(function(d){return!d.__N}))return!r||r.call(this,a,l,h);var u=i.__c.props!==a;return c.forEach(function(d){if(d.__N){var f=d.__[0];d.__=d.__N,d.__N=void 0,f!==d.__[0]&&(u=!0)}}),r&&r.call(this,a,l,h)||u};ot.__f=!0;var r=ot.shouldComponentUpdate,o=ot.componentWillUpdate;ot.componentWillUpdate=function(a,l,h){if(this.__e){var c=r;r=void 0,s(a,l,h),r=c}o&&o.call(this,a,l,h)},ot.shouldComponentUpdate=s}return i.__N||i.__}function ee(n,t){var e=Gi(We++,3);!dt.__s&&zs(e.__H,t)&&(e.__=n,e.u=t,ot.__H.__h.push(e))}function zh(n,t){var e=Gi(We++,4);!dt.__s&&zs(e.__H,t)&&(e.__=n,e.u=t,ot.__h.push(e))}function Wi(n){return zi=5,Uo(function(){return{current:n}},[])}function Uo(n,t){var e=Gi(We++,7);return zs(e.__H,t)&&(e.__=n(),e.__H=t,e.__h=n),e.__}function At(n,t){return zi=8,Uo(function(){return n},t)}function Gh(n){var t=ot.context[n.__c],e=Gi(We++,9);return e.c=n,t?(e.__==null&&(e.__=!0,t.sub(ot)),t.props.value):n.__}function Wh(){for(var n;n=Fo.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(Pn),n.__H.__h.forEach(Ns),n.__H.__h=[]}catch(t){n.__H.__h=[],dt.__e(t,n.__v)}}dt.__b=function(n){ot=null,No&&No(n)},dt.__=function(n,t){n&&t.__k&&t.__k.__m&&(n.__m=t.__k.__m),Yo&&Yo(n,t)},dt.__r=function(n){zo&&zo(n),We=0;var t=(ot=n.__c).__H;t&&(Fs===ot?(t.__h=[],ot.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(Pn),t.__h.forEach(Ns),t.__h=[],We=0)),Fs=ot},dt.diffed=function(n){Go&&Go(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(Fo.push(t)!==1&&ko===dt.requestAnimationFrame||((ko=dt.requestAnimationFrame)||Xh)(Wh)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),Fs=ot=null},dt.__c=function(n,t){t.some(function(e){try{e.__h.forEach(Pn),e.__h=e.__h.filter(function(i){return!i.__||Ns(i)})}catch(i){t.some(function(s){s.__h&&(s.__h=[])}),t=[],dt.__e(i,e.__v)}}),Wo&&Wo(n,t)},dt.unmount=function(n){Xo&&Xo(n);var t,e=n.__c;e&&e.__H&&(e.__H.__.forEach(function(i){try{Pn(i)}catch(s){t=s}}),e.__H=void 0,t&&dt.__e(t,e.__v))};var Ko=typeof requestAnimationFrame=="function";function Xh(n){var t,e=function(){clearTimeout(i),Ko&&cancelAnimationFrame(t),setTimeout(n)},i=setTimeout(e,35);Ko&&(t=requestAnimationFrame(e))}function Pn(n){var t=ot,e=n.__c;typeof e=="function"&&(n.__c=void 0,e()),ot=t}function Ns(n){var t=ot;n.__c=n.__(),ot=t}function zs(n,t){return!n||n.length!==t.length||t.some(function(e,i){return e!==n[i]})}function jo(n,t){return typeof t=="function"?t(n):t}const Gs="converge_widget_",ie={get(n,t){try{const e=localStorage.getItem(Gs+n);return e?JSON.parse(e):t}catch{return t}},set(n,t){try{localStorage.setItem(Gs+n,JSON.stringify(t))}catch(e){console.error("Failed to save to localStorage:",e)}},remove(n){try{localStorage.removeItem(Gs+n)}catch(t){console.error("Failed to remove from localStorage:",t)}}};function Yh(n){const t={id:n.id,isSupport:n.from==="agent",timestamp:n.timestamp},e=n.messageType||"text";if(e==="location")try{const i=JSON.parse(n.content);return{...t,type:"location",latitude:i.latitude,longitude:i.longitude,name:i.name,address:i.address}}catch{return{...t,type:"text",content:n.content}}return e==="photo"?{...t,type:"photo",url:n.contentUrl||"",filename:n.fileName||void 0,size:n.fileSize||void 0,content:n.content}:e==="video"?{...t,type:"video",url:n.contentUrl||"",filename:n.fileName||void 0,size:n.fileSize||void 0,content:n.content}:e==="file"?{...t,type:"file",url:n.contentUrl||"",filename:n.fileName||"file",size:n.fileSize||void 0,mimeType:n.mimeType||void 0}:{...t,type:"text",content:n.content}}const Vo=Fh(null);function Bh({children:n,config:t}){const[e]=vt(!1),[i,s]=vt(!1),[r,o]=vt(""),[a,l]=vt(ie.get("token","")),[h,c]=vt(!1),[u,d]=vt(ie.get("name","")),[f,g]=vt(ie.get("email","")),[m,_]=vt(ie.get("customer_id","")),[p,y]=vt(!1),[v,x]=vt(!0),[w,R]=vt([]),[T,S]=vt(ie.get("platform","")),[I,M]=vt(!1),[O,L]=vt(!1),[A,P]=vt([]),X=Wi(),k=Wi(void 0);ee(()=>{ie.set("token",a)},[a]),ee(()=>{ie.set("name",u)},[u]),ee(()=>{ie.set("email",f)},[f]),ee(()=>{ie.set("customer_id",m)},[m]),ee(()=>{ie.set("platform",T)},[T]);const G=At(async()=>{if(console.log("session token?"),!!a){console.log("Yes");try{const W=k.current?`${t.apiUrl}/messages?since=${encodeURIComponent(k.current)}`:`${t.apiUrl}/messages`;console.log("fetching");const rt=await fetch(W,{headers:{Authorization:`Bearer ${a}`}});if(console.log("Fetched"),!rt.ok)throw new Error("Failed to poll messages");console.log("parsing");const j=await rt.json();if(j.messages&&j.messages.length>0){console.log("setting");const nt=j.messages.map(Yh);P(mt=>[...mt,...nt]),k.current=nt[nt.length-1].timestamp}}catch(W){console.error("Failed to poll messages:",W)}finally{console.log("finally"),X.current=setTimeout(G,100)}}},[a,t.apiUrl]),D=At(()=>{X.current||!a||G()},[a,G]),Y=At(async()=>{try{const W=await fetch(`${t.apiUrl}/platforms`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({apiKey:t.apiKey})});if(!W.ok)throw new Error("Failed to fetch platforms");const rt=await W.json();R(rt.platforms||[])}catch(W){console.error("Failed to fetch platforms:",W),R([{type:"widget",name:"Website Chat"}])}},[t.apiUrl,t.apiKey]);ee(()=>((async()=>{a&&T==="widget"?(D(),c(!0),x(!1)):await Y()})(),()=>{X.current&&clearTimeout(X.current)}),[a]);const V=At(async(W,rt)=>{if(!W.trim())return;const j=m||`widget_${Date.now()}_${Math.random().toString(36).substring(2,15)}`;try{const nt=await fetch(`${t.apiUrl}/init`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({apiKey:t.apiKey,customerId:j,customerName:W,customerEmail:rt||void 0})});if(!nt.ok)throw new Error("Failed to initialize");const mt=await nt.json();l(mt.token),_(j),d(W),g(rt||""),S("widget"),c(!0),y(!1),D()}catch(nt){console.error("Widget initialization failed:",nt)}},[m,t.apiUrl,t.apiKey,D]),tt=At(W=>{W.type==="widget"?(S(W.type),x(!1),y(!a||!u),c(!!(a&&u))):W.link&&(window.open(W.link,"_blank"),s(!1))},[a,u]),b=At(()=>{y(!1),x(!0),c(!1)},[]),xt=At(async()=>{if(!r.trim()||!a||I)return;const W=r.trim();o(""),M(!0);try{const rt={type:"text",content:W};if(!(await fetch(`${t.apiUrl}/message`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`},body:JSON.stringify(rt)})).ok)throw new Error("Failed to send message")}catch(rt){console.error("Failed to send message:",rt),o(W)}finally{M(!1)}},[r,a,I,t.apiUrl]),ft=At(async(W,rt)=>{if(!(!a||I)){M(!0);try{const j=new FormData;if(j.append("file",rt),j.append("messageData",JSON.stringify(W)),!(await fetch(`${t.apiUrl}/message`,{method:"POST",headers:{Authorization:`Bearer ${a}`},body:j})).ok)throw new Error("Failed to send attachment")}catch(j){console.error("Failed to send attachment:",j)}finally{M(!1)}}},[a,I,t.apiUrl]),ht=At(()=>{const W=document.createElement("input");W.type="file",W.accept="image/*,video/*",W.onchange=async rt=>{const j=rt.target.files?.[0];if(!j)return;const nt=10*1024*1024;if(j.size>nt){alert("File size must be less than 10MB");return}const ze=j.type.startsWith("video/")?{type:"video",filename:j.name,size:j.size}:{type:"photo",filename:j.name,size:j.size};await ft(ze,j)},W.click(),L(!1)},[ft]),bt=At(()=>{const W=document.createElement("input");W.type="file",W.accept=".pdf,.doc,.docx,.xls,.xlsx,.txt,.zip,.rar",W.onchange=async rt=>{const j=rt.target.files?.[0];if(!j)return;const nt=10*1024*1024;if(j.size>nt){alert("File size must be less than 10MB");return}const mt={type:"file",filename:j.name,size:j.size,mimeType:j.type};await ft(mt,j)},W.click(),L(!1)},[ft]),Et=At(async()=>{if(L(!1),!navigator.geolocation){console.error("Geolocation is not supported");return}if(!I){M(!0);try{const W=await new Promise((nt,mt)=>{navigator.geolocation.getCurrentPosition(nt,mt)}),rt={type:"location",latitude:W.coords.latitude,longitude:W.coords.longitude};if(!(await fetch(`${t.apiUrl}/message`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`},body:JSON.stringify(rt)})).ok)throw new Error("Failed to send location")}catch(W){console.error("Failed to send location:",W)}finally{M(!1)}}},[I,a,t.apiUrl]),jt=At(()=>{s(W=>!W)},[]),Gt=At(()=>{L(W=>!W)},[]),Mt=At(()=>{L(!1)},[]),Oi={config:t,isOpen:i,inputMessage:r,sessionToken:a,isInitialized:h,customerName:u,customerEmail:f,customerId:m,showNamePrompt:p,showPlatformChoice:v,availablePlatforms:w,selectedPlatform:T,isSending:I,showAttachmentMenu:O,messages:A,setInputMessage:o,toggleChat:jt,toggleAttachmentMenu:Gt,closeAttachmentMenu:Mt,fetchAvailablePlatforms:Y,selectPlatform:tt,goBackToPlatforms:b,initializeWidgetSession:V,sendMessage:xt,sendAttachment:ft,handleGalleryUpload:ht,handleFileUpload:bt,handleLocationShare:Et,isLoadingMessages:e};return E(Vo.Provider,{value:Oi,children:n})}function Uh(){const n=Gh(Vo);if(!n)throw new Error("useWidget must be used within WidgetProvider");return n}const Kh="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-arrow-up-icon%20lucide-arrow-up'%3e%3cpath%20d='m5%2012%207-7%207%207'/%3e%3cpath%20d='M12%2019V5'/%3e%3c/svg%3e";function si(n,t,e){let i=e.initialDeps??[],s;function r(){var o,a,l,h;let c;e.key&&((o=e.debug)!=null&&o.call(e))&&(c=Date.now());const u=n();if(!(u.length!==i.length||u.some((g,m)=>i[m]!==g)))return s;i=u;let f;if(e.key&&((a=e.debug)!=null&&a.call(e))&&(f=Date.now()),s=t(...u),e.key&&((l=e.debug)!=null&&l.call(e))){const g=Math.round((Date.now()-c)*100)/100,m=Math.round((Date.now()-f)*100)/100,_=m/16,p=(y,v)=>{for(y=String(y);y.length<v;)y=" "+y;return y};console.info(`%c⏱ ${p(m,5)} /${p(g,5)} ms`,`
|
|
2
3
|
font-size: .6rem;
|
|
3
4
|
font-weight: bold;
|