All files / app/elements/g-map-details g-map-details.component.html

100% Statements 210/210
100% Branches 2/2
100% Functions 1/1
100% Lines 210/210

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 2101x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x
<div #gmapdetails class="map" (click)="onUserInteraction()" (mousemove)="onUserInteraction()"
(keydown)="onUserInteraction()"></div>
@if (inActivity()) {
  <!-- <div class="position-relative"> -->
    <div id="map-overlay" (click)="enableMap()" class="pointer">
    <p style="
        color: #fff;
        font-size: 18px;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
      ">
        Click To Make Map Interactive
      </p>
    </div>
  <!-- </div> -->
}
 
<div
	class="modal fade"
	bsModal
	#staticModal="bs-modal"
	[config]="{ backdrop: 'static' }"
	tabindex="-1"
	role="dialog"
	aria-labelledby="dialog-static-name"
>
	<div class="d-flex justify-content-center align-items-center g-map-modal">
		<div class="modal-dialog">
			<div class="modal-content" [ngStyle]="{ 'max-width': modalShow + 'px' }">
				<div class="modal-body card-text card-body-text m-2 p-sm-3" style="overflow-y: auto; scroll-behavior: smooth">
					<owl-carousel-o [options]="customOptions2" #owlCar2>
						@if (isBrowser) {
							<ng-template carouselSlide [width]="modalScreenShow > 0 ? modalScreenShow : screenShow" [id]="'0'">
								<div style="transition: height 0.5s ease-in-out; position: relative">
									<img
										alt="image"
										src="{{ markerData['img-url'] }}"
										class="img-fluid"
										loading="lazy"
										height="480px"
										width="100px"
										[ngStyle]="{ height: mobile || tablet ? '260px' : '480px' }"
										style="transition: height 0.5s ease-in-out; border-radius: 8px; object-fit: cover"
									/>
									<div class="modal-sub-title pb-3" style="white-space: initial; overflow: auto">
										<div class="d-flex justify-content-between">
											<div>
												<p class="ms-2 mb-1" style="white-space: initial">
													{{ markerData?.wizard_name }}
												</p>
                        <span class="flex items-center overview-text ms-2" style="font-weight: 400"
														><img
															src="/assets/images/overview.png"
															height="14px"
															width="14px"
															loading="lazy"
															alt="icon"
															class="small-icon me-1 desktop"
														/>Overview</span
													>
											</div>
											@if (markerData && markerData.poi_highlights?.length) {
												<div class="d-flex" [ngClass]="{ 'w-25': mobile || tablet }">
													<div class="mx-2">
														<img
															loading="lazy"
															height="34px"
															width="34px"
															src="/assets/images/RightIcon.svg"
															class="pointer"
															(click)="owlCar2.prev(); refreshModal()"
															alt="RightIcon"
														/>
													</div>
													<div class="me-2">
														<img
															loading="lazy"
															height="34px"
															width="34px"
															(click)="owlCar2.next(); refreshModal()"
															class="pointer"
															src="/assets/images/LeftIcon.svg"
															alt="LeftIcon"
														/>
													</div>
												</div>
											}
										</div>
									</div>
								</div>
								<div>
									@if (markerData.summary_text) {
										<p style="white-space: initial" class="mt-3 fs-15 px-2">
											{{ showMore ? markerData.summaryText : (markerData.summaryText | slice:0:200) }}...
											<a href="javascript:void(0)" class="text-green" (click)="showMore = !showMore">
												{{ showMore ? 'Show Less' : 'Read More' }}
											</a>
										</p>
									}
								</div>
							</ng-template>
						}
						@for (item of carouselData; track item; let i = $index) {
							<ng-template carouselSlide [width]="modalScreenShow > 0 ? modalScreenShow : screenShow" [id]="item.id">
								<div style="position: relative">
									@if (carouselData && carouselData.length) {
										<div>
											<img
												loading="lazy"
												src="{{ item.image }}"
												height="480px"
												width="100PX"
												class="img-fluid"
												alt="image"
												[ngStyle]="{ height: mobile || tablet ? '260px' : '480px' }"
												style="transition: height 0.5s ease-in-out; border-radius: 8px; object-fit: cover"
											/>
											<div
												class="modal-sub-title pb-3"
												style="white-space: initial; overflow: auto; overflow-y: auto; scroll-behavior: smooth"
											>
												<div class="d-flex justify-content-between ms-2">
													<div class="ms-2">
														<p class="ms-2 mb-0" style="white-space: initial">
															{{ item.title }}
														</p>
															<span
																class="flex align-items-start overview-text"
																style="font-weight: 400; white-space: initial"
																><img
																	src="/assets/images/pin-img.png"
																	alt="icon"
																	height="14px"
																	width="14px"
																	loading="lazy"
																	class="small-icon me-1 desktop mt-2"
																/>Highlight of {{ markerData?.wizard_name }}</span
															>
													</div>
													@if (markerData && markerData.poi_highlights?.length) {
														<div class="d-flex" [ngClass]="{ 'w-25': mobile || tablet }">
															<div class="mx-2">
																<img
																	loading="lazy"
																	height="34px"
																	width="34px"
																	src="/assets/images/RightIcon.svg"
																	class="pointer"
																	(click)="owlCar2.prev(); refreshModal()"
																	alt="RightIcon"
																/>
															</div>
															<div class="me-2">
																<img
																	loading="lazy"
																	height="34px"
																	width="34px"
																	(click)="owlCar2.next(); refreshModal()"
																	class="pointer"
																	src="/assets/images/LeftIcon.svg"
																	alt="LeftIcon"
																/>
															</div>
														</div>
													}
												</div>
											</div>
											<div></div>
										</div>
									}
								</div>
								<div>
									<p
										class="mb-0 mt-3 fs-15 px-2"
										style="
											white-space: initial;
											color: #1b1b1b;
											font-style: normal;
											font-weight: 600;
											line-height: 136.023%;
										"
									>
										{{ item.summary }}
									</p>
									<p style="white-space: initial" class="mt-3 fs-15 px-2">
										{{ showMoreDescription[i] ? item.description : (item.description | slice:0:200) }}...
										<a href="javascript:void(0)" class="text-green" (click)="toggleReadMore(i)">
											{{ showMoreDescription[i] ? 'Show Less' : 'Read More' }}
										</a>
									</p>
								</div>
							</ng-template>
						}
					</owl-carousel-o>
					<div
						style="position: absolute; top: 30px; right: 30px; z-index: 9999; cursor: pointer"
						(click)="staticModal.hide()"
					>
						<img loading="lazy" src="/assets/images/exit-button.svg"
						width="20px"
						height="20px" alt="icon" />
					</div>
				</div>
			</div>
		</div>
	</div>
</div>