{var s,o;const n=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:e;let r=n._$litPart$;if(void 0===r){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;n._$litPart$=r=new q(e.insertBefore(S(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return z}}it.finalized=!0,it._$litElement$=!0,null===(tt=globalThis.litElementHydrateSupport)||void 0===tt||tt.call(globalThis,{LitElement:it});const st=globalThis.litElementPolyfillSupport;
-/**
- * @license
- * Copyright 2021 Google LLC
- * SPDX-License-Identifier: BSD-3-Clause
- */
-var ot;null==st||st({LitElement:it}),(null!==(et=globalThis.litElementVersions)&&void 0!==et?et:globalThis.litElementVersions=[]).push("3.3.2"),null===(ot=window.HTMLSlotElement)||void 0===ot||ot.prototype.assignedElements,
-/**
- * @license
- * Copyright 2017 Google LLC
- * SPDX-License-Identifier: BSD-3-Clause
- */
-console.warn("The main 'lit-element' module entrypoint is deprecated. Please update your imports to use the 'lit' package: 'lit' and 'lit/decorators.ts' or import from 'lit-element/lit-element.ts'. See https://lit.dev/msg/deprecated-import-path for more information.");class nt extends it{static styles=n`
- .number-display {
- margin: auto;
- width: 200px;
- padding: 20px;
- border: solid 1px #333;
- border-radius: 5px;
- text-align: center;
- font-size: 20px;
- background-color: #f1f1f1;
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
- }
-
- .number-input-container {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-top: 10px;
- }
-
- .number-label {
- width: 20%;
- text-align: right;
- padding-right: 10px;
- font-weight: bold;
- }
-
- .number-input {
- width: 70%;
- padding: 5px;
- border: none;
- border-radius: 3px;
- box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
- }
-
- .dial-pad {
- display: grid;
- grid-template-columns: repeat(3, 1fr);
- gap: 10px;
- max-width: 200px;
- margin: auto;
- margin-top: 20px;
- }
-
- .num-button,
- .call-button {
- padding: 10px;
- background-color: #fafafa;
- border: none;
- border-radius: 5px;
- text-align: center;
- font-size: 20px;
- cursor: pointer;
- transition: all 0.3s ease;
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
- }
-
- .num-button:hover,
- .call-button:hover {
- background-color: #e1e1e1;
- transform: scale(1.05);
- }
-
- .call-button {
- margin-top: 20px;
- background-color: green;
- color: white;
- }
- `;static get properties(){return{props:{type:Object},toNumber:{type:String}}}constructor(){super(),this.props={},this.toNumber="",this.sipClient=this._createSipClient()}render(){return j`
-
-
-
- ${Array(12).fill(0).map(((t,e)=>{let i;return i=9===e?"*":10===e?0:11===e?"#":e+1,j`
-
- `}))}
-
-
-
- `}_createSipClient(){}_handleClick(t){this.toNumber+=t}_handleCall(){console.log("Calling..."),this.sipClient.call(this.toNumber,"121241231")}_handleInput(t){this.toNumber=t.target.value}}customElements.define("phone-element",nt);customElements.define("webrtc-widget",class extends it{static get styles(){return n`
- .chat-widget-container {
- position: fixed;
- bottom: 20px;
- right: 20px;
- z-index: 1000;
- display: flex;
- flex-direction: column-reverse;
- align-items: flex-end;
- }
-
- .chat-icon-button {
- background-color: green;
- color: white;
- border: none;
- cursor: pointer;
- border-radius: 50%;
- width: 50px;
- height: 50px;
- font-size: 24px;
- display: flex;
- justify-content: center;
- align-items: center;
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
- transition: all 0.3s ease;
- z-index: 1010; /* Make sure the button is above the chat form */
- }
-
- .chat-icon-button:hover {
- background-color: #e1e1e1;
- transform: scale(1.05);
- }
-
- .chat-icon-button:before,
- .chat-icon-button:after {
- content: "";
- display: block;
- position: absolute;
- width: 1em;
- height: 1em;
- top: 50%;
- left: 50%;
- transform-origin: center center;
- text-align: center;
- line-height: 1;
- font-size: 24px;
- }
-
- .chat-icon-button:before {
- content: "📞";
- opacity: 1;
- }
-
- .chat-icon-button:after {
- content: "×";
-
- opacity: 0;
- }
-
- .chat-widget-container.form-visible .chat-icon-button:before {
- animation: rotateHide 0.3s forwards;
- }
-
- .chat-widget-container.form-visible .chat-icon-button:after {
- animation: rotateShow 0.3s forwards;
- }
-
- .chat-widget-container:not(.form-visible) .chat-icon-button:before {
- animation: rotateShow 0.3s forwards;
- }
-
- .chat-widget-container:not(.form-visible) .chat-icon-button:after {
- animation: rotateHide 0.3s forwards;
- }
-
- @keyframes rotateHide {
- 0% {
- opacity: 1;
- transform: translate(-50%, -50%) rotate(0deg);
- }
- 50% {
- opacity: 0;
- transform: translate(-50%, -50%) rotate(90deg);
- }
- 100% {
- opacity: 0;
- transform: translate(-50%, -50%) rotate(180deg);
- }
- }
-
- @keyframes rotateShow {
- 0% {
- opacity: 0;
- transform: translate(-50%, -50%) rotate(-180deg);
- }
- 50% {
- opacity: 0;
- transform: translate(-50%, -50%) rotate(-90deg);
- }
- 100% {
- opacity: 1;
- transform: translate(-50%, -50%) rotate(0deg);
- }
- }
-
- .chat-form {
- position: absolute;
- bottom: 60px; /* Set space between button and form to prevent overlap */
- background-color: #f1f1f1;
- border-radius: 5px;
- padding: 20px;
- width: 250px;
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
- opacity: 0;
- max-height: 0;
- overflow: hidden;
-
- /* Animation styles */
- transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out, transform 0.3s ease-in-out, width 0.3s ease-in-out;
- transform-origin: bottom right;
- transform: scaleX(0) scaleY(0);
- background-color: var(--bg-color);
- border-radius: 20px;
- padding: 8px 15px;
- }
-
- .hidden {
- display: none;
- }
-
- .chat-widget-container.form-visible .chat-form {
- opacity: 1;
- max-height: 500px; /* Adjust based on your desired maximum height */
-
- /* Animation styles */
- transform: scaleX(1) scaleY(1);
- }
- `}static get properties(){return{isFormVisible:{type:Boolean}}}constructor(){super(),this.isFormVisible=!1}toggleFormVisibility(){this.isFormVisible=!this.isFormVisible}render(){return j`
-
- `}});